-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (69 loc) · 2.43 KB
/
index.html
File metadata and controls
75 lines (69 loc) · 2.43 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Algorithm Visualizer</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./src/styles/main.css" />
</head>
<body>
<div class="bg-orb orb-a"></div>
<div class="bg-orb orb-b"></div>
<main class="app">
<header class="app-header">
<h1>Algorithm Visualizer</h1>
<p>Multi-algorithm visualizer with step-by-step controls</p>
</header>
<section class="panel controls">
<div class="control-grid">
<label>
Algorithm
<select id="algorithmSelect"></select>
</label>
<label>
Data Size
<input id="sizeInput" type="range" min="8" max="80" value="28" />
<span id="sizeValue">28</span>
</label>
<label>
Speed
<input id="speedInput" type="range" min="0.25" max="4" step="0.25" value="1" />
<span id="speedValue">1.00x</span>
</label>
<label id="targetWrap">
Target
<input id="targetInput" type="number" value="42" />
</label>
</div>
<div class="button-row">
<button id="randomBtn">Random (R)</button>
<button id="runBtn">Run</button>
<button id="playBtn">Play / Pause (Space)</button>
<button id="prevBtn">Prev (Left)</button>
<button id="nextBtn">Next (Right)</button>
<button id="resetBtn">Reset (Home)</button>
</div>
<label class="timeline-wrap">
Timeline
<input id="timelineInput" type="range" min="0" max="0" value="0" />
</label>
</section>
<section class="panel viz">
<div class="stats">
<span id="stepLabel">Step 0 / 0</span>
<span id="algorithmMeta">-</span>
</div>
<div id="canvas" class="canvas"></div>
<p id="message" class="message">Click "Run" to start.</p>
</section>
<section class="panel shortcuts">
<h2>Shortcuts</h2>
<p>`Space` play/pause, `Left/Right` step, `R` random, `Home` reset</p>
</section>
</main>
<script defer src="./src/app.js?v=20260228-graph-1"></script>
</body>
</html>