-
Notifications
You must be signed in to change notification settings - Fork 0
/
sorting.html
98 lines (94 loc) · 3.19 KB
/
sorting.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
<!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="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css"
integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA="
crossorigin="anonymous"
/>
<!-- HowlerJS -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js"
integrity="sha512-6+YN/9o9BWrk6wSfGxQGpt3EUK6XeHi6yeHV+TYD2GR0Sj/cggRpXr1BrAQf0as6XslxomMUxXp2vIl+fv0QRA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link rel="stylesheet" href="css/sorting.css" />
<title>Sorting Visualizer</title>
</head>
<body>
<div class="navbar">
<h1 class="title">
<a href="index.html" style="text-decoration: none; color: #035f50"
>Hungry Hackee Hunts</a
>
</h1>
<button
class="nav-item"
id="generate-array"
onclick="generate(), generate_idx();"
>
Generate New Array
</button>
<div class="nav-item dropdown">
Sort
<i class="fas fa-caret-down" style="color: rgb(241, 172, 44)"></i>
<div class="dropdown-content algoButtons">
<button id="bubbleSortButton">Bubble Sort</button>
<button id="insertionSortButton">Insertion Sort</button>
<button id="selectionSortButton">Selection Sort</button>
<button id="shellSortButton">Shell Sort</button>
<button id="heapSortButton">Heap Sort</button>
<button id="quickSortButton">Quick Sort</button>
</div>
</div>
<div class="nav-item dropdown">
<i class="fas fa-lightbulb" style="color: rgb(241, 172, 44)"></i>
Hint to help Hackee get the Walnuts
<span class="nav-info dropdown-content hint" style="top: 25px">
<i class="fas fa-arrow-up" style="color: green"></i>
Use arrow-up key to make Hackee jump
<br />
<span style="color: green">
Blocks must be sorted first!
</span></span
>
</div>
</div>
<div class="container">
<div class="nav-item info arrayInput">
Speed:
<input id="speed" type="range" min="1" max="5" step="1" value="4" />
</div>
<div id="array"></div>
<div id="count"></div>
<br />
<h2 class="range" style="text-align: center"></h2>
<div class="tree">
<img
src="img/tree.png"
alt=""
width="430px
"
height="512px"
/>
</div>
<div class="game">
<img src="img/hackee-sideview.png" class="character" />
</div>
</div>
</body>
<script src="js/sorting.js"></script>
<script src="js/visualize.js"></script>
<script src="js/quicksort.js"></script>
<script src="js/bubblesort.js"></script>
<script src="js/selectionsort.js"></script>
<script src="js/insertionSort.js"></script>
<script src="js/shellSort.js"></script>
<script src="js/heapSort.js"></script>
<script src="js/character.js"></script>
</html>