-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (78 loc) · 3.75 KB
/
Copy pathindex.html
File metadata and controls
92 lines (78 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: blob: https://timdixon82.goatcounter.com; base-uri 'self'; object-src 'none'; form-action 'none'; connect-src 'self' https://timdixon82.goatcounter.com">
<meta name="referrer" content="strict-origin-when-cross-origin">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#87CEEB">
<title>Clock Practice</title>
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1><span aria-hidden="true">🕐</span> Clock Practice <span aria-hidden="true">🕐</span></h1>
</header>
<main>
<div class="stats" role="group" aria-label="Game statistics">
<div class="stat-box">
<div class="stat-label">Tries This Clock</div>
<div class="stat-value" id="attempts">0</div>
</div>
<div class="stat-box">
<div class="stat-label">Clocks Solved</div>
<div class="stat-value" id="correct-count">0</div>
</div>
</div>
<div class="clock-container">
<svg class="clock" viewBox="0 0 200 200" role="img" aria-label="Practice clock. Look at the two hands and enter the time using the controls below.">
<circle cx="100" cy="100" r="95" fill="white" stroke="#C2410C" stroke-width="5"/>
<g id="minute-markers" aria-hidden="true"></g>
<g id="hour-numbers" font-family="Arial, sans-serif" font-size="16" font-weight="bold" text-anchor="middle" fill="#0A2342" aria-hidden="true"></g>
<line id="hour-hand" x1="100" y1="100" x2="100" y2="55" stroke="#0A2342" stroke-width="6" stroke-linecap="round"/>
<line id="minute-hand" x1="100" y1="100" x2="100" y2="28" stroke="#C2410C" stroke-width="4" stroke-linecap="round"/>
<circle cx="100" cy="100" r="7" fill="#C2410C"/>
<circle cx="100" cy="100" r="3" fill="#0A2342"/>
</svg>
</div>
<div class="panel">
<div class="input-row">
<div class="input-group">
<label id="hour-label">Hour</label>
<div class="number-control" role="group" aria-labelledby="hour-label">
<button class="number-btn" type="button" aria-label="Decrease hour">−</button>
<span class="number-display" id="hour-display" role="spinbutton"
aria-labelledby="hour-label"
aria-valuemin="1" aria-valuemax="12" aria-valuenow="3"
tabindex="0">3</span>
<button class="number-btn" type="button" aria-label="Increase hour">+</button>
</div>
</div>
<div class="colon" aria-hidden="true">:</div>
<div class="input-group">
<label id="minute-label">Minutes</label>
<div class="number-control" role="group" aria-labelledby="minute-label">
<button class="number-btn" type="button" aria-label="Decrease minutes by five">−</button>
<span class="number-display" id="minute-display" role="spinbutton"
aria-labelledby="minute-label"
aria-valuemin="0" aria-valuemax="55" aria-valuenow="0"
tabindex="0">00</span>
<button class="number-btn" type="button" aria-label="Increase minutes by five">+</button>
</div>
</div>
</div>
<button class="primary" type="button" id="check-btn">Check My Answer</button>
<div class="feedback empty" id="feedback" role="status"></div>
<div class="actions">
<button class="secondary" type="button" id="new-clock-btn">New Clock</button>
<button class="share" type="button" id="share-btn" disabled>Share with Mum & Dad</button>
</div>
</div>
</main>
<script type="module" src="clock-practice.js"></script>
<script data-goatcounter="https://timdixon82.goatcounter.com/count"
async src="./assets/analytics/count.js"></script>
</body>
</html>