-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage3.html
44 lines (43 loc) · 1.4 KB
/
page3.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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="/Css/style2.css" rel="stylesheet" />
<title>Insertion Sort</title>
</head>
<body>
<section class="head">Insertion Sort</section>
<button id="myBtn" style="font-size: larger; background-color:rgb(231, 63, 161);">Complexity</button>
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<p>Worst Case Time Complexity = O(N^2)</p>
<p>Average Case Time Complexity = O(N^2)</p>
<p>Best Case Time Complexity = O(N)</p>
<p>Space Complexity = O(1)</p>
</div>
</div>
<script>
var modal = document.getElementById("myModal");
var btn = document.getElementById("myBtn");
var span = document.getElementsByClassName("close")[0];
btn.onclick = function() {
modal.style.display = "block";
}
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
<section class="data-container"></section>
<section id="ele"></section>
<div style="margin: auto; width: fit-content;">
<button class="btn1" onclick="generate()" id="Button1" >Generate Random Numbers</button>
<button class="btn2" onclick="InsertionSort(),disable()" id="Button2" >Insertion Sort</button>
</div>
</body>
<script src="/Codes/insertion.js"></script>
</html>