-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplank.html
More file actions
81 lines (78 loc) · 3.41 KB
/
Copy pathplank.html
File metadata and controls
81 lines (78 loc) · 3.41 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>💪</text></svg>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#f0f0f0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="Plank" />
<link rel="apple-touch-icon" href="/plank/icons/plank-192.svg" />
<title>Plank Leaderboard</title>
</head>
<body>
<div id="app">
<h1>Plank Leaderboard</h1>
<section id="leaderboard-section">
<h2>Leaderboard</h2>
<div id="leaderboard"></div>
</section>
<section id="record-section">
<h2>Record New Time</h2>
<form id="record-form">
<div class="form-group">
<label for="user-select">Who are you?</label>
<select id="user-select" required>
<option value="">Select your name...</option>
</select>
<input type="text" id="new-name-input" placeholder="Enter your name" style="display: none;" />
<div id="camera-container" style="display: none;">
<video id="camera-preview" autoplay playsinline></video>
<canvas id="camera-canvas" style="display: none;"></canvas>
<img id="avatar-preview" style="display: none;" />
<div class="camera-buttons">
<button type="button" id="capture-btn">Take Photo</button>
<button type="button" id="flip-btn">Flip</button>
<button type="button" id="retake-btn" style="display: none;">Retake</button>
</div>
</div>
</div>
<div class="form-group">
<label for="time-input">Plank Time</label>
<div class="time-inputs">
<input type="number" id="minutes-input" min="0" max="59" placeholder="min" required />
<span>:</span>
<input type="number" id="seconds-input" min="0" max="59" placeholder="sec" required />
</div>
</div>
<button type="submit">Record Time</button>
</form>
<div id="message"></div>
</section>
<section id="history-section">
<h2>History</h2>
<div id="history"></div>
</section>
<!-- Avatar Edit Modal -->
<div id="avatar-modal" class="modal" style="display: none;">
<div class="modal-content">
<h3>Update Photo</h3>
<video id="modal-camera" autoplay playsinline></video>
<canvas id="modal-canvas" style="display: none;"></canvas>
<img id="modal-preview" style="display: none;" />
<div class="camera-buttons">
<button type="button" id="modal-capture">Take Photo</button>
<button type="button" id="modal-flip">Flip</button>
<button type="button" id="modal-retake" style="display: none;">Retake</button>
</div>
<div class="modal-actions">
<button type="button" id="modal-save" style="display: none;">Save</button>
<button type="button" id="modal-cancel">Cancel</button>
</div>
</div>
</div>
</div>
<script type="module" src="/src/plank-client/main.ts"></script>
</body>
</html>