-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
171 lines (157 loc) · 5.33 KB
/
index.html
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Клавиатурный тренажер</title>
<!-- <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css">
<link href="https://fonts.googleapis.com/css?family=PT+Mono&display=swap&subset=cyrillic-ext" rel="stylesheet">
</head>
<body>
<!-- Logo and Results -->
<div class="container">
<div class="logo">
<i class="fas fa-keyboard"></i> Клавиатурный тренажер
</div>
<!-- Results -->
<div class="results ">
<div class="results-title">Результаты предыдущей строки:</div>
<div class="indicators">
<div class="indicator">
<div class="indicator__icon">
<i class="fas fa-tachometer-alt"></i>
</div>
<div class="indicator__name">Символов в минуту:</div>
<div class="indicator__value" id = "wordsSpeed">-</div>
</div>
<div class="indicator">
<div class="indicator__icon">
<i class="far fa-clock"></i>
</div>
<div class="indicator__name">Слов в минуту:</div>
<div class="indicator__value" id = "">-</div>
</div>
<div class="indicator">
<div class="indicator__icon">
<i class="far fa-clock"></i>
</div>
<div class="indicator__name">Реальных слов в минуту:</div>
<div class="indicator__value">37</div>
</div>
<div class="indicator">
<div class="indicator__icon indicator__icon--errors">
<i class="fas fa-exclamation-circle"></i>
</div>
<div class="indicator__name">Ошибок:</div>
<div class="indicator__value" id = "errorProcent">-</div>
</div>
</div>
</div>
<!-- // Results -->
</div>
<!-- // Logo and Results -->
<div class="devider"></div>
<div class="container">
<!-- Input field -->
<form action="">
<input
id="input"
type="text"
class="input "
placeholder="Поле для ввода текста"
>
</form>
<!-- // Input field -->
<!-- Text -->
<!-- <div class="text error"> -->
<div class="text" id="textExample">
<div class="line">
<span class="done"> На переднем плане, прямо перед</span>
<span class="hint">н</span>ами, расположен был дворик, где стоял
</div>
<div class="line">
наполовину вычищенный автомобиль. Шофер Остин был на этот раз
</div>
<div class="line">
уволен окончательно и бесповоротно. Он раскинулся на земле,
</div>
<div class="line hidden">
и большая черная ссадина на лбу свидетельствовала, по-видимому, о том,
</div>
<div class="line hidden"> что он при падении ударился головою о подножку или щит.</div>
</div>
<!-- // Text -->
<!-- Keyboard -->
<div class="keyboard">
<div class="line">
<div data-key = "ё">Ё</div>
<div data-key = "1">1</div>
<div data-key = "2">2</div>
<div data-key = "3">3</div>
<div data-key = "4">4</div>
<div data-key = "5">5</div>
<div data-key = "6">6</div>
<div data-key = "7">7</div>
<div data-key = "8">8</div>
<div data-key = "9">9</div>
<div data-key = "0">0</div>
<div data-key = "-">-</div>
<div data-key = "Equal">+</div>
<div data-key = "Backspace" class="backspace">Backspace</div>
</div>
<div class="line">
<div data-key = "Tab">Tab</div>
<div data-key = "й">Й</div>
<div data-key = "ц">Ц</div>
<div data-key = "у">У</div>
<div data-key = "к">К</div>
<div data-key = "е">Е</div>
<div data-key = "н">Н</div>
<div data-key = "г">Г</div>
<div data-key = "ш">Ш</div>
<div data-key = "щ">Щ</div>
<div data-key = "з">З</div>
<div data-key = "х">Х</div>
<div data-key = "ъ">Ъ</div>
<div data-key = "Backslash">\</div>
</div>
<div class="line">
<div data-key = "CapsLock" class="caps">Caps Lock</div>
<div data-key = "ф">Ф</div>
<div data-key = "ы">Ы</div>
<div data-key = "в">В</div>
<div data-key = "а">А</div>
<div data-key = "п">П</div>
<div data-key = "р">Р</div>
<div data-key = "о">О</div>
<div data-key = "л">Л</div>
<div data-key = "д">Д</div>
<div data-key = "ж">Ж</div>
<div data-key = "э">Э</div>
<div data-key = "Enter" class="enter">Enter</div>
</div>
<div class="line">
<div data-key = "ShiftLeft" class="shift">Shift</div>
<div data-key = "я">Я</div>
<div data-key = "ч">Ч</div>
<div data-key = "с">С</div>
<div data-key = "м">М</div>
<div data-key = "и">И</div>
<div data-key = "т">Т</div>
<div data-key = "ь">Ь</div>
<div data-key = "б">Б</div>
<div data-key = "ю">Ю</div>
<div data-key = "Slash">. <sup>,</sup></div>
<div data-key = "ShiftRight" class="shift">Shift</div>
</div>
<div class="line">
<div data-key = " " class="space"></div>
<div data-key = "AltRight" class="alt">Alt</div>
</div>
</div>
<!-- // Keyboard -->
</div>
<script src="js/main.js"></script>
</body>
</html>