-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (90 loc) · 3.32 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<!-- head -->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Compiled and minified CSS -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<!-- linking style.css -->
<link href="style.css" rel="stylesheet" />
<!-- title -->
<title>Sorting Visualizer</title>
</head>
<!-- body -->
<body>
<div class="navbar">
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo">Sorting Visualizer</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li>
<div class="input-field col s12">
<select id="sortingSpeed">
<option value="" disabled selected>Sorting Speed</option>
<option value="300">1x</option>
<option value="200">1.25x</option>
<option value="100">1.5x</option>
<option value="20">2x</option>
</select>
</div>
</li>
</ul>
</div>
</nav>
</div>
<section class="container center-align data-container"></section>
<div class="container">
<div class="row btn-row">
<div class="col s12">
<!-- "Generate New Array" button -->
<button class="waves-effect waves-light btn" id="button1">
Generate New Array
</button>
<!-- "Selection Sort" button -->
<button class="waves-effect waves-light btn" id="button2">
Selection Sort
</button>
<!-- Bubble sort button -->
<button class="waves-effect waves-light btn" id="button3">
Bubble Sort
</button>
<!-- Insertion sort button -->
<button class="waves-effect waves-light btn" id="button4">
Insertion Sort
</button>
<!-- Merge sort button -->
<button class="waves-effect waves-light btn" id="button5">
Merge Sort
</button>
<!-- Merge sort button -->
<button class="waves-effect waves-light btn" id="button6">
Heap Sort
</button>
</div>
</div>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#0099ff"
fill-opacity="1"
d="M0,32L40,37.3C80,43,160,53,240,96C320,139,400,213,480,234.7C560,256,640,224,720,224C800,224,880,256,960,245.3C1040,235,1120,181,1200,170.7C1280,160,1360,192,1400,208L1440,224L1440,320L1400,320C1360,320,1280,320,1200,320C1120,320,1040,320,960,320C880,320,800,320,720,320C640,320,560,320,480,320C400,320,320,320,240,320C160,320,80,320,40,320L0,320Z"
></path>
</svg>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<!-- linking index.js -->
<script src="index.js"></script>
</html>