-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
189 lines (176 loc) · 6.52 KB
/
index.html
File metadata and controls
189 lines (176 loc) · 6.52 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Free EMOM (Every Minute On the Minute) interval timer for HIIT, CrossFit, and circuit training workouts. Sync with Google Fit and track your fitness streak."
/>
<meta name="theme-color" content="#121212" />
<title>EMOM Timer</title>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="src/css/style.css" />
<script
src="https://accounts.google.com/gsi/client"
async
defer
></script>
</head>
<body>
<button id="settings-toggle" title="Settings">☰</button>
<div id="fit-status-icon" class="fit-icon" title="Google Fit Status"></div>
<div id="toast-container" class="toast-container"></div>
<main>
<div id="settings-panel">
<div class="setting-group">
<label for="timer-mode-select">Training Mode</label>
<select id="timer-mode-select">
<option value="emom" selected>Fixed Time (EMOM)</option>
<option value="fartlek">Dynamic (Walk/Jog/Run)</option>
</select>
</div>
<div class="setting-group">
<label for="interval-count-input">Number of Rounds</label>
<input
type="number"
id="interval-count-input"
value="5"
min="1"
max="99"
style="
background: #222;
color: white;
border: 1px solid #444;
padding: 8px;
border-radius: 5px;
font-size: 1rem;
outline: none;
"
/>
</div>
<div class="setting-group">
<label for="interval-duration-select">Interval Duration</label>
<select id="interval-duration-select">
<option value="30">30 Seconds</option>
<option value="45">45 Seconds</option>
<option value="60" selected>1 Minute</option>
<option value="90">1 Minute 30 Seconds</option>
<option value="120">2 Minutes</option>
<option value="180">3 Minutes</option>
<option value="300">5 Minutes</option>
</select>
</div>
<div class="setting-group">
<label for="activity-type-select">Activity Type</label>
<select id="activity-type-select">
<option value="114">HIIT</option>
<option value="115" selected>Kettlebell Training</option>
<option value="113">Crossfit</option>
<option value="8">Running / Fartlek</option>
<option value="15">Circuit Training</option>
<option value="10">Bootcamp</option>
<option value="21">Calisthenics</option>
<option value="97">Weight Lifting</option>
<option value="97">Other</option>
</select>
</div>
<div class="setting-group" style="margin-top: 20px; text-align: center">
<div
style="
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
background: #222;
padding: 10px;
border-radius: 5px;
"
>
<label for="location-toggle" style="margin: 0; font-size: 0.9rem"
>Include GPS Location</label
>
<input type="checkbox" id="location-toggle" style="width: 20px; height: 20px" />
</div>
<p style="font-size: 0.75rem; color: #b0b0b0; margin-bottom: 15px; text-align: left">
When enabled, your workout location will be saved to Google Fit.
</p>
<button id="connect-google-fit-btn" class="secondary" style="width: 100%">
Connect Google Fit
</button>
<div id="google-fit-status" style="font-size: 0.8rem; margin-top: 5px; color: #c0c0c0">
Not Connected
</div>
</div>
<div
class="setting-group"
style="margin-top: 20px; border-top: 1px solid #333; padding-top: 15px"
>
<div style="display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem">
<a href="privacy.html" style="color: #b0b0b0; text-decoration: none">Privacy Policy</a>
<a href="terms.html" style="color: #b0b0b0; text-decoration: none">Terms of Service</a>
</div>
</div>
<button id="close-settings-btn" style="width: 100%; margin-top: 10px">Done</button>
</div>
<div class="container">
<!-- SVG container -->
<svg viewBox="0 0 200 200">
<!-- Total Timer Ring (Inner) -->
<circle cx="100" cy="100" r="40" stroke-width="8" class="ring-bg" />
<circle
id="total-ring-fg"
cx="100"
cy="100"
r="40"
stroke-width="8"
class="ring-fg"
stroke-dasharray="251.3"
stroke-dashoffset="0"
/>
<!-- Interval Timer Ring (Outer) -->
<circle cx="100" cy="100" r="70" stroke-width="12" class="ring-bg" />
<circle
id="interval-ring-fg"
cx="100"
cy="100"
r="70"
stroke-width="12"
class="ring-fg"
stroke-dasharray="439.8"
stroke-dashoffset="0"
/>
</svg>
<div class="info">
<h1 id="timer-display" class="timer-text">00:00</h1>
<div id="interval-display" class="sub-text">Round 1/10</div>
<div
id="streak-display"
class="sub-text"
style="font-size: 1rem; margin-top: 5px; opacity: 0.8"
>
Streak: 0
</div>
</div>
<div id="trophy-overlay">
<div>🏆</div>
<button id="trophy-continue-btn" class="trophy-btn" style="display: none">
Continue
</button>
</div>
</div>
<div class="controls" id="cntrls">
<button id="start-btn" class="primary">Start</button>
<button id="reset-btn">Reset</button>
</div>
</main>
<footer class="site-footer">
<span class="footer-branding">EMOM Timer</span>
<span class="footer-divider">•</span>
<a href="privacy.html">Privacy Policy</a>
<span class="footer-divider">•</span>
<a href="terms.html">Terms of Service</a>
</footer>
<script type="module" src="src/ts/app.ts"></script>
</body>
</html>