-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (163 loc) · 7.16 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
<!doctype html>
<html lang="en">
<head>
<title>Asobimashou!</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#F8F9FA" />
<meta property="title" content="Asobimashou!" />
<meta http-equiv="content-language" content="en" />
<meta property="description" content="A minimal website to practice reading Japanese katakana and hiragana!" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Asobimashou!" />
<meta property="og:site_name" content="あそびましょう!" />
<meta property="og:description" content="A minimal website to practice reading Japanese katakana and hiragana!" />
<meta property="og:image" content="https://sglkc.github.io/asobimashou/thumbnail.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://sglkc.github.io/asobimashou/" />
<meta property="twitter:title" content="Asobimashou!" />
<meta property="twitter:description" content="A minimal website to practice reading Japanese katakana and hiragana!" />
<meta property="twitter:image" content="https://sglkc.github.io/asobimashou/thumbnail.png" />
<link href="favicon.ico" rel="icon"/ >
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
<link href="assets/css/icons.css" rel="stylesheet" />
<link href="assets/css/fonts.css" rel="stylesheet" />
<script src="assets/js/jquery-3.6.0.min.js"></script>
<script src="assets/js/wanakana.min.js"></script>
</head>
<body>
<!-- Main Menu -->
<section id="menu" class="bg-light">
<div class="mb-3 display-5 game-font-change">
<ruby>あそびましょう!<rt>Asobimashou!</rt></ruby>
</div>
<div class="mb-3 btn-group-vertical" role="group">
<button id="start" class="btn btn-outline-dark py-2" disabled>
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
<span>Loading Game...</span>
</button>
<button id="option" class="btn btn-outline-dark py-2 border-top-0 border-bottom-0">
<i class="bi-gear-fill"></i> Options
</button>
<div id="option-wrapper" class="border">
<div class="row justify-content-center mb-3">
<div class="col-auto btn-group-vertical" role="group">
<select id="game-font" class="form-select rounded-0 rounded-top">
<option value="inherit" selected>Default Font</option>
<option value="Klee One">Klee One</option>
<option value="Noto Serif JP">Noto Serif JP</option>
<option value="Yuji Syuku">Yuji Syuku</option>
</select>
<div class="btn-group" role="group">
<button class="btn btn-outline-dark game-theme active" value="light">Light</button>
<button class="btn btn-outline-dark game-theme ms-0" value="dark">Dark</button>
</div>
<button id="game-kanji" class="btn btn-outline-dark rounded-0 rounded-bottom">Show Kanji</button>
</div>
<div class="col-auto btn-group-vertical" role="group">
<button id="game-hiragana" class="btn btn-outline-dark game-type">ひらがな</button>
<button id="game-mixed" class="btn btn-outline-dark game-type">Mixed</button>
<button id="game-katakana" class="btn btn-outline-dark game-type">カタカナ</button>
</div>
</div>
<div class="row justify-content-center">
<div class="col-auto btn-group-vertical" role="group">
<button id="game-dakuten" class="btn btn-outline-dark active">
<span>Dakuten</span>
</button>
<div class="btn-group">
<button class="btn btn-outline-dark game-card active" value="Random">Random</button>
<button class="btn btn-outline-dark game-card" value="JLPT">JLPT N5-N4</button>
</div>
</div>
</div>
</div>
<button id="review" class="btn btn-outline-dark py-2" disabled>
<i class="bi-arrow-counterclockwise"></i> Review
</button>
</div>
<div class="d-flex align-items-center gap-1 fs-3">
<a class="text-reset text-decoration-none" href="https://github.com/sglkc/asobimashou">
<i class="bi-github"></i>
</a>
</div>
</section>
<!-- Play Area -->
<main id="game" class="container-fluid d-none">
<div class="row justify-content-center align-items-center">
<h2 id="score" class="col col-lg-3 m-0">
<i class="bi-check-circle"></i> 0/0
</h2>
<button id="stop" class="col-auto btn btn-outline-dark">
<i class="bi-stop-fill"></i> End
</button>
<h2 id="time" class="col col-lg-3 m-0">
0 <i class="bi-clock"></i>
</h2>
</div>
<div class="row justify-content-center">
<div class="col-auto py-5">
<ruby id="question" class="display-4 game-font-change">
またひとり<rt>また一人</rt>
</ruby>
<input id="question-id" class="d-none" type="number">
</div>
</div>
<div class="row justify-content-center mb-4">
<div class="col-10 col-md-7 col-lg-5">
<input id="answer" class="form-control-lg game-font-change" placeholder="Answer" autocomplete="off">
</div>
</div>
<div class="row justify-content-center text-center">
<div class="col-auto">
Press <kbd>Space</kbd> to skip.
</div>
<div class="col-auto d-none d-md-block">
Press <kbd>Tab</kbd> to end.
</div>
</div>
</main>
<!-- End Banner -->
<section id="result" class="d-none">
<h1><b>Final Result</b></h1>
<div class="row mb-3 justify-content-center">
<div class="col-auto">
<p>Answered</p>
<i id="stats-answered">0</i>
</div>
<div class="col-auto">
<p>Skipped</p>
<i id="stats-skipped">0</i>
</div>
<div class="col-auto">
<p>Time</p>
<i id="stats-timer">0</i>
</div>
<div class="col-auto">
<p>Average</p>
<i id="stats-average">0</i>
</div>
</div>
<div id="review-wrapper" class="table-responsive">
<table class="table table-hover m-0">
<tbody id="review-table" class="game-font-change"></tbody>
</table>
</div>
<div class="d-flex">
<button id="copy" class="btn btn-outline-dark me-3">
<i class="bi-table"></i> Copy Table
</button>
<button id="share" class="btn btn-outline-dark me-3">
<i class="bi-share-fill"></i> Share
</button>
<button id="restart" class="btn btn-outline-dark">
<i class="bi-list"></i> Title
</button>
</div>
</section>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/script.js"></script>
<script src="assets/js/cards.js" async></script>
</body>
</html>