-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (39 loc) · 1.47 KB
/
index.html
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">
<title>Abelian Sandpile</title>
<link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="toolbar" id="toolbar">
<h1>Abelian Sandpile</h1>
<span id="windowSizeAlert">
<!-- Intentionally blank. "script.js" will add text here if the window
size is below a certain width or height. -->
</span>
<!-- Buttons for transitioning the grid forward/backward. -->
<span id="stepButtonsContainer" class="buttonsContainer">
<button id="pauseButton">Play</button>
<span id="stepInputFormContainer">
<form name="stepInputForm">
<label for="stepInput">Go to step:</label>
<input type="number" id="stepInput" name="stepInput" min="0" step="100">
<input type="button" id="stepInputSubmit" value="Go to">
</form>
</span>
<!-- Displays current step. -->
<span id="stepCountContainer">
<span id="stepCountLabel">Steps:</span>
<span id="stepCountText">0</span> <!-- Modified by "script.js" -->
</span>
</span>
</div>
<!-- The canvas we draw our grid on. -->
<canvas id="gridCanvas">
<p>If this doesn't show, your browser didn't load canvas.</p>
</canvas>
<script type="module" src="js/script.js"></script>
</body>
</html>