-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (59 loc) · 3.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<!-- linking style.css -->
<link href="main.css" rel="stylesheet" />
<title>Sorting Visualizer</title>
<link rel="apple-touch-icon" sizes="180x180" href="./public/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./public/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./public/favicon-16x16.png">
<!-- <link rel="manifest" href="./public/site.webmanifest"> -->
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script>
</head>
<body>
<!-- <h1 style="background-color: #f8f9fa!important;">Sorting Visualizer</h1> -->
<!-- Navbar-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid ">
<div class="d-grid gap-2 d-md-flex justify-content-md-center" >
<button type="button" id="Button1"class="btn btn-secondary bubble sort" style="border-color: #1a1e21" onclick="generate()" >New Array</button>
<span>
Size
<input id="arr_sz" type="range" autocomplete="off" min=5 max=35 step=1 value=20 onchange="generatebars(this.value),enable();">
</span>
<button type="button" id="Button2" class="btn btn-dark bubble sort"data-bs-toggle="button" autocomplete="off" onclick="BubbleSort(),disable()">Bubble sort</button>
<button type="button" id="Button3"class="btn btn-dark bubble sort" onclick="SelectionSort(),disable()">Selection sort</button>
<button type="button" id="Button5"class="btn btn-dark bubble sort" onclick="InsertionSort(),disable()" >Insertion sort</button>
<button type="button" id="Button4"class="btn btn-dark bubble sort" >Quick sort</button>
<!-- <button type="button" id="Button6"class="btn btn-dark bubble sort" onclick="mergeSort(0,19),disable()" >Merge sort</button> -->
</div>
</div>
</nav>
<h1 style="color: chocolate;">Sorting Visualizer</h1>
<div id="typed-strings" style="color: white" >
<p style="color: white" >🖐Welcome to <strong style="color: rgb(255, 137, 137)">Sorting Visualizer</strong> 😃 </p>
<p style="color: white" >👩💻Learn <em style="color: white">Sorting Algorithms </em> by 👀 visualizing it .</p>
</div>
<span id="typed" style="color: white ; font-size: 32px;align-self: centre;"></span>
<section class="data-container"></section>
<!-- linking js -->
<script id ='erasable' src="./js_files/sorting.js"></script>
<script src="./js_files/bubble.js"></script>
<script src="./js_files/selection.js"></script>
<script src="./js_files/insertion.js"></script>
<script src="./js_files/quick.js"></script>
<script src="./js_files/merge.js"></script>
<script>
var typed = new Typed('#typed', {
stringsElement: '#typed-strings',
// Waits 1000ms after typing "First"
strings: ['First ^1000 sentence.', 'Second sentence.'],
typeSpeed:50
});
</script>
</body>
</html>