-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (44 loc) · 1.57 KB
/
index.html
File metadata and controls
58 lines (44 loc) · 1.57 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
<!DOCTYPE html>
<html lang="en">
<!-- head -->
<head>
<link href="https://pvinis.github.io/iosevka-webfont/3.4.1/iosevka.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
<meta charset="UTF-8" />
<!-- title -->
<title>Sorting algorithm visualizer</title>
</head>
<!-- body -->
<body >
<script language = "JavaScript">
var divtext = new Array()
divtext[0] = "selectionsort";
divtext[1] = "spania";
divtext[2] = "portugalia";
function getText(selection){
txtSelected = selection.selectedIndex;
document.getElementsByName('textdiv').innerHTML = divtext[txtSelected];
}
</script>
<div id="stars"></div>
<div id="stars2"></div>
<div id="stars3"></div>
<section class="head">Selection Sort Visualizer</section>
<div class="container">
<section class="data-container"></section>
</div>
<!-- "Generate New Array" button -->
<button class="btn1" onclick="generate()" id="Button1" >Generate New Array</button>
<!-- "Selection Sort" button -->
<button class="btn2" onclick="run(),disable()" id="Button2" >Selection Sort</button>
<select id="algorithm" onchange="getText(this)">
<option value="selectionsort" selected>Selection Sort</option>
<option value="es">Español</option>
<option value="pt">Português</option>
</select>
<div id="textdiv" style="color:Green; font-family:Calibri; font-size:small; font-weight:bold">
</div>
</body>
<!-- linking index.js -->
<script src="index.js"></script>
</html>