-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (50 loc) · 1.9 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
<!DOCTYPE HTML>
<HTML>
<head>
<title>Algo e visualiser</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src="js/sort.js"></script>
<script src="js/search.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/dist/paper.min.css">
<script src="js/index.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="mainDiv" class="row">
<div class="col-12 col">
<div>
<label for="lengthOfArray">Length, Default: 10</label>
<input type="number" id="lengthOfArray" min="0">
</div>
<div>
<label for="lengthOfArray">Range, Default: 100</label>
<input type="number" id="rangeOfNumber" min="0">
</div>
<button class="button-success" onclick="createManualArray()">Create Array</button>
<button class="button-success" onclick="generateRandomNumbers()">Randomize Array</button>
<button class="button-success" onclick="changeAnimationSpeed()">Change Animation Speed</button>
<button class="button-success" onclick="searchDiv('linear')">Linear Search</button>
<button class="button-success" onclick="searchDiv('binary')">Binary Search</button>
<button class="button-success" onclick="bubbleSortProcess()">Bubble Sort</button>
<button class="button-success" onclick="selectionSortProcess()">Selection Sort</button>
<button class="button-success" onclick="insertionSortProcess()">Insertion Sort</button>
</div>
</div>
<div id="errorDiv" class="row flex-spaces hideClass">
<div id="errorText" class="alert alert-danger"></div>
</div>
<div class="row">
<div id="hiddenDiv" class="col-12 col">
</div>
</div>
<div id="svgDiv" class="row">
<div class="col-12 col">
<svg id="playArea" width="100%" height="200"></svg>
</div>
</div>
</body>
<script type="text/javascript">
init();
</script>
</html>