-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (49 loc) · 1.43 KB
/
Copy pathindex.html
File metadata and controls
53 lines (49 loc) · 1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Visualize Modular Arithmetic</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<h1>Visualize Modular Arithmetic</h1>
</header>
<main>
<div id="vis-container">
<svg width="500" height="500" viewBox="0 0 500 500">
<g transform="translate(250,250)" id="pie"></g>
<circle
cx="250"
cy="250"
r="180"
fill="none"
stroke="#111"
stroke-width="2"
/>
</svg>
<div id="info">
<div id="residueSet"></div>
<div class="controls">
<button id="highlightPos">Highlight Positive</button>
<button id="highlightNeg">Highlight Negative</button>
<button id="clearHighlight">Clear Highlight</button>
<div class="modulus-line">
<label for="sliceInput"><strong>Modulus (n):</strong></label>
<input
type="number"
id="sliceInput"
min="2"
max="100"
value="5"
/>
</div>
<button id="drawBtn" class="full-width">Draw</button>
</div>
</div>
</div>
</main>
<script src="script.js"></script>
</body>
</html>