-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (86 loc) · 3.47 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 name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Visual sorting</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-162186655-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-162186655-1');
</script>
</head>
<body>
<header class="grid">
<div class="left">
<button id="resetButton" class="generator">Restart</button>
</div>
<div class="middle">
<div class="sliderContainer">
<input type="range" min="5" max="750" value="64" class="slider" id="arraySize" />
<div class="textInput">
<label for="arraySizeText">Array size: </label>
<input id="arraySizeText" type="text" value="64"/>
</div>
</div>
<div class="sliderContainer">
<input type="range" min="0" max="25" step="0.25" value="10" class="slider" id="speed" />
<div class="textInput">
<label for="speedText">Speed: </label>
<input id="speedText" type="text" value="10"/>
</div>
</div>
<div id="generator" class="generator">
<div class="generatorFunction">
<label for="generatorFunction">Generator: </label>
<input id="generatorFunction" type="text" value="Math.random()" class="generatorFunction">
</div>
</div>
<div id="sortMethods" class="custom-select">
<select>
<option value="0">Select sort:</option>
<option value="1">Tim Sort</option>
<option value="2">Insertion Sort</option>
<option value="3">Selection sort</option>
<option value="4">Quick Sort</option>
<option value="5">Merge Sort</option>
<option value="6">Bubble Sort</option>
<option value="7">Random sort</option>
<option value="8">Stalin Sort</option>
<option value="9">LSD Radix Sort</option>
<option value="10">MSD Radix Sort</option>
</select>
</div>
</div>
<div class="right">
<button id="startButton" class="startButton">Start sorting</button>
</div>
</header>
<canvas id="canvas"></canvas>
<script src="scripts/arrayFunctions.js"></script>
<script src="scripts/oscillator.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/sort.js"></script>
<script src="scripts/dropDown.js"></script>
<script src="scripts/bubbleSort.js"></script>
<script src="scripts/insertionSort.js"></script>
<script src="scripts/mergeSort.js"></script>
<script src="scripts/quickSort.js"></script>
<script src="scripts/randomSort.js"></script>
<script src="scripts/selectionSort.js"></script>
<script src="scripts/stalinSort.js"></script>
<script src="scripts/timSort.js"></script>
<script src="scripts/LSDRadixSort.js"></script>
<script src="scripts/MSDRadixSort.js"></script>
<script src="scripts/visualSortCheck.js"></script>
<script src="scripts/sortsDictionary.js"></script>
<footer>
<a href="https://github.com/ThreshMain/VisualSorting">Github</a>
</footer>
</body>
</html>