-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (98 loc) · 2.61 KB
/
index.html
File metadata and controls
98 lines (98 loc) · 2.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
button {
background: linear-gradient(#bbf, #00f);
cursor: pointer;
border-radius: 10px;
font-size: 40px;
width: 200px;
height: 100px;
color: #fff;
font-weight: bold;
margin: 10px;
}
button:hover {
background: linear-gradient(#668, #008);
}
button:active {
background: linear-gradient(#008, #668);
}
li {
margin: 2px auto;
width: 600px;
border: 2px solid #000;
border-radius: 10px;
transition: background-color 0.25s;
cursor: pointer;
}
li:hover {
background-color: #999;
}
#time-input {
margin: 10px;
font-size: 20px;
width: 80px;
}
canvas {
display: block;
margin: 0 auto;
}
#timer {
background-color: #000;
width: 1200px;
height: 40px;
}
#main-input {
background-color: #000;
width: 1200px;
height: 120px;
}
#result {
width: fit-content;
text-align: left;
font-size: 40px;
line-height: 0.5;
margin: 0 auto;
}
tr,
td {
padding: 20px;
}
</style>
<title>Typing</title>
</head>
<body style="background-color: #ffb">
<div id="start" style="text-align: center">
<div style="font-size: 60px; font-weight: bold">準一級タイピング</div>
<div>
<label for="time-input" style="font-size: 20px">制限時間を入力:</label>
<input id="time-input" type="text" value="30" />
</div>
<button id="start-button" onclick="mainScene()">スタート</button>
</div>
<div id="main" style="text-align: center">
<canvas id="timer"></canvas><canvas id="main-input"></canvas>
<div id="incorrect" style="color: #f00; font-size: 40px"></div>
<div id="choices-wrapper" style="font-size: 40px">
<div>意味は?</div>
<ul id="choices" style="list-style: none">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
<div id="end" style="text-align: center">
<div style="font-size: 80px; font-weight: bold">終了!</div>
<div id="result"></div>
<button id="retry-button" onclick="startScene()">再挑戦</button>
</div>
<script src="./vocabularies.js"></script>
<script src="./main.js"></script>
</body>
</html>