-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
86 lines (75 loc) · 3.03 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="icon.png">
<title>Sorting Visualizer</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<nav class="nav">
<div class="array-inputs">
<p>Size of the array:</p>
<input id="a_size" type="range" min=20 max=150 step=1 value=80>
<p>Speed of the algorithm:</p>
<input id="a_speed" type="range" min=1 max=5 step=1 value=4>
<div class="mid_gen"><button id="a_generate">Generate New Array!</button></div>
</div>
<div class="header_right">
<p class="nav-heading">Sorting Visualizer</p>
<div class="algos">
<button>BUBBLE</button>
<button>SELECTION</button>
<button>INSERTION</button>
<button>MERGE</button>
<button>QUICK</button>
<button style="margin-right: 0px;">HEAP</button>
</div>
</div>
</nav>
</header>
<section>
<div id="info_count1">
<h3>TIME COMPLEXITY</h3>
<div class="Complexity_Containers" id="Time_Complexity_Types_Container">
<div class="Pair_Definitions">
<p class="Sub_Heading">Worst case:</p>
<p id="Time_Worst"></p>
</div>
<div class="Pair_Definitions">
<p class="Sub_Heading">Average case:</p>
<p id="Time_Average"></p>
</div>
<div class="Pair_Definitions">
<p class="Sub_Heading">Best case:</p>
<p id="Time_Best"></p>
</div>
</div>
</div>
<div id="array_container">
</div>
<div id="info_count2">
<h3>SPACE COMPLEXITY</h3>
<div class="Complexity_Containers" id="Space_Complexity_Types_Container">
<div class="Pair_Definitions">
<p class="Sub_Heading">Worst case:</p>
<p id="Space_Worst"></p>
</div>
</div>
</div>
</section>
<footer>
</footer>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/visualization.js"></script>
<script type="text/javascript" src="js/bubble.js"></script>
<script type="text/javascript" src="js/insertion.js"></script>
<script type="text/javascript" src="js/selection.js"></script>
<script type="text/javascript" src="js/merge.js"></script>
<script type="text/javascript" src="js/quick.js"></script>
<script type="text/javascript" src="js/heap.js"></script>
</body>
</html>