-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (80 loc) · 3.75 KB
/
Copy pathindex.html
File metadata and controls
88 lines (80 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gym Timer</title>
<link rel="stylesheet" href="styles.css">
</head>
<body data-state="IDLE">
<main class="app">
<header class="masthead">
<div class="brand">Stopwatch</div>
<label class="alt-toggle"><input type="checkbox" id="alt-toggle"> Alt</label>
<button id="ctl-help" type="button" class="help-btn" aria-haspopup="dialog" aria-label="Commands">?</button>
<div id="state-tag" class="state-tag">Ready</div>
</header>
<section class="lap-block blueprint" aria-label="Timers">
<i class="corner tl"></i><i class="corner tr"></i><i class="corner bl"></i><i class="corner br"></i>
<div id="voice-ack" class="voice-ack" hidden></div>
<div class="kicker lap-kicker">Next</div>
<div class="lap-timers">
<div id="timer-lap" class="timer-lap">0:00</div>
<div id="timer-lap-prev" class="timer-lap timer-lap-prev">–</div>
</div>
<div class="subtimers">
<div>
<div class="kicker sub-kicker">Session</div>
<div id="timer-session" class="timer-session">0:00:00</div>
</div>
<div>
<div class="kicker sub-kicker">Lifetime</div>
<div id="timer-lifetime" class="timer-lifetime">0:00:00</div>
</div>
</div>
</section>
<section class="controls" aria-label="Controls">
<button id="ctl-primary" type="button" class="btn-primary blueprint">
<i class="corner tl"></i><i class="corner tr"></i><i class="corner bl"></i><i class="corner br"></i>
<span id="ctl-primary-label">Start</span>
</button>
<div class="controls-row">
<button id="ctl-secondary" type="button" class="btn-secondary" disabled>Pause</button>
<button id="ctl-stop" type="button" class="btn-stop">Stop</button>
</div>
</section>
<section class="laps" aria-label="Lap list">
<div class="lap-head"><div>#</div><div>Lap</div><div class="lap-head-at">Session at</div></div>
<div id="lap-list" class="lap-list"></div>
</section>
<p id="notice" class="notice" aria-live="polite" hidden></p>
<footer class="foot">
<button id="ctl-import" type="button" class="link-btn">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="square" aria-hidden="true"><path d="M12 3v12"></path><path d="m7 10 5 5 5-5"></path><path d="M5 21h14"></path></svg>
Import JSON
</button>
<button id="ctl-export" type="button" class="link-btn">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="square" aria-hidden="true"><path d="M12 15V3"></path><path d="m7 8 5-5 5 5"></path><path d="M5 21h14"></path></svg>
Export JSON
</button>
<input id="import-file" type="file" accept=".json,application/json" hidden>
<span id="voice-ui" class="voice-ui" hidden>
<label class="voice-toggle"><input type="checkbox" id="voice-toggle"> Voice</label>
<span id="voice-status" class="voice-status" data-status="off"></span>
</span>
</footer>
<dialog id="help" class="help" aria-labelledby="help-title">
<div class="help-inner blueprint">
<i class="corner tl"></i><i class="corner tr"></i><i class="corner bl"></i><i class="corner br"></i>
<div class="help-head">
<h2 id="help-title" class="help-title">Commands</h2>
<button id="help-close" type="button" class="help-close" aria-label="Close">Close</button>
</div>
<div id="help-grid" class="help-grid"></div>
<p class="help-note">Keys work anywhere on the page. A command that is not available in the current state is ignored.</p>
</div>
</dialog>
</main>
<script type="module" src="app.js"></script>
</body>
</html>