-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (82 loc) · 3.79 KB
/
Copy pathindex.html
File metadata and controls
89 lines (82 loc) · 3.79 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
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graph Visualizer</title>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="canvas-wrapper">
<canvas id="canvas"></canvas>
</div>
<div class="ui-controls">
<div class="control" data-control="graph">
<p class="title">Graph</p>
<label for="dataMode">Data Mode:</label>
<select name="dataMode" id="dataMode" class="DEPanimateHamPath DEPconnect">
<option value="0">Students</option>
<option value="1" selected>Groups</option>
</select>
<br>
<label for="graphAlgo">Algorithm:</label>
<select name="graphAlgo" id="graphAlgo" class="DEPanimateHamPath DEPconnect">
<option value="0" selected>Cartesian</option>
<option value="1">Radial</option>
</select>
<br>
<button id="drawGraph" class="DEPanimateHamPath DEPconnect">Draw</button>
<div class="zoom-utils">
<button class="DEPanimateHamPath DEPconnect" id="graphZoomReset" title="Reset Zoom">
<img src="assets/home.svg" alt="Reset Zoom" />
</button>
<button class="DEPanimateHamPath DEPconnect" id="graphZoomIn" title="Zoom In">
<img src="assets/plus.svg" alt="Zoom In">
</button>
<button class="DEPanimateHamPath DEPconnect" id="graphZoomOut" title="Zoom Out">
<img src="assets/minus.svg" alt="Zoom Out">
</button>
</div>
</div>
<div class="control">
<p class="title">Connect</p>
<label for="connectFrom">From</label>
<select name="connectFrom" id="connectFrom" class="DEPconnect">
<option value="Draw First">Draw First</option>
</select>
<br>
<label for="connectTo">To</label>
<select name="connectTo" id="connectTo" class="DEPconnect">
<option value="Draw First">Draw First</option>
</select>
<br>
<button id="runConnect" class="DEPconnect DEPanimateHamPath">Connect</button>
</div>
<div class="control" data-control="hamPath">
<p class="title">HamPath</p>
<p class="DEPdataMode"></p>
<button id="drawHamPath" class="DEPanimateHamPath DEPconnect" disabled>Draw</button>
<button id="animateHamPath" class="DEPanimateHamPath DEPconnect" disabled>Animate</button>
<button id="clearHamPath" class="DEPanimateHamPath DEPconnect">Remove</button>
<br>
<label for="animateHamPathDelay">Delay (ms):</label>
<input type="number" name="animateHamPathDelay" id="animateHamPathDelay" class="DEPanimateHamPath" min="0" value="250" max="2000">
</div>
<div class="control">
<p class="title">Tooltips</p>
<button id="toggleTooltips" class="DEPanimateHamPath DEPconnect">Enable</button>
<div class="tooltip">
<p>Hello</p>
</div>
</div>
</div>
<p class="credits">Made by: Sai Chandra</p>
</div>
<div class="phone-container">
<p>Screen Too Small :(</p>
</div>
<script src="scripts/app.js" type="module"></script>
</body>
</html>