File tree Expand file tree Collapse file tree 1 file changed +30
-6
lines changed
Expand file tree Collapse file tree 1 file changed +30
-6
lines changed Original file line number Diff line number Diff line change 2626 border-radius : 20px ;
2727 box-shadow : 0 20px 40px rgba (0 , 0 , 0 , 0.1 );
2828 padding : 40px ;
29- max-width : 800px ;
3029 width : 100% ;
3130 min-height : 500px ;
3231 }
162161
163162 .typing-container {
164163 margin-bottom : 30px ;
164+ display : flex;
165+ flex-direction : row;
166+ width : 90vw ;
165167 }
166168
167169 .reference-text {
172174 font-size : 18px ;
173175 line-height : 1.6 ;
174176 margin-bottom : 20px ;
175- min-height : 120 px ;
177+ min-height : 50 vh ;
176178 word-wrap : break-word;
179+ flex : 1 ;
177180 }
178181
179182 .input-text {
183186 font-size : 18px ;
184187 border : 2px solid # ddd ;
185188 border-radius : 10px ;
186- min-height : 120 px ;
189+ min-height : 50 vh ;
187190 line-height : 1.6 ;
188191 resize : none;
189192 background : transparent;
201204 }
202205
203206 .input-container {
207+ flex : 1 ;
204208 position : relative;
205209 }
206210
239243 }
240244
241245 .char .incorrect {
242- color : # d32f2f ;
246+ color : # d32f2f00 ;
243247 background-color : rgba (211 , 47 , 47 , 0.2 );
244248 }
245249
@@ -308,7 +312,27 @@ <h1>🎯 Typing Trainer</h1>
308312 < input type ="radio " name ="textType " value ="specific " id ="specificText " checked >
309313 < label for ="specificText "> Specific Text</ label >
310314 </ div >
311- < textarea id ="specificTextInput " placeholder ="Enter your custom text here... "> </ textarea >
315+ < textarea id ="specificTextInput " placeholder ="Enter your custom text here... ">
316+ Садок вишневий коло хати,
317+ Хрущі над вишнями гудуть,
318+ Плугатарі з плугами йдуть,
319+
320+ Співають ідучи дівчата,
321+ А матері вечерять ждуть.
322+ Сім'я вечеря коло хати,
323+
324+ Вечірня зіронька встає.
325+ Дочка вечерять подає,
326+ А мати хоче научати,
327+
328+ Так соловейко не дaє.
329+ Поклала мати коло хати
330+ Маленьких діточок своїх;
331+
332+ Сама заснула коло їх.
333+ Затихло все, тілько дівчата
334+ Та соловейко не затих.
335+ </ textarea >
312336 </ div >
313337
314338 < div class ="option-group " data-type ="words ">
@@ -559,7 +583,7 @@ <h2>🎉 Great Job!</h2>
559583 break ;
560584 }
561585
562- document . getElementById ( 'referenceText' ) . textContent = currentText ;
586+ document . getElementById ( 'referenceText' ) . innerHTML = currentText . replace ( / \n / g , "<br>" ) ;
563587 document . getElementById ( 'inputText' ) . value = '' ;
564588
565589 // Reset stats
You can’t perform that action at this time.
0 commit comments