-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (36 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sorting visualiser</title>
<link rel="stylesheet" href="./home.css">
<link rel="shortcut icon" type="icon" href="./favicon.png">
</head>
<body>
<h1 class="tt">easy_to_sort</h1>
<br><br><br>
<div class="ding">welcome</div>
<div class="ding">enjoy the viasulization of sorting algorithms</div>
<button class="btncl" id="bt1" onclick="funct(1)">bubble sort</button>
<button class="btncl" id="bt2" onclick="funct(2)">insertion sort</button>
<button class="btncl" id="bt3" onclick="funct(3)">selection sort</button>
<br><br>
<button class="btncl" id="bt4" onclick="funct(4)">merge sort</button>
<button class="btncl" id="bt5" onclick="funct(5)">quick sort</button>
<br><br>
<a href="https://github.com/viyaaat/sorting-visuliser">
<i class="fab fa-github"></i>
</a>
</body>
<script>
function funct(a) {
if (a == 1) window.open("./bubble.html", "_parent");
if (a == 2) window.open("./insertion.html", "_parent");
if (a == 3) window.open("./selection.html", "_parent");
if (a == 4) window.open("./merge.html", "_parent");
if (a == 5) window.open("./quick.html", "_parent");
}
</script>
</html>