forked from SMS-ORG/Algo_Visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
canvas_page.html
158 lines (153 loc) · 6.38 KB
/
canvas_page.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html>
<head>
<title>Algo_Visualizer</title>
<meta charset="utf-8" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous"
/>
<script src="https://kit.fontawesome.com/82bac64d44.js" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./css/canvas_page.css" />
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<div class="navbar-header">
<a id="about" href="index.html" class="navbar-brand"> Algo-Visualizer</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="nav-item">
<a id="bubblesort" class="nav-link active" href="#">Bubblesort</a>
</li>
<li class="nav-item">
<a id="quicksort" class="nav-link" href="#">Quicksort</a>
</li>
<li class="nav-item">
<a id="heapsort" class="nav-link" href="#">Heapsort</a>
</li>
<li class="nav-item">
<a id="mergesort" class="nav-link" href="#">Mergesort</a>
</li>
<li class="nav-item">
<a id="bst" class="nav-link" href="#">BST</a>
</li>
<li class="nav-item">
<a id="linkedlist" class="nav-link" href="#">Linked List</a>
</li>
<li class="nav-item">
<a id="pathfind" class="nav-link" href="#">A* path finding</a>
</li>
</ul>
</div>
<span id="introduce" class="nav-link about-algo">About</span>
<li class="instructions"><a href="./instructions.html">Instructions</a></li>
</div>
</nav>
<div class="container_fluid">
<div class="boxy">
<section id="canvas_container">
<canvas id="canvas" width="800px" height="500px"></canvas>
<canvas id="CANVAS" width="800px" height="500px"></canvas>
</section>
<p style="padding-left:37%; font-weight:bold">Canvas Size: 800 * 500</p>
</div>
<div class="boxy tools-tab">
<div class="settings_panel" id="main_panel">
<div class="button-container">
<div id="arrow-left"></div>
<div><button id="playPause"></button></div>
<div id="arrow-right"></div>
</div>
<div class="labels_container">
<label for="arrow-left">Rewind</label>
<label for="playPause">Play/Pause</label>
<label for="arrow-right">Forward</label>
</div>
<ul id="radio_container">
<li class="radio_container__item">
<input type="radio" id="insertStart" name="Insert" value="1" />
<label class="labels_text" for="insertStart">
<i class = "fa fa-check " aria-hidden="true"></i>SetStart</label>
</li>
<li class="radio_container__item">
<input type="radio" id="insertEnd" name="Insert" value="2" />
<label class="labels_text" for="insertEnd">
<i class = "fa fa-check " aria-hidden="true"></i>SetEnd</label>
</li>
<li class="radio_container__item">
<input type="radio" id="deleteNode" name="Insert" value="3" />
<label class="labels_text" for="deleteNode">
<i class = "fa fa-check " aria-hidden="true"></i>Remove</label>
</li>
<li class="radio_container__item">
<input type="radio" id="insert" name="Insert" value="4" checked/>
<label class="labels_text" for="insert">
<i class = "fa fa-check " aria-hidden="true"></i>Insert</label>
</li>
</ul>
<section class="sliders">
<input
type="range"
min="5"
step="5"
max="65"
value="30"
id="myRange"
/>
<select id="frameSlider">
<option value="240">0.25x</option>
<option value="120">0.5x</option>
<option value="60" selected>1x</option>
<option value="40">1.5x</option>
<option value="30">2x</option>
</select>
</section>
<div class="labels_container">
<label for="myRange" style="margin-left:100px;margin-right: 10rem;">Form Array</label>
<label for="frameSlider">Frame</label>
</div>
<div id="tree-container">
<input id="inputsvalue" type="text" name="tree-data">
<select name="tree_options" id="tree_options">
<option value="1" selected>Insert</option>
<option value="2">Delete</option>
<option value="3">Search</option>
<option value="4">In-order</option>
<option value="5">Pre-Order</option>
<option value="6">Post-Order</option>
</select>
<input type="submit", id="submitData"/>
</div>
<label id="tree-data" style="padding-left: 24%;" for="tree-data">Insert Unique Number</label>
</div>
<div id="tree_inputs">
<p>Recent Inputs Listed Here<br></p>
</div>
</div>
</div>
<section id="intro">
<div id="close-btn">
<ion-icon name="close-outline"></ion-icon>
</div>
<section id="introduction"></section>
</section>
<script src="./js/algorithm.js" type="module"></script>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"
></script>
</body>
</html>