-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (53 loc) · 2.59 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
<!DOCTYPE html>
<html>
<head>
<title>Sorting Visualization</title>
<!-- JQUERY JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--MATERIAL DESIGN AND FONT-->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.deep_orange-amber.min.css" />
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<!-- P5.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.sound.min.js"></script>
<meta charset="utf-8" />
<!-- MY JS -->
<script src="./js/index.js"></script>
<script src="./js/algorithms/bubble_sort.js"></script>
<script src="./js/algorithms/quick_sort.js"></script>
<script src="./js/algorithms/merge_sort.js"></script>
<link rel="stylesheet" href="./css/styles.css">
</head>
<body>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- <img src="" style="padding-right: 0.7rem"> -->
<span class="mdl-layout-title">Sorting Visualizations</span>
<div class="mdl-layout-spacer"></div>
</div>
</header>
<main class="mdl-layout__content">
<div id="controls-container">
<select id="algorithm_option">
<option value="1">Bubble Sort</option>
<option value="2">Quick Sort</option>
<option value="3">Merge Sort</option>
</select>
<p style="width:300px">
<input id="array_length_input" class="mdl-slider mdl-js-slider" type="range" min="5" max="200"
value="50" step="5">
</p>
<button id="start_button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">Start</button>
<br>
<br>
<button id="new_array_button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">New Array</button>
</div>
<br>
<div id="canvas-container"></div>
</main>
</body>
</html>