-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (57 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Cute+Font&family=Jua&family=Noto+Sans+KR:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/main.css" />
<title>KR Typing</title>
</head>
<body>
<header class="header">
<h1>Learn vocab and practice typing in Korean!</h1>
</header>
<main class="container">
<!-- word -->
<section class="word">
<h2 class="word__current initial-font" id="currentWord">KR Typing Game</h2>
<p class="word__translation" id="translation"></p>
<input
type="text"
class="word__input"
id="wordInput"
placeholder="Click START to start game..."
disabled
/>
<p class="message" id="message"></p>
</section>
<!-- timer and score -->
<section class="controls">
<h3 class="controls__time">Time Left: <span class="time" id="time">0</span></h3>
<h3 class="controls__score">Score: <span class="score" id="score">0</span></h3>
<button class="btn-start" id="startBtn">START</button>
</section>
<!-- instructions -->
<section class="instructions">
<h4>Instructions</h4>
<ol class="instructions__list">
<li class="instructions__item">Setup your keyboard input to Korean</li>
<li class="instructions__item">If you need reference, click ⌨ to show keyboard</li>
<li class="instructions__item">When you're ready, click START</li>
<li class="instructions__item">
Type the word shown, no need to type the English translation!
</li>
</ol>
<figure class="keyboard">
<img class="keyboard__img" src="./img/kr-keyboard.png" alt="English-Korean keyboard" />
</figure>
<button class="btn-keyboard"><span>Show</span> ⌨</button>
</section>
</main>
<script src="vocab.js"></script>
<script src="script.js"></script>
</body>
</html>