-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (59 loc) · 2.81 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
<!DOCTYPE html>
<html>
<head>
<title>Sort algorithm visualization</title>
<meta charset="UTF-8">
<meta name="description" content="Here is sort, Bubble sort & Cocktail Shake sort visualised via 3 graph. methods">
<link rel="stylesheet" href="combstyles.css">
</head>
<body>
<div class = "settingsPanelBox"></div>
<header class = "page-header" role = "banner">Sort algorithm visualization</header>
<div class="mainPage" role="main">
<!--settings & ranges -->
<div class="settingsPanel">
<form>
<label class="label">Chose sort algorithm type:</label><br>
<select name = "sortTypeDom" class="softFlowSelect" onchange="changeSortType()">
<option value = "combSort">Comb sort</option>
<option value = "bubbleSort">Bubble sort</option>
<option value = "cocktailSort">Cocktail sort</option>
</select>
</form><br>
<label class="label">Settings:</label><hr>
<div class="settingsRange">
Sphere Radius & Lines height / Brightness<br>
<input title="Sphere Radius" class="rangeCSS" type="range" min="30" max="150" step="1" value="75" oninput="changeRadius()" id="sphereRadius"><br>
Number of elements<br>
<input title="Number of elements" class="rangeCSS" type="range" min="30" max="240" step="1" value="125" oninput="calcNewArray()" id="elementsNumb"><br>
Speed<br>
<input title="Speed" class="rangeCSS" type="range" min="10" max="200" step="5" value="105" oninput="changeSpeed()" id="codeSpeed"><br>
Volume<br>
<input title="Volume" class="rangeCSS" type="range" min="0" max="0.05" step="0.0005" value="0.025" id="volume">
</div>
</div>
<!--buttons canvas & sortViews-->
<div class="sortViewsContainer">
<div class="sortButton transition" id = "roundView" onclick="changeSortView('roundView')"></div>
<div class="sortButton transition" id = "classicView" onclick="changeSortView('classicView')"></div>
<div class="sortButton transition" id = "gradientView" onclick="changeSortView('gradientView')"></div><br>
<div class="buttonContainer">
<div class="playButton button transition" id = "firstButton" onmousedown="mouseDown()" onclick="startButton()">
<div class="sprite-play"></div>
</div>
<div class="resetButton button transition" onclick="calcNewArray()">
<div class="sprite-reset"></div>
</div>
</div><br>
<div class="sortPlace">
<canvas id="canvas" width="900" height="900"></canvas>
</div>
</div>
</div>
<footer class=page-footer>
Alexander Vaganov <br>
Russian Federation, Ufa 2017
</footer>
</body>
<script src="combSortScript.js"></script>
</html>