-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (99 loc) · 5.79 KB
/
Copy pathindex.html
File metadata and controls
115 lines (99 loc) · 5.79 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#070B14" />
<title>Stopwatch and Countdown Timer</title>
<script type="text/javascript" src="js/myScript.js?v=20260111x" defer></script>
<link rel="stylesheet" type="text/css" href="css/myStyles.css?v=20260111aa">
</head>
<body>
<div class="bg" aria-hidden="true"></div>
<main id="container" class="app" role="main">
<header class="appHeader">
<div class="brand">
<div class="brandMark" aria-hidden="true"></div>
<div>
<h1 class="appTitle">Time Tools</h1>
<p class="appSubtitle">Stopwatch + Countdown, in hundredths</p>
</div>
</div>
</header>
<section class="grid" aria-label="Timers">
<section id="stopWatch" class="card" aria-label="Stopwatch">
<div class="cardHeader">
<h2 class="cardTitle">Stopwatch</h2>
<p class="cardHint">Counts up • mm:ss:hh</p>
</div>
<div class="analogBlock">
<div class="analogFace" role="img" aria-label="Analog stopwatch face">
<div class="analogTicks" aria-hidden="true"></div>
<div id="swHandMinute" class="hand handSeconds" aria-hidden="true"></div>
<div id="swHandSecond" class="hand handMillis" aria-hidden="true"></div>
<div id="swHandCenti" class="hand handMinutesSubdial" aria-hidden="true"></div>
<div class="handCap" aria-hidden="true"></div>
</div>
<div class="displayLabel">Elapsed</div>
<div class="display displaySmall" id="stopWatchOutput" aria-live="polite">00:00:00</div>
</div>
<div id="stopWatchControls" class="controls">
<button class="btn btnPrimary" id="startStop" onclick="startWatch();" type="button">
<span class="btnIcon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9 7.5V16.5L17 12L9 7.5Z" fill="currentColor" />
</svg>
</span>
<span class="btnText">Start</span>
</button>
<button class="btn btnGhost" id="watchReset" onclick="watchReset();" type="button">
<span class="btnIcon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20 12a8 8 0 1 1-2.34-5.66" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
<path d="M20 4v6h-6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</span>
Clear
</button>
</div>
</section>
<section id="countdownTimer" class="card" aria-label="Countdown Timer">
<div class="cardHeader">
<h2 class="cardTitle">Countdown</h2>
<p class="cardHint">Counts down • max 10:00:00</p>
</div>
<label class="field" for="timeEntered">
<span class="fieldLabel">Start time</span>
<div class="fieldRow">
<input class="input" type="text" id="timeEntered" inputmode="numeric" autocomplete="off" placeholder="mm:ss:hh (e.g., 01:30:00)" aria-describedby="timeHelp timeAlert" />
<button class="btn btnPrimary" id="startPause" onclick="startTimer();" type="button">
<span class="btnIcon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9 7.5V16.5L17 12L9 7.5Z" fill="currentColor" />
</svg>
</span>
<span class="btnText">Start</span>
</button>
<button class="btn btnGhost" id="timerReset" onclick="timerReset();" type="button">
<span class="btnIcon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20 12a8 8 0 1 1-2.34-5.66" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
<path d="M20 4v6h-6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</span>
Clear
</button>
</div>
<span class="fieldHelp" id="timeHelp">Format must be exactly <strong>mm:ss:hh</strong> (leading zeros required).</span>
<span id="timeAlert" class="alert" role="status" aria-live="polite"></span>
</label>
<div class="displayLabel">Time remaining</div>
<div class="display displayDigital" id="countdownTimerOutput" aria-live="polite">00:00:00</div>
</section>
</section>
<footer class="appFooter">
<span class="footerText">Tip: press <kbd>Enter</kbd> to start/pause the countdown. <span class="versionTag">UI v2026-01-11</span></span>
</footer>
</main>
</body>
</html>