-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsorting.html
More file actions
122 lines (110 loc) · 5.11 KB
/
sorting.html
File metadata and controls
122 lines (110 loc) · 5.11 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sorting Visualizer</title>
<link rel="apple-touch-icon" sizes="180x180" href="favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon_io/favicon-16x16.png">
<link rel="manifest" href="favicon_io/site.webmanifest">
<link rel="stylesheet" href="css/sorting/index.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0" defer></script>
<script src="scripts/tata.js" defer></script>
<script src="scripts/globals.js" defer></script>
<script src="scripts/sorting/algorithms/bubbleSort.js" defer></script>
<script src="scripts/sorting/algorithms/selectionSort.js" defer></script>
<script src="scripts/sorting/algorithms/insertionSort.js" defer></script>
<script src="scripts/sorting/algorithms/mergeSort.js" defer></script>
<script src="scripts/sorting/algorithms/quickSort.js" defer></script>
<script src="scripts/sorting/algorithms/heapSort.js" defer></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@2/dist/zero-md.min.js" defer></script>
<script src="scripts/sorting/index.js" defer></script>
<script src="scripts/sorting/visualization_Config.js" defer></script>
</head>
<body>
<header>
<nav>
<div class="array-inputs">
<p>Size of the array:</p>
<input id="array_size" type="range" min=10 max=200 step=1 value=50 class="arraySizeSlider">
<p>Speed of the algorithm:</p>
<input id="sorting_speed" type="range" min=1 max=5 step=1 value=3>
<button id="generate_array">Generate New Array!</button>
</div>
<div class="header_right">
<p class="nav-heading">Sorting visualizer <a href="index.html"><img src="images/svg/home_icon.svg"
alt="edit notes" width="20px" height="20px" id="home"></a></p>
<div class="icon-row">
<img src="images/svg/pencil.svg" alt="edit notes" width="20px" height="20px" class="open-modal"
data-open="modal1">
<img src="images/svg/info.svg" alt="edit notes" width="20px" height="20px" id="info"
class="open-modal" data-open="modal1">
</div>
<div class="algos">
<button class="btn btn-large waves-effect waves-light z-depth-3">Bubble</button>
<button>Selection</button>
<button>Insertion</button>
<button>Merge</button>
<button>Quick</button>
<button style="margin-right: 0px;">Heap</button>
</div>
</div>
</nav>
</header>
<section>
<div id="legends">
<h2>Legends</h2> <br>
<ul style="list-style-type: none; margin-block-end: 0rem;">
<button class="about" style="background: linear-gradient(to bottom right, #3859B2, #D23FF6);">
Traversed
</button>
<br>
<button class="about" style="background: linear-gradient(to bottom right, #FFDD00, #FBB034); ">
Pointer
</button>
<br>
<button class="about" style="background: linear-gradient(to bottom right, #A40606, #D98324);">
Swapping
</button> <br>
<button class="about" style="background: linear-gradient(to bottom right, #20BF55, #01BAEF);">
Sorted
</button>
<br>
</ul>
<div type="button" class="open-modal" data-open="modal1"> <button class="about"
style="background-color: blueviolet;">About algorithm</button>
</div>
</div>
<div id="array_container" style="text-align:center">
</div>
</section>
<div class="down-arrow">
<div class="chevron"></div>
<div class="chevron"></div>
<div class="chevron"></div>
<span class="text">Time and Space</span>
</div>
<div class="modal" id="modal1" data-animation="slideInOutLeft">
<div class="modal-dialog">
<header class="modal-header">
<div id="runningAloName">Hello world</div>
<button class="close-modal" aria-label="close modal" data-close>
✕
</button>
</header>
<div class="modal-content" id="markdown">
</div>
<footer class="modal-footer">
Developed with JS
</footer>
</div>
</div>
<div class="chart-container" style="position: relative; height:40vh; width:100vw">
<canvas id="time"></canvas>
</div>
<div class="chart-container" style="position: relative; height:40vh; width:100vw;">
<canvas id="space"></canvas>
</div>
</body>
</html>