-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (148 loc) · 3.69 KB
/
index.html
File metadata and controls
153 lines (148 loc) · 3.69 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="index.css">
<script src = "boxmoves.js"></script>
<script src = "sort2.js"></script>
<script>
function loading(){
myFunction()
myFunction2()
}
</script>
</head>
<body onload='loading()'>
<header class="title">
Sorting Algorithms
</header>
<h1 class = "subtitle">
Below are different types of sorting algithims. Click the button to do 1 at a time, or click the bottom button to do all sorts at once to see the efficiency.
</h1>
<div class = 'bubblesort'>
<div id = box1>
<h1 class = title>
Bubble Sort
</h1>
<h2 class = "subheaders">
Evaluate 2 at a time, swap if one to the right is larger
</h2>
<!--
<canvas id="myCanvas" width="500" height="500" style="border:1px solid #000000;">
</canvas>
<button onclick="myFunction()">1 iteration</button>
<button onclick="reset()">reset</button>
<script src = "index.js"></script>
-->
<ul id = 'menu'>
<li>
1
</li>
<li>
2
</li>
<li>
3
</li>
<li>
4
</li>
<li>
5
</li>
<li>
6
</li>
<li>
7
</li>
<li>
8
</li>
<li>
9
</li>
<li>
10
</li>
<li>
11
</li>
<li>
12
</li>
<li>
13
</li>
<li>
14
</li>
</ul>
</div>
<div class = clr></div>
<button onclick="go1()">click</button>
<div class = 'secondsort'>
<div id = box2>
<h1 class = title>
Selection Sort
</h1>
<h2 class = "subheaders">
Evaluate 1 at a time, find largest and sort it
</h2>
<!--
<canvas id="myCanvas" width="500" height="500" style="border:1px solid #000000;">
</canvas>
<button onclick="myFunction()">1 iteration</button>
<button onclick="reset()">reset</button>
<script src = "index.js"></script>
-->
<ul id = 'menu2'>
<li>
1
</li>
<li>
2
</li>
<li>
3
</li>
<li>
4
</li>
<li>
5
</li>
<li>
6
</li>
<li>
7
</li>
<li>
8
</li>
<li>
9
</li>
<li>
10
</li>
<li>
11
</li>
<li>
12
</li>
<li>
13
</li>
<li>
14
</li>
</ul>
</div>
<div class = clr></div>
<button onclick="go2()">click</button>
</div>
<button style = "margin-left:10%" onclick='bothgo()'>go both</button>
</body>
</html>