-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (95 loc) · 2.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kanji Quiz App</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500&family=Shippori+Mincho&family=Zen+Old+Mincho&display=swap"
rel="stylesheet"
/>
<style>
.no-select {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.kanji-font {
font-family: "Shippori Mincho", serif;
}
</style>
</head>
<body class="bg-gray-100 text-gray-800">
<div class="container mx-auto p-4">
<h1 class="text-2xl font-bold text-center">ライアンの漢字クイズ</h1>
<div class="mt-8">
<div class="flex justify-center">
<p class="text-lg">漢字検定レベルを選んでください</p>
</div>
<div class="flex justify-center mt-4 flex-wrap">
<button
class="bg-blue-500 text-white px-4 py-2 rounded m-1"
onclick="selectLevel(1)"
>
Easy
</button>
<button
class="bg-blue-500 text-white px-4 py-2 rounded m-1"
onclick="selectLevel(2)"
>
Plateau
</button>
<button
class="bg-blue-500 text-white px-4 py-2 rounded m-1"
onclick="selectLevel(3)"
>
Pain
</button>
</div>
</div>
<div class="mt-8">
<div id="quizContainer" class="mt-4 hidden">
<div class="text-center">
<p
id="kanjiDisplay"
class="text-6xl font-bold no-select kanji-font"
></p>
</div>
<div class="flex justify-center mt-4">
<p class="text-sm text-gray-600">Please input in Hiragana only.</p>
</div>
<div class="flex justify-center mt-4">
<input
id="answerInput"
type="text"
class="border p-2 rounded"
placeholder="Enter your answer"
/>
</div>
<div class="flex justify-center mt-4">
<button
id="submitAnswerButton"
class="bg-green-500 text-white px-4 py-2 rounded"
>
Submit
</button>
</div>
<div id="feedback" class="text-center mt-4"></div>
<div
id="validationFeedback"
class="text-center mt-2 text-red-500"
></div>
</div>
</div>
</div>
<script src="script.js"></script>
<script src="https://unpkg.com/[email protected]/lib/index.umd.js"></script>
</body>
</html>