-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1361 lines (1202 loc) · 56.1 KB
/
Copy pathindex.html
File metadata and controls
1361 lines (1202 loc) · 56.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- Licensed under GNU General Public License v3.0 -->
<!-- Made by 2025 DevAnthony038 -->
<!-- https://www.gnu.org/licenses/gpl-3.0.en.html -->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SwiftType - Learn to type faster</title>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect x='2' y='2' width='28' height='28' rx='4' fill='%23d4af37'/><rect x='4' y='4' width='24' height='24' rx='3' fill='%230a0a0a'/><rect x='7' y='8' width='18' height='16' rx='2' stroke='%23d4af37' stroke-width='2' fill='none'/><line x1='10' y1='12' x2='12' y2='12' stroke='%23d4af37' stroke-width='2'/><line x1='14' y1='12' x2='16' y2='12' stroke='%23d4af37' stroke-width='2'/><line x1='18' y1='12' x2='20' y2='12' stroke='%23d4af37' stroke-width='2'/><line x1='22' y1='12' x2='22' y2='12' stroke='%23d4af37' stroke-width='2'/><line x1='10' y1='16' x2='13' y2='16' stroke='%23d4af37' stroke-width='2'/><line x1='15' y1='16' x2='17' y2='16' stroke='%23d4af37' stroke-width='2'/><line x1='19' y1='16' x2='22' y2='16' stroke='%23d4af37' stroke-width='2'/><line x1='12' y1='20' x2='20' y2='20' stroke='%23d4af37' stroke-width='2'/></svg>">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: #0a0a0a;
color: #e0e0e0;
min-height: 100vh;
display: flex;
flex-direction: column;
}
header {
padding: 20px 40px;
display: flex;
justify-content: space-between;
align-items: center;
animation: fadeInUp 0.6s ease-out;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo-icon {
width: 32px;
height: 32px;
background: #d4af37;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
}
.logo-icon:hover {
transform: rotate(5deg) scale(1.1);
}
.logo-icon svg {
width: 20px;
height: 20px;
fill: #0a0a0a;
}
.logo-text h1 {
font-size: 20px;
font-weight: 600;
color: #fff;
}
.logo-text p {
font-size: 12px;
color: #888;
}
.header-actions {
display: flex;
gap: 10px;
align-items: center;
}
.lang-btn, .tips-btn {
padding: 8px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
}
.lang-btn:hover, .tips-btn:hover {
transform: translateY(-2px);
}
.lang-btn {
background: #1a1a1a;
color: #e0e0e0;
}
.lang-btn.active {
background: #d4af37;
color: #0a0a0a;
}
.tips-btn {
background: transparent;
color: #d4af37;
border: 1px solid #d4af37;
display: flex;
align-items: center;
gap: 8px;
}
.tips-btn svg {
width: 16px;
height: 16px;
fill: currentColor;
}
.tips-btn:hover {
background: #d4af37;
color: #0a0a0a;
}
main {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
}
h2 {
font-size: 48px;
margin-bottom: 10px;
text-align: center;
animation: fadeInUp 0.8s ease-out 0.2s both;
}
h2 .highlight {
color: #d4af37;
}
.subtitle {
color: #888;
margin-bottom: 60px;
text-align: center;
animation: fadeInUp 0.8s ease-out 0.3s both;
}
.typing-area {
background: #141414;
border-radius: 12px;
padding: 60px;
max-width: 900px;
width: 100%;
min-height: 200px;
position: relative;
animation: scaleIn 0.6s ease-out 0.4s both;
transition: transform 0.3s ease;
}
.typing-area:hover {
transform: translateY(-2px);
}
.text-display {
font-size: 28px;
line-height: 1.8;
letter-spacing: 1px;
color: #4a4a4a;
user-select: none;
margin-bottom: 20px;
}
.text-display span {
transition: color 0.1s;
}
.text-display span.correct {
color: #e0e0e0;
}
.text-display span.incorrect {
color: #ff4444;
background: #ff444420;
}
.text-display span.current {
position: relative;
}
.text-display span.current::before {
content: '';
position: absolute;
left: -2px;
top: 0;
bottom: 0;
width: 2px;
background: #d4af37;
animation: blink 1s infinite;
}
.time-counter {
position: absolute;
top: 12px;
left: 12px;
background: rgba(212,175,55,0.08);
color: #d4af37;
padding: 6px 10px;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
backdrop-filter: blur(6px);
pointer-events: none;
display: inline-flex;
align-items: center;
gap: 10px;
}
.caps-indicator {
font-size: 12px;
padding: 4px 8px;
border-radius: 6px;
color: #888;
background: rgba(255,255,255,0.02);
font-weight: 700;
transition: color 0.15s, background 0.15s;
pointer-events: none;
}
.caps-indicator.active {
color: #ff4d4f;
background: rgba(255,77,79,0.08);
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
@keyframes slideOutLeft {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(-50px);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(50px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes slideOutRight {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(50px);
}
}
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-50px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.input-area {
opacity: 0;
position: absolute;
}
.start-prompt {
text-align: center;
color: #666;
font-size: 16px;
}
.restart-btn {
display: flex;
align-items: center;
gap: 8px;
margin: 40px auto 0;
padding: 12px 24px;
background: transparent;
border: 1px solid #333;
border-radius: 8px;
color: #888;
cursor: pointer;
font-size: 14px;
transition: all 0.3s;
animation: fadeIn 1s ease-out 0.6s both;
}
.restart-btn svg {
width: 16px;
height: 16px;
fill: currentColor;
transition: transform 0.3s ease;
}
.restart-btn:hover svg {
transform: rotate(180deg);
}
.restart-btn:hover {
border-color: #d4af37;
color: #d4af37;
}
.results {
text-align: center;
padding: 40px;
}
.results h3 {
font-size: 32px;
margin-bottom: 10px;
animation: fadeInUp 0.5s ease-out;
}
.results-message {
font-size: 18px;
margin-bottom: 30px;
animation: fadeInUp 0.5s ease-out 0.1s both;
}
.results-message.excellent {
color: #10b981;
}
.results-message.good {
color: #3b82f6;
}
.results-message.practice {
color: #f59e0b;
}
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 30px;
margin-top: 30px;
}
.stat-item {
background: #1a1a1a;
padding: 20px;
border-radius: 8px;
animation: fadeInUp 0.5s ease-out both;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-item:hover {
transform: translateY(-5px);
box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}
.stat-label {
color: #888;
font-size: 14px;
margin-bottom: 8px;
}
.stat-value {
font-size: 36px;
font-weight: 600;
color: #d4af37;
animation: pulse 2s ease-in-out infinite;
}
.results-time {
color: #ccc;
font-size: 16px;
margin-bottom: 14px;
text-align: center;
}
.hint {
text-align: center;
color: #555;
font-size: 14px;
margin-top: 40px;
animation: fadeIn 1s ease-out 0.8s both;
}
footer {
padding: 20px 40px;
text-align: left;
}
.copyright {
color: #555;
font-size: 12px;
animation: fadeIn 1s ease-out 1s both;
}
.copyright a {
color: #666;
text-decoration: none;
transition: color 0.3s ease;
}
.copyright a:hover {
color: #d4af37;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: #1a1a1a;
border-radius: 12px;
padding: 40px;
max-width: 600px;
width: 90%;
position: relative;
animation: scaleIn 0.3s ease-out;
}
.close-btn {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
color: #888;
font-size: 24px;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.3s;
}
.close-btn:hover {
background: #2a2a2a;
color: #fff;
}
.tip-header {
text-align: center;
margin-bottom: 30px;
}
.tip-header.slide-out-left {
animation: slideOutLeft 0.3s ease-out forwards;
}
.tip-header.slide-in-right {
animation: slideInRight 0.3s ease-out forwards;
}
.tip-header.slide-out-right {
animation: slideOutRight 0.3s ease-out forwards;
}
.tip-header.slide-in-left {
animation: slideInLeft 0.3s ease-out forwards;
}
.tip-counter {
color: #888;
font-size: 14px;
margin-bottom: 15px;
}
.tip-icon {
width: 64px;
height: 64px;
background: #2a2a2a;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}
.tip-icon svg {
width: 32px;
height: 32px;
}
.tip-title {
font-size: 28px;
margin-bottom: 20px;
transition: color 0.3s ease;
}
.tip-content {
font-size: 16px;
line-height: 1.8;
color: #ccc;
text-align: center;
}
.tip-content.slide-out-left {
animation: slideOutLeft 0.3s ease-out forwards;
}
.tip-content.slide-in-right {
animation: slideInRight 0.3s ease-out forwards;
}
.tip-content.slide-out-right {
animation: slideOutRight 0.3s ease-out forwards;
}
.tip-content.slide-in-left {
animation: slideInLeft 0.3s ease-out forwards;
}
.modal-navigation {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 40px;
}
.nav-btn {
padding: 10px 20px;
background: transparent;
border: 1px solid #333;
border-radius: 6px;
color: #888;
cursor: pointer;
font-size: 14px;
transition: all 0.3s;
}
.nav-btn:hover:not(:disabled) {
border-color: #d4af37;
color: #d4af37;
}
.nav-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.tip-dots {
display: flex;
gap: 8px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #333;
transition: all 0.3s;
}
.dot.active {
background: #d4af37;
width: 24px;
border-radius: 4px;
}
</style>
</head>
<body>
<header>
<div class="logo">
<div class="logo-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<rect x="2" y="4" width="20" height="16" rx="2" stroke="currentColor" stroke-width="2" fill="none"/>
<line x1="6" y1="8" x2="8" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="10" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="14" y1="8" x2="16" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="18" y1="8" x2="18" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="6" y1="12" x2="9" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="11" y1="12" x2="13" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="15" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="8" y1="16" x2="16" y2="16" stroke="currentColor" stroke-width="2"/>
</svg>
</div>
<div class="logo-text">
<h1>SwiftType</h1>
<p>Learn to type faster</p>
</div>
</div>
<div class="header-actions">
<button class="lang-btn active" data-lang="de">Deutsch</button>
<button class="lang-btn" data-lang="en">English</button>
<button class="tips-btn" onclick="openTips()">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/>
<path d="M12 16v-4m0-4h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
Tips
</button>
</div>
</header>
<main>
<h2>Test Your <span class="highlight">Typing</span> Speed</h2>
<p class="subtitle">Type the text as fast and accurately as possible</p>
<div class="typing-area">
<div class="text-display" id="textDisplay"></div>
<div id="timeCounter" class="time-counter"><span id="timeText">00:00</span><span id="capsIndicator" class="caps-indicator">Caps</span></div>
<input type="text" class="input-area" id="inputArea" autocomplete="off">
<div class="start-prompt" id="startPrompt">Click here and start typing...</div>
</div>
<button class="restart-btn" onclick="restart()">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M21 12a9 9 0 11-9-9c2.52 0 4.93 1 6.74 2.74L21 8" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
<polyline points="21 3 21 8 16 8" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<span>Restart</span>
</button>
<p class="hint">Press Tab or Enter to restart</p>
</main>
<footer>
<p class="copyright">Made by DevAnthony038</p>
</footer>
<div class="modal" id="tipsModal">
<div class="modal-content">
<button class="close-btn" onclick="closeTips()">×</button>
<div class="tip-header">
<div class="tip-counter" id="tipCounter">Tip 1 / 6</div>
<div class="tip-icon" id="tipIcon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<rect x="2" y="4" width="20" height="16" rx="2" stroke="currentColor" stroke-width="2" fill="none"/>
<line x1="6" y1="8" x2="8" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="10" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="14" y1="8" x2="16" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="18" y1="8" x2="18" y2="8" stroke="currentColor" stroke-width="2"/>
<line x1="6" y1="12" x2="9" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="11" y1="12" x2="13" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="15" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="8" y1="16" x2="16" y2="16" stroke="currentColor" stroke-width="2"/>
</svg>
</div>
<h3 class="tip-title" id="tipTitle"></h3>
</div>
<p class="tip-content" id="tipContent"></p>
<div class="modal-navigation">
<button class="nav-btn" onclick="prevTip()" id="prevBtn">← Back</button>
<div class="tip-dots" id="tipDots"></div>
<button class="nav-btn" onclick="nextTip()" id="nextBtn">Next →</button>
</div>
</div>
</div>
<script>
const texts = { // Texte von Copilot weil fr kein bock darauf hatte selber 50 Sätze zu schreiben 👈(゚ヮ゚👈)
de: [
"Der schnelle braune Fuchs springt über den faulen Hund und läuft weiter durch den dichten Wald.",
"Übung macht den Meister, besonders wenn es um das Zehnfingersystem geht.",
"Die Kunst des schnellen Tippens erfordert Geduld, Ausdauer und regelmäßiges Training.",
"Moderne Technologie ermöglicht es uns, effizienter zu arbeiten und zu kommunizieren.",
"Konzentration und Genauigkeit sind wichtiger als reine Geschwindigkeit beim Tippen.",
"Das Erlernen neuer Fähigkeiten erweitert unseren Horizont und öffnet neue Türen.",
"Die digitale Revolution hat unsere Art zu arbeiten und zu leben grundlegend verändert.",
"Kreativität und Innovation sind der Schlüssel zum Erfolg in der modernen Welt.",
"Teamarbeit und Kommunikation spielen eine entscheidende Rolle in jedem Projekt.",
"Die Zukunft gehört denjenigen, die sich ständig weiterbilden und anpassen.",
"Programmieren ist eine der wichtigsten Fähigkeiten des 21. Jahrhunderts.",
"Künstliche Intelligenz wird viele Bereiche unseres Lebens revolutionieren.",
"Nachhaltigkeit und Umweltschutz sind zentrale Herausforderungen unserer Zeit.",
"Bildung ist der Grundstein für persönliche und berufliche Entwicklung.",
"Die Globalisierung verbindet Menschen und Kulturen auf der ganzen Welt.",
"Gesundheit und Wohlbefinden sollten immer an erster Stelle stehen.",
"Zeit ist die wertvollste Ressource, die wir haben und nicht zurückbekommen können.",
"Positive Einstellung und Motivation führen zum Erreichen unserer Ziele.",
"Fehler sind wichtige Lernmöglichkeiten auf dem Weg zum Erfolg.",
"Die Macht der Gewohnheit kann unser Leben zum Besseren oder Schlechteren verändern.",
"Respekt und Toleranz sind fundamental für ein harmonisches Zusammenleben.",
"Disziplin und Beständigkeit übertreffen oft reines Talent auf lange Sicht.",
"Neugier und Wissensdurst treiben den Fortschritt der Menschheit voran.",
"Jeder Mensch hat einzigartige Talente und Fähigkeiten, die es zu entdecken gilt.",
"Die Balance zwischen Arbeit und Freizeit ist entscheidend für Lebensqualität.",
"Technische Kompetenz wird in fast allen Berufsfeldern immer wichtiger.",
"Kritisches Denken hilft uns, Informationen richtig zu bewerten und Entscheidungen zu treffen.",
"Empathie und emotionale Intelligenz sind Schlüsselkompetenzen im zwischenmenschlichen Bereich.",
"Der erste Schritt ist oft der schwierigste, aber auch der wichtigste.",
"Veränderung ist die einzige Konstante in unserem Leben und sollte umarmt werden.",
"Networking und Beziehungen öffnen oft Türen zu neuen Möglichkeiten.",
"Selbstreflexion ermöglicht persönliches Wachstum und kontinuierliche Verbesserung.",
"Zeitmanagement ist eine essenzielle Fähigkeit in der heutigen schnelllebigen Welt.",
"Die Fähigkeit zu kommunizieren unterscheidet gute von großartigen Führungspersönlichkeiten.",
"Mut bedeutet nicht die Abwesenheit von Angst, sondern trotz Angst zu handeln.",
"Lifelong Learning ist kein Luxus mehr, sondern eine Notwendigkeit geworden.",
"Kleine Schritte führen zu großen Veränderungen, wenn man konsequent bleibt.",
"Die digitale Transformation verändert Geschäftsmodelle in allen Branchen fundamental.",
"Achtsamkeit und Meditation können Stress reduzieren und Fokus verbessern.",
"Diversität und Inklusion bereichern Teams und fördern Innovation.",
"Authentizität und Integrität schaffen Vertrauen in beruflichen und privaten Beziehungen.",
"Die Cloud-Technologie ermöglicht flexible und skalierbare Lösungen für Unternehmen.",
"Datenanalyse und Statistik werden zu unverzichtbaren Werkzeugen in vielen Bereichen.",
"Kreislaufwirtschaft ist ein vielversprechender Ansatz für nachhaltige Produktion.",
"Remote-Arbeit bietet Flexibilität, erfordert aber auch Selbstdisziplin und Organisation.",
"Cybersecurity wird immer wichtiger in unserer vernetzten digitalen Welt.",
"Blockchain-Technologie hat das Potenzial, viele Industrien zu transformieren.",
"Soft Skills wie Kommunikation und Teamfähigkeit werden oft unterschätzt.",
"Continuous Improvement sollte das Ziel jeder Person und Organisation sein.",
"Die richtige Morgenroutine kann den Ton für einen produktiven Tag setzen.",
"Feedback anzunehmen und zu geben ist essentiell für persönliches Wachstum.",
"Agilität und Anpassungsfähigkeit sind entscheidend in einem sich schnell ändernden Umfeld.",
"Mentoren und Vorbilder können uns inspirieren und auf unserem Weg leiten.",
"Die Kunst des Zuhörens ist genauso wichtig wie die Fähigkeit zu sprechen.",
"Visualisierung und klare Zielsetzung erhöhen die Wahrscheinlichkeit des Erfolgs erheblich.",
"Resilienz hilft uns, Rückschläge zu überwinden und gestärkt daraus hervorzugehen."
],
en: [
"The quick brown fox jumps over the lazy dog and runs through the dense forest.",
"Practice makes perfect, especially when it comes to touch typing skills.",
"The art of fast typing requires patience, persistence, and regular training.",
"Modern technology enables us to work and communicate more efficiently.",
"Concentration and accuracy are more important than pure speed in typing.",
"Learning new skills expands our horizons and opens new doors for us.",
"The digital revolution has fundamentally changed the way we work and live.",
"Creativity and innovation are the keys to success in the modern world.",
"Teamwork and communication play a crucial role in every project.",
"The future belongs to those who continuously learn and adapt.",
"Programming is one of the most important skills of the 21st century.",
"Artificial intelligence will revolutionize many areas of our lives.",
"Sustainability and environmental protection are central challenges of our time.",
"Education is the foundation for personal and professional development.",
"Globalization connects people and cultures around the world.",
"Health and well-being should always come first in our priorities.",
"Time is the most valuable resource we have and cannot get back.",
"Positive attitude and motivation lead to achieving our goals.",
"Mistakes are important learning opportunities on the path to success.",
"The power of habit can change our lives for better or worse.",
"Respect and tolerance are fundamental for harmonious coexistence.",
"Discipline and consistency often surpass pure talent in the long run.",
"Curiosity and thirst for knowledge drive human progress forward.",
"Every person has unique talents and abilities waiting to be discovered.",
"The balance between work and leisure is crucial for quality of life.",
"Technical competence is becoming increasingly important in almost all fields.",
"Critical thinking helps us evaluate information and make informed decisions.",
"Empathy and emotional intelligence are key competencies in interpersonal relations.",
"The first step is often the hardest, but also the most important one.",
"Change is the only constant in our lives and should be embraced.",
"Networking and relationships often open doors to new opportunities.",
"Self-reflection enables personal growth and continuous improvement.",
"Time management is an essential skill in today's fast-paced world.",
"The ability to communicate distinguishes good from great leaders.",
"Courage does not mean the absence of fear, but acting despite it.",
"Lifelong learning is no longer a luxury, but has become a necessity.",
"Small steps lead to big changes when you remain consistent.",
"Digital transformation is fundamentally changing business models across all industries.",
"Mindfulness and meditation can reduce stress and improve focus.",
"Diversity and inclusion enrich teams and foster innovation.",
"Authenticity and integrity build trust in professional and personal relationships.",
"Cloud technology enables flexible and scalable solutions for businesses.",
"Data analysis and statistics are becoming indispensable tools in many areas.",
"Circular economy is a promising approach for sustainable production.",
"Remote work offers flexibility, but also requires self-discipline and organization.",
"Cybersecurity is becoming increasingly important in our connected digital world.",
"Blockchain technology has the potential to transform many industries.",
"Soft skills like communication and teamwork are often underestimated.",
"Continuous improvement should be the goal of every person and organization.",
"The right morning routine can set the tone for a productive day.",
"Accepting and giving feedback is essential for personal growth.",
"Agility and adaptability are crucial in a rapidly changing environment.",
"Mentors and role models can inspire us and guide us on our journey.",
"The art of listening is just as important as the ability to speak.",
"Visualization and clear goal setting significantly increase the likelihood of success.",
"Resilience helps us overcome setbacks and emerge stronger from them."
]
};
const tips = {
de: [
{
title: "Die Grundposition",
content: "Platziere deine Finger auf der Grundreihe: Linke Hand auf A-S-D-F, rechte Hand auf J-K-L-Ö. Deine Zeigefinger ruhen auf F und J - diese Tasten haben kleine Erhebungen zur Orientierung.",
title: "Die Grundposition",
content: "Platziere deine Finger auf der Grundreihe: Linke Hand auf A-S-D-F, rechte Hand auf J-K-L-Ö. Deine Zeigefinger ruhen auf F und J - diese Tasten haben kleine Erhebungen zur Orientierung.",
icon: '<rect x="2" y="4" width="20" height="16" rx="2" stroke="currentColor" stroke-width="2" fill="none"/><line x1="6" y1="8" x2="8" y2="8" stroke="currentColor" stroke-width="2"/><line x1="10" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2"/><line x1="14" y1="8" x2="16" y2="8" stroke="currentColor" stroke-width="2"/><line x1="18" y1="8" x2="18" y2="8" stroke="currentColor" stroke-width="2"/><line x1="6" y1="12" x2="9" y2="12" stroke="currentColor" stroke-width="2"/><line x1="11" y1="12" x2="13" y2="12" stroke="currentColor" stroke-width="2"/><line x1="15" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="2"/><line x1="8" y1="16" x2="16" y2="16" stroke="currentColor" stroke-width="2"/>',
color: '#d4af37'
},
{
title: "Fingerzuordnung",
content: "Jeder Finger ist für bestimmte Tasten zuständig. Der kleine Finger bedient die äußeren Tasten, der Zeigefinger die mittleren. Bewege immer nur den benötigten Finger und kehre zur Grundposition zurück.",
icon: '<g stroke="currentColor" stroke-width="1.4" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2"/><path d="M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2"/><path d="M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8"/><path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"/></g>',
color: '#10b981'
},
{
title: "Nicht auf die Tastatur schauen",
content: "Das Ziel ist blindes Tippen. Schaue auf den Bildschirm, nicht auf deine Finger. Anfangs ist es schwer, aber mit Übung entwickelst du ein Muskelgedächtnis.",
icon: '<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="3" stroke="currentColor" stroke-width="2" fill="none"/><line x1="12" y1="2" x2="12" y2="6" stroke="currentColor" stroke-width="2"/><line x1="12" y1="18" x2="12" y2="22" stroke="currentColor" stroke-width="2"/>',
color: '#3b82f6'
},
{
title: "Genauigkeit vor Geschwindigkeit",
content: "Tippe langsam und präzise. Geschwindigkeit kommt mit der Zeit automatisch. Fehler zu korrigieren kostet mehr Zeit als langsam und richtig zu tippen.",
icon: '<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/><polyline points="12 6 12 12 16 14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"/>',
color: '#8b5cf6'
},
{
title: "Regelmäßig üben",
content: "Übe täglich 15-30 Minuten. Kurze, regelmäßige Übungseinheiten sind effektiver als lange, seltene Sessions. Konsistenz ist der Schlüssel zum Erfolg.",
icon: '<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="6" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="2" fill="currentColor"/>',
color: '#ec4899'
},
{
title: "Richtige Haltung",
content: "Sitze aufrecht, Füße flach auf dem Boden. Die Handgelenke sollten leicht schweben, nicht auf dem Tisch aufliegen. Eine gute Haltung verhindert Ermüdung und Verletzungen.",
icon: '<path d="M12 2L2 7v10c0 5.5 4.5 10 10 10s10-4.5 10-10V7l-10-5z" stroke="currentColor" stroke-width="2" fill="none"/><path d="M8 12l3 3 5-6" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>',
color: '#f97316'
}
],
en: [
{
title: "Home Row Position",
content: "Place your fingers on the home row: Left hand on A-S-D-F, right hand on J-K-L-;. Your index fingers rest on F and J - these keys have small bumps for orientation.",
icon: '<rect x="2" y="4" width="20" height="16" rx="2" stroke="currentColor" stroke-width="2" fill="none"/><line x1="6" y1="8" x2="8" y2="8" stroke="currentColor" stroke-width="2"/><line x1="10" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2"/><line x1="14" y1="8" x2="16" y2="8" stroke="currentColor" stroke-width="2"/><line x1="18" y1="8" x2="18" y2="8" stroke="currentColor" stroke-width="2"/><line x1="6" y1="12" x2="9" y2="12" stroke="currentColor" stroke-width="2"/><line x1="11" y1="12" x2="13" y2="12" stroke="currentColor" stroke-width="2"/><line x1="15" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="2"/><line x1="8" y1="16" x2="16" y2="16" stroke="currentColor" stroke-width="2"/>',
color: '#d4af37'
},
{
title: "Finger Assignment",
content: "Each finger is responsible for specific keys. The pinky handles the outer keys, the index finger the middle ones. Always move only the needed finger and return to the home position.",
icon: '<g stroke="currentColor" stroke-width="1.4" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2"/><path d="M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2"/><path d="M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8"/><path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"/></g>',
color: '#10b981'
},
{
title: "Don't Look at the Keyboard",
content: "The goal is touch typing. Look at the screen, not at your fingers. It's difficult at first, but with practice you'll develop muscle memory.",
icon: '<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="3" stroke="currentColor" stroke-width="2" fill="none"/><line x1="12" y1="2" x2="12" y2="6" stroke="currentColor" stroke-width="2"/><line x1="12" y1="18" x2="12" y2="22" stroke="currentColor" stroke-width="2"/>',
color: '#3b82f6'
},
{
title: "Accuracy over Speed",
content: "Type slowly and precisely. Speed comes automatically over time. Correcting mistakes takes more time than typing slowly and correctly.",
icon: '<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/><polyline points="12 6 12 12 16 14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"/>',
color: '#8b5cf6'
},
{
title: "Practice Regularly",
content: "Practice 15-30 minutes daily. Short, regular practice sessions are more effective than long, infrequent ones. Consistency is the key to success.",
icon: '<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="6" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="2" fill="currentColor"/>',
color: '#ec4899'
},
{
title: "Proper Posture",
content: "Sit upright, feet flat on the floor. Wrists should hover slightly, not rest on the desk. Good posture prevents fatigue and injuries.",
icon: '<path d="M12 2L2 7v10c0 5.5 4.5 10 10 10s10-4.5 10-10V7l-10-5z" stroke="currentColor" stroke-width="2" fill="none"/><path d="M8 12l3 3 5-6" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>',
color: '#f97316'
}
]
};
let currentLang = 'de';
let currentText = '';
let currentPosition = 0;
let startTime = null;
let errors = 0;
let isTestActive = false;
let currentTip = 0;
let timerInterval = null;
function formatTime(ms) {
const totalSeconds = Math.floor(ms / 1000);
const minutes = Math.floor(totalSeconds / 60).toString().padStart(2, '0');
const seconds = (totalSeconds % 60).toString().padStart(2, '0');
return `${minutes}:${seconds}`;
}
function updateTimeCounter() {
const el = document.getElementById('timeCounter');
if (!startTime) {
el.querySelector('#timeText').textContent = '00:00';
return;
}
el.querySelector('#timeText').textContent = formatTime(Date.now() - startTime);
}
function getRandomText() {
const langTexts = texts[currentLang];
return langTexts[Math.floor(Math.random() * langTexts.length)];
}
function displayText() {
currentText = getRandomText();
textDisplay.innerHTML = currentText.split('').map((char, idx) =>
`<span data-index="${idx}">${char}</span>`
).join('');
updateCursor();
}
function updateCursor() {
document.querySelectorAll('.text-display span').forEach((span, idx) => {
span.classList.remove('current');
if (idx === currentPosition) {
span.classList.add('current');
}
});
}
function handleInput(e) {
if (!isTestActive) {
isTestActive = true;
startTime = Date.now();
startPrompt.style.display = 'none';
updateTimeCounter();
if (timerInterval) clearInterval(timerInterval);
timerInterval = setInterval(updateTimeCounter, 250);
}