-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
288 lines (254 loc) · 14.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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!DOCTYPE html>
<html>
<head lang="en">
<title>
Visualized Environment for Search Methods
</title>
<!--Favicon-->
<link rel="icon" type="image/png" href="resources/logo1.png">
<!--Bootstrap required Libraries-->
<!-- Required meta tags -->
<meta charset="utf-8">
<!--<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">-->
<meta name="description" content="">
<meta name="author" content="">
<!-- css sheet for how the page is laid out -->
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"> -->
<!-- Custom styles for this template -->
<style>
body {
padding-top: 54px;
}
@media (min-width: 992px) {
body {
padding-top: 56px;
}
}
</style>
<!-- /Bootstrap required Libraries-->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
<!--MyCss-->
<link rel="stylesheet" href="stylesheets/HomeScreen.css">
<link rel="stylesheet" href="stylesheets/SnackBar.css">
<link rel="stylesheet" href="stylesheets/Slider.css">
<link rel="stylesheet" href="stylesheets/DragableContainer.css">
<link rel="stylesheet" href="stylesheets/Toggle.css">
<link rel="stylesheet" href="stylesheets/DarkTheme.css">
</head>
<body class="MainPageStyling">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="resources/logo1.png" style="width: 30px; height: 30px;" /> Visualized Environment for Search
Methods</a>
<button id="navBar_toggler" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="index.html">
<img src="resources/ic_action_home.png" /> Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a id="About" class="nav-link" data-toggle="modal" data-target="#myModal">
<img src="resources/ic_action_info.png" /> About</a>
<script>
require('jquery/dist/jquery');
require('popper.js/dist/umd/popper');
require('bootstrap/dist/js/bootstrap');
const {
remote
} = require('electron');
document.getElementById("About").addEventListener("click", () => {
let win = new remote.BrowserWindow({
parent: remote.getCurrentWindow(),
modal: true,
width: 389,
height: 525,
transparent: true,
resizable: false
})
win.custom = {
dark_theme: document.getElementById("dark_theme").getAttribute("aria-pressed")=="true"
}
var theUrl = 'file://' + __dirname + '/modal.html'
console.log('url', theUrl);
win.loadURL(theUrl);
win.on("closed",()=>{
win = null;
});
})
</script>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="body_container">
<div id="whole_body_div" class="light-mode">
<div class="AlgorithmControlSection">
<div id="inputs" class="input-group" role="group">
<input class="form-control" min="0" max="9999" id="arraySize" type="number" placeholder="Specify Array Size (Default: 100)" />
<input class="form-control" min="0" max="9999" id="numbersRange" type="number" placeholder="Specify Numbers Range (Default: 300)" />
<div class="btn-group">
<button type="button" id="generateNumbers" class="btn btn-info">Generate Numbers</button>
<button type="button" class="btn btn-info dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<button class="dropdown-item" type="button" id="exponential">Exponential Distribution</button>
<button class="dropdown-item" type="button" id="logarithmic">Logarithmic Distribution</button>
<button class="dropdown-item" type="button" id="geometric">Geometric Distribution</button>
</div>
</div>
<input class="form-control" min="0" max="9999" id="searchingNumber" type="number" placeholder="Specify Searching Number" />
</div>
<div id="searchButtons" class="btn-group" role="group">
<button id="linearSearch" type="button" class="btn btn-secondary">Linear Search</button>
<button id="binarySearch" type="button" class="btn btn-secondary">Binary Search</button>
<button id="jumpSearch" type="button" class="btn btn-secondary">Jump Search</button>
<button id="interpolationSearch" type="button" class="btn btn-secondary">Interpolation Search</button>
<button id="exponentialSearch" type="button" class="btn btn-secondary">Exponential Search</button>
<button id="fibonacciSearch" type="button" class="btn btn-secondary">Fibonacci Search</button>
</div>
<div id="stepButtons" class="btn-group" role="group">
<!-- <button id="undo" type="button" class="btn btn-outline-secondary" disabled>Undo Step</button> -->
<div class="btn-group" role="group">
<button id="options" title="settings" type="button" class="btn btn-outline-secondary dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">settings</i>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<div class="col-sm">
Dark Mode
<button type="button" class="btn btn-toggle" data-toggle="button" title="Toggle Dark Theme"
id="dark_theme" aria-pressed="false" autocomplete="off">
<div class="handle"></div>
</button>
</div>
<div class="col-sm">
<button class="btn btn-outline-secondary" title="Clear the cells and start over" type="button"
id="clear_button">
Clear
</button>
</div>
<div class="col-sm">
Help Container
<button type="button" class="btn btn-toggle active" title="Toggle Help Container" id="show_hide_manual"
data-toggle="button" aria-pressed="true" autocomplete="off">
<div class="handle"></div>
</button>
</div>
<div class="col-sm">
Steps Container
<button type="button" class="btn btn-toggle active" title="Toggle Steps Container" id="show_hide_step"
data-toggle="button" aria-pressed="true" autocomplete="off">
<div class="handle"></div>
</button>
</div>
</div>
</div>
<button id="pause" title="Pause the method" type="button" class="btn btn-outline-secondary"
disabled>Pause
</button>
<button id="next" title="One step at time" type="button" class="btn btn-outline-secondary" disabled>Next
Step
</button>
<button id="skipForward" title="Press to Skip to the end" type="button" class="btn btn-outline-secondary"
disabled>Skip Forward
</button>
<div id="slider">
<input class="bar" type="range" id="rangeinput" value="1000" min="350" max="3000" step="50"
title="Animation Speed" />
<output id="rangevalue">1000</output>
</div>
</div>
</div>
<div id="table_container" class="container-fluid" align="center">
<!--This container handled in javascript-->
</div>
<!--Draggable DIV:-->
<div class="dragable_container" id="dragable_container_manual" title="Click and Drag">
<!--Include a header DIV with the same name as the draggable DIV, followed by "header":-->
<div class="dragable_container_header" id="dragable_container_manual_header">
<div id="collapse_manual" class="float-left">
<i id="collapse_manual_icon" class="material-icons">expand_more</i>
</div>
<div id="collapse_manual_right" class="float-left" hidden>
<i class="material-icons">chevron_right</i>
</div>
Help
<div class="float-right">
<i class="material-icons right" style="font-size:24px">drag_handle</i>
</div>
</div>
<div class="dragable_container_content" id="dragable_container_manual_content">
<h4 id="search_title">Press a Search Button</h4>
<p id="manual">A manual for this search will appear hear</p>
</div>
</div>
<!--Draggable DIV:-->
<div class="dragable_container" id="dragable_container_step">
<!--Include a header DIV with the same name as the draggable DIV, followed by "header":-->
<div class="dragable_container_header" id="dragable_container_step_header" title="Click and Drag">
<div id="collapse_step" class="float-left">
<i id="collapse_step_icon" class="material-icons">expand_more</i>
</div>
<div id="collapse_step_right" class="float-left" hidden>
<i class="material-icons">chevron_right</i>
</div>
Step by Step
<div class="float-right">
<i class="material-icons right" style="font-size:24px">drag_handle</i>
</div>
</div>
<div class="dragable_container_content" id="dragable_container_step_content">
<p>You will see the steps of every search you run...</p>
</div>
</div>
<div id="snackbar">This message handled in javascript</div>
<!--Footer-->
<div class="bg-dark navbar fixed-bottom footer">
<p class="m-0 text-center text-white">MIT License</p>
<p class="m-0 text-center text-white">Copyright © Anastasios Tilsizoglou 2018</p>
</div>
<!--/.footer -->
</div>
<!-- container -->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="node_modules/popper.js/dist/umd/popper.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script> -->
<!--myScripts-->
<script type="text/javascript" src="scripts/GenerateRandomNumbers.js"></script>
<script type="text/javascript" src="scripts/GeneralFunctions.js"></script>
<script type="text/javascript" src="scripts/LinearSearch.js"></script>
<script type="text/javascript" src="scripts/BinarySearch.js"></script>
<script type="text/javascript" src="scripts/JumpSearch.js"></script>
<script type="text/javascript" src="scripts/InterpolationSearch.js"></script>
<script type="text/javascript" src="scripts/ExponentialSearch.js"></script>
<script type="text/javascript" src="scripts/FibonacciSearch.js"></script>
<script type="text/javascript" src="scripts/StepButtons.js"></script>
<script type="text/javascript" src="scripts/DragableContainer.js"></script>
<script type="text/javascript" src="scripts/Manual.js"></script>
<script type="text/javascript" src="scripts/Steps.js"></script>
</div>
</body>
</html>