-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (95 loc) · 4.85 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
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./graph.ico">
<title>Sorting Visualizer</title>
<link rel="stylesheet" href="./css/index.css">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap" rel="stylesheet">
</head>
<body>
<svg class="sprite" xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol id="code" viewBox="0 0 14 16">
<!-- Icon from GitHub Octicons - https://github.com/primer/octicons/ -->
<path d="M9.5 3L8 4.5 11.5 8 8 11.5 9.5 13 14 8 9.5 3 9.5 3ZM4.5 3L0 8 4.5 13 6 11.5 2.5 8 6 4.5 4.5 3 4.5 3Z"></path>
</symbol>
<symbol id="heart" viewBox="0 0 12 16">
<!-- Icon from GitHub Octicons - https://github.com/primer/octicons/ -->
<path d="M11.2 3C10.68 2.37 9.95 2.05 9 2 8.03 2 7.31 2.42 6.8 3 6.29 3.58 6.02 3.92 6 4 5.98 3.92 5.72 3.58 5.2 3 4.68 2.42 4.03 2 3 2 2.05 2.05 1.31 2.38 0.8 3 0.28 3.61 0.02 4.28 0 5 0 5.52 0.09 6.52 0.67 7.67 1.25 8.82 3.01 10.61 6 13 8.98 10.61 10.77 8.83 11.34 7.67 11.91 6.51 12 5.5 12 5 11.98 4.28 11.72 3.61 11.2 2.98L11.2 3Z"></path>
</symbol>
<symbol id="run" viewBox="0 0 10 10">
<path d="M2 2L8 6L2 10"></path>
</symbol>
<symbol id="octo" viewBox="0 0 16 16">
<!-- Icon from GitHub Octicons - https://github.com/primer/octicons/ -->
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
</symbol>
</defs>
</svg>
<header>
<nav>
<h1 class="nav-heading">Sorting Visualizer</h1>
<div id="algorithms">
<a id="algorithm-bubble" class="selected-algorithm" title="Bubble Sort">Bubble</a>
<a id="algorithm-selection" title="Selection Sort">Selection</a>
<a id="algorithm-insertion" title="Insertion Sort">Insertion</a>
<a id="algorithm-merge" title="Merge Sort">Merge</a>
<a id="algorithm-quick" title="Quick Sort">Quick</a>
<a id="algorithm-counting" title="Counting Sort">Counting</a>
</div>
<a class="github-icon" title="Visit on GitHub" href="https://github.com/erelado/sorting-visualizer" aria-label="View source on Github">
<svg class="icon"><use xlink:href="#octo"></use></svg>
</a>
</nav>
</header>
<div id="container">
<div id="visualizer-canvas"></div>
</div>
<!--Waves Container-->
<div>
<svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
<defs>
<path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
</defs>
<g class="parallax">
<use xlink:href="#gentle-wave" x="48" y="0" fill="rgba(173,216,230,0.7" />
<use xlink:href="#gentle-wave" x="48" y="3" fill="rgba(173,216,230,0.5)" />
<use xlink:href="#gentle-wave" x="48" y="5" fill="rgba(173,216,230,0.3)" />
<use xlink:href="#gentle-wave" x="48" y="7" fill="#fff" />
</g>
</svg>
</div>
<!--Waves end-->
<footer>
<a href="https://github.com/erelado">
<span class="icon">
<svg class="icon"><use xlink:href="#code"></use></svg>
</span>
<span> with </span>
<span class="icon">
<svg class="icon"><use xlink:href="#heart"></use></svg>
</span>
<span> by erelado</span>
</a>
<div id="settings">
<div>
Speed:
<input id="speed-control" type="range" min=0 max=20 value=10>
</div>
<div>
Quantity:
<input id="array-size-control" type="range" min=10 max=20 value=15>
</div>
<div>
<button id="generate-new-array-btn">Generate</button> new array
</div>
</div>
</footer>
<script src="./js/index.js"></script>
<script src="./js/animations.js"></script>
<script src="./js/algorithms.js"></script>
</body>
</html>