-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (41 loc) · 1.65 KB
/
index.html
File metadata and controls
49 lines (41 loc) · 1.65 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HzStrobe - Monitor Refresh Rate & Strobe Tool</title>
</head>
<body>
<canvas id="strobeCanvas"></canvas>
<div id="uiLayer">
<button id="uiToggleBtn" class="ui-toggle-btn hidden">Hide UI</button>
<div id="warningModal" class="modal">
<div class="modal-content">
<h2>⚠️ PHOTOSENSITIVE EPILEPSY WARNING</h2>
<p>This application produces rapid flashing lights (strobe effect).</p>
<p><strong>DO NOT USE</strong> if you or anyone in your household has a history of epilepsy or seizures.</p>
<p>By clicking "I Understand & Continue", you acknowledge this risk.</p>
<button id="acceptBtn" class="danger-btn">I Understand & Continue</button>
</div>
</div>
<div id="controls" class="hidden">
<h1 class="app-title">HzStrobe</h1>
<div id="appVersion" class="app-version"></div>
<div class="stats">
<div>Refresh Rate: <span id="hzDisplay">--</span> Hz</div>
<div>Status: <span id="statusDisplay">Ready</span></div>
</div>
<div class="control-group">
<label for="speedSlider">Strobe Speed: <span id="speedValue">100</span>%</label>
<input type="range" id="speedSlider" min="0" max="100" value="100">
</div>
<div class="buttons">
<button id="startBtn">Start Strobe</button>
<button id="stopBtn" disabled>Stop</button>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>