Ifeanyi commited on
Commit
6ced005
1 Parent(s): 6427963

Upload 2 files

Browse files
Files changed (2) hide show
  1. JSCode.js +77 -0
  2. style.css +572 -0
JSCode.js ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // date-time code
2
+ function displayDateTime() {
3
+ var date = new Date();
4
+ var options = {
5
+ weekday: 'long',
6
+ year: 'numeric',
7
+ month: 'long',
8
+ day: 'numeric',
9
+ hour: 'numeric',
10
+ minute: 'numeric',
11
+ second: 'numeric',
12
+ hour12: true // display in 12-hour format
13
+ };
14
+ var dateTime = date.toLocaleString('en-US', options);
15
+ document.getElementById("dateclock").innerHTML = dateTime;
16
+ }
17
+
18
+ displayDateTime();
19
+ setInterval(displayDateTime, 1000); // update every second
20
+
21
+
22
+ // validate key press code
23
+ document
24
+ .addEventListener("keydown",function(event){
25
+ // if the user presses the "Enter" key on the keyboard
26
+ if(event.key === "Enter"){
27
+ // cancel the default action if any
28
+ event.preventDefault();
29
+ // trigger the button element with a click
30
+ document.getElementById("validate").click();
31
+
32
+ }
33
+ });
34
+
35
+
36
+ // info key press code
37
+ document
38
+ .addEventListener("keydown",function(event){
39
+ // if the user presses the "Enter" key on the keyboard
40
+ if(event.ctrlKey && String.fromCharCode(event.keyCode).toLowerCase() === "i"){
41
+ // cancel the default action if any
42
+ event.preventDefault();
43
+ // trigger the button element with a click
44
+ document.getElementById("info").click();
45
+
46
+ }
47
+ });
48
+
49
+ // code to print/save web page
50
+ const printPage = () => {
51
+ window.print();
52
+ }
53
+
54
+ document
55
+ .getElementById("print")
56
+ .addEventListener("click",printPage)
57
+
58
+ // scroll to top
59
+
60
+ const scrollToTopButton = document.getElementById('scroll');
61
+
62
+ // Show the button when the user scrolls down 20px from the top of the document
63
+ window.onscroll = function() {
64
+ if (document.documentElement.scrollTop > 20) {
65
+ scrollToTopButton.style.display = 'block';
66
+ } else {
67
+ scrollToTopButton.style.display = 'none';
68
+ }
69
+ };
70
+
71
+ // Scroll to the top of the document when the button is clicked
72
+ scrollToTopButton.addEventListener('click', function() {
73
+ document.documentElement.scrollTo({
74
+ top: 0,
75
+ behavior: 'smooth'
76
+ });
77
+ });
style.css ADDED
@@ -0,0 +1,572 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #dateclock {
2
+ float:right;
3
+ }
4
+
5
+ #main {
6
+ background-color: #16F529;
7
+ border-color: black;
8
+ border-width: thick;
9
+ }
10
+
11
+ #main {
12
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
13
+ }
14
+
15
+ #side {
16
+ background-color: #16F529;
17
+ border-color: black;
18
+ border-width: medium;
19
+ }
20
+
21
+ #side {
22
+ position:relative;
23
+ width: auto;
24
+ text-decoration:none;
25
+ border-radius:5px;
26
+ border:solid 1px #16F529;
27
+ background:#16F529;
28
+ text-align:center;
29
+ padding:16px 18px 16px;
30
+
31
+ -webkit-transition: all 0.1s;
32
+ -moz-transition: all 0.1s;
33
+ transition: all 0.1s;
34
+
35
+ -webkit-box-shadow: 0px 6px 0px #16F529;
36
+ -moz-box-shadow: 0px 6px 0px #16F529;
37
+ box-shadow: 0px 6px 0px #006400;
38
+ }
39
+
40
+
41
+ #side {
42
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
43
+ }
44
+
45
+ #sidebar {
46
+ background-color: #16F529;
47
+ border-color: black;
48
+ border-width: medium;
49
+ }
50
+
51
+ #sidebar {
52
+ position:relative;
53
+ width: auto;
54
+ text-decoration:none;
55
+ border-radius:5px;
56
+ border:solid 1px #16F529;
57
+ background:#16F529;
58
+ text-align:center;
59
+ padding:16px 18px 16px;
60
+
61
+ -webkit-transition: all 0.1s;
62
+ -moz-transition: all 0.1s;
63
+ transition: all 0.1s;
64
+
65
+ -webkit-box-shadow: 0px 6px 0px #16F529;
66
+ -moz-box-shadow: 0px 6px 0px #16F529;
67
+ box-shadow: 0px 6px 0px #006400;
68
+ }
69
+
70
+
71
+ #sidebar {
72
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
73
+ }
74
+
75
+
76
+ #plot {
77
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
78
+ }
79
+
80
+ img {
81
+ filter: drop-shadow(8px 8px 8px black);
82
+ }
83
+
84
+ img:active {
85
+ background-color: #006400;
86
+ box-shadow: 0 5px #666;
87
+ transform: translateY(4px);
88
+ }
89
+
90
+
91
+ #nodes {
92
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
93
+ }
94
+
95
+ #edges {
96
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
97
+ }
98
+
99
+ #validate {
100
+ color: white;
101
+ background-color: #006400;
102
+ border-color: black;
103
+ border-width: thin;
104
+ }
105
+
106
+ #validate {
107
+ filter: drop-shadow(8px 8px 8px black);
108
+ }
109
+
110
+ #validate {
111
+ position:relative;
112
+ width: auto;
113
+ text-decoration:none;
114
+ border-radius:5px;
115
+ border:solid 1px #006400;
116
+ background:#006400;
117
+ text-align:center;
118
+ padding:16px 18px 14px;
119
+
120
+ -webkit-transition: all 0.1s;
121
+ -moz-transition: all 0.1s;
122
+ transition: all 0.1s;
123
+
124
+ -webkit-box-shadow: 0px 6px 0px #006400;
125
+ -moz-box-shadow: 0px 6px 0px #006400;
126
+ box-shadow: 0px 6px 0px #129c12;
127
+ }
128
+
129
+ #validate:active {
130
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
131
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
132
+ box-shadow: 0px 2px 0px #92dbf1;
133
+ position:relative;
134
+ top:4px;
135
+ }
136
+
137
+
138
+ #validate:active {
139
+ background-color: #006400;
140
+ box-shadow: 0 5px #666;
141
+ transform: translateY(4px);
142
+ }
143
+
144
+ #info {
145
+ color: white;
146
+ background-color: #006400;
147
+ border-color: black;
148
+ border-width: thin;
149
+ }
150
+
151
+ #info {
152
+ filter: drop-shadow(8px 8px 8px black);
153
+ }
154
+
155
+ #info {
156
+ position:relative;
157
+ width: auto;
158
+ text-decoration:none;
159
+ border-radius:5px;
160
+ border:solid 1px #006400;
161
+ background:#006400;
162
+ text-align:center;
163
+ padding:16px 18px 14px;
164
+
165
+ -webkit-transition: all 0.1s;
166
+ -moz-transition: all 0.1s;
167
+ transition: all 0.1s;
168
+
169
+ -webkit-box-shadow: 0px 6px 0px #006400;
170
+ -moz-box-shadow: 0px 6px 0px #006400;
171
+ box-shadow: 0px 6px 0px #129c12;
172
+ }
173
+
174
+ #info:active {
175
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
176
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
177
+ box-shadow: 0px 2px 0px #92dbf1;
178
+ position:relative;
179
+ top:4px;
180
+ }
181
+
182
+
183
+ #info:active {
184
+ background-color: #006400;
185
+ box-shadow: 0 5px #666;
186
+ transform: translateY(4px);
187
+ }
188
+
189
+ #run {
190
+ color: white;
191
+ background-color: #006400;
192
+ border-color: black;
193
+ border-width: thin;
194
+ }
195
+
196
+ #run {
197
+ filter: drop-shadow(8px 8px 8px black);
198
+ }
199
+
200
+ #run {
201
+ position:relative;
202
+ width: auto;
203
+ text-decoration:none;
204
+ border-radius:5px;
205
+ border:solid 1px #006400;
206
+ background:#006400;
207
+ text-align:center;
208
+ padding:16px 18px 14px;
209
+
210
+ -webkit-transition: all 0.1s;
211
+ -moz-transition: all 0.1s;
212
+ transition: all 0.1s;
213
+
214
+ -webkit-box-shadow: 0px 6px 0px #006400;
215
+ -moz-box-shadow: 0px 6px 0px #006400;
216
+ box-shadow: 0px 6px 0px #129c12;
217
+ }
218
+
219
+ #run:active {
220
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
221
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
222
+ box-shadow: 0px 2px 0px #92dbf1;
223
+ position:relative;
224
+ top:4px;
225
+ }
226
+
227
+ #run:active {
228
+ background-color: #006400;
229
+ box-shadow: 0 5px #666;
230
+ transform: translateY(4px);
231
+ }
232
+
233
+
234
+ #fetch {
235
+ color: white;
236
+ background-color: #006400;
237
+ border-color: black;
238
+ border-width: thin;
239
+ }
240
+
241
+ #fetch {
242
+ filter: drop-shadow(8px 8px 8px black);
243
+ }
244
+
245
+ #fetch {
246
+ position:relative;
247
+ width: auto;
248
+ text-decoration:none;
249
+ border-radius:5px;
250
+ border:solid 1px #28b5fc;
251
+ background:#28b5fc;
252
+ text-align:center;
253
+ padding:16px 18px 14px;
254
+
255
+ -webkit-transition: all 0.1s;
256
+ -moz-transition: all 0.1s;
257
+ transition: all 0.1s;
258
+
259
+ -webkit-box-shadow: 0px 6px 0px #28b5fc;
260
+ -moz-box-shadow: 0px 6px 0px#28b5fc;
261
+ box-shadow: 0px 6px 0px #0088cc;
262
+ }
263
+
264
+ #fetch:active {
265
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
266
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
267
+ box-shadow: 0px 2px 0px #92dbf1;
268
+ position:relative;
269
+ top:4px;
270
+ }
271
+
272
+
273
+ #fetch:active {
274
+ background-color: #f8f827;
275
+ box-shadow: 0 5px #666;
276
+ transform: translateY(4px);
277
+ }
278
+
279
+
280
+ #down_nodes {
281
+ color: white;
282
+ background-color: #006400;
283
+ border-color: black;
284
+ border-width: thin;
285
+ }
286
+
287
+
288
+ #down_nodes {
289
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
290
+ }
291
+
292
+ #down_nodes:active {
293
+ background-color: #006400;
294
+ box-shadow: 0 5px #666;
295
+ transform: translateY(4px);
296
+ }
297
+
298
+
299
+ #down_edges {
300
+ color: white;
301
+ background-color: #006400;
302
+ border-color: black;
303
+ border-width: thin;
304
+ }
305
+
306
+ #down_edges {
307
+ filter: drop-shadow(8px 8px 8px rgb(17, 17, 17));
308
+ }
309
+
310
+ #down_edges:active {
311
+ background-color: #006400;
312
+ box-shadow: 0 5px #666;
313
+ transform: translateY(4px);
314
+ }
315
+
316
+
317
+ #id {
318
+ border-color: black;
319
+ }
320
+
321
+ #nextTab {
322
+ color: white;
323
+ background-color: #006400;
324
+ border-color: black;
325
+ border-width: thin;
326
+ }
327
+
328
+ #nextTab {
329
+ position:absolute; left: 720px;
330
+ }
331
+
332
+ #nextTab {
333
+ filter: drop-shadow(8px 8px 8px black);
334
+ }
335
+
336
+ #nextTab {
337
+ position:relative;
338
+ width: auto;
339
+ text-decoration:none;
340
+ border-radius:5px;
341
+ border:solid 1px #006400;
342
+ background:#006400;
343
+ text-align:center;
344
+ padding:16px 18px 14px;
345
+
346
+ -webkit-transition: all 0.1s;
347
+ -moz-transition: all 0.1s;
348
+ transition: all 0.1s;
349
+
350
+ -webkit-box-shadow: 0px 6px 0px #006400;
351
+ -moz-box-shadow: 0px 6px 0px #006400;
352
+ box-shadow: 0px 6px 0px #129c12;
353
+ }
354
+
355
+ #nextTab:active {
356
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
357
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
358
+ box-shadow: 0px 2px 0px #92dbf1;
359
+ position:relative;
360
+ top:4px;
361
+ }
362
+
363
+
364
+ #nextTab:active {
365
+ background-color: #006400;
366
+ box-shadow: 0 5px #666;
367
+ transform: translateY(4px);
368
+ }
369
+
370
+ #down_csv {
371
+ color: black;
372
+ background-color: #006400;
373
+ border-color: black;
374
+ border-width: thin;
375
+ }
376
+
377
+ #down_csv {
378
+ filter: drop-shadow(8px 8px 8px black);
379
+ }
380
+
381
+ #down_csv {
382
+ position:relative;
383
+ width: auto;
384
+ text-decoration:none;
385
+ border-radius:5px;
386
+ border:solid 1px #ffbf00;
387
+ background:#ffbf00;
388
+ text-align:center;
389
+ padding:6px 14px 6px;
390
+
391
+ -webkit-transition: all 0.1s;
392
+ -moz-transition: all 0.1s;
393
+ transition: all 0.1s;
394
+
395
+ -webkit-box-shadow: 0px 6px 0px #ffbf00;
396
+ -moz-box-shadow: 0px 6px 0px #ffbf00;
397
+ box-shadow: 0px 6px 0px #ff8000;
398
+ }
399
+
400
+ #down_csv:active {
401
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
402
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
403
+ box-shadow: 0px 2px 0px #92dbf1;
404
+ position:relative;
405
+ top:4px;
406
+ }
407
+
408
+ #down_data:active {
409
+ background-color: #ff8000;
410
+ box-shadow: 0 5px #666;
411
+ transform: translateY(4px);
412
+ }
413
+
414
+ #search_bttn {
415
+ color: black;
416
+ background-color: #006400;
417
+ border-color: black;
418
+ border-width: thin;
419
+ }
420
+
421
+ #search_bttn {
422
+ filter: drop-shadow(8px 8px 8px black);
423
+ }
424
+
425
+ #search_bttn {
426
+ position:relative;
427
+ width: auto;
428
+ text-decoration:none;
429
+ border-radius:5px;
430
+ border:solid 1px #1aa3ff;
431
+ background:#1aa3ff;
432
+ text-align:center;
433
+ padding:6px 14px 6px;
434
+
435
+ -webkit-transition: all 0.1s;
436
+ -moz-transition: all 0.1s;
437
+ transition: all 0.1s;
438
+
439
+ -webkit-box-shadow: 0px 6px 0px #1aa3ff;
440
+ -moz-box-shadow: 0px 6px 0px #1aa3ff;
441
+ box-shadow: 0px 6px 0px #007acc;
442
+ }
443
+
444
+ #search_bttn:active {
445
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
446
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
447
+ box-shadow: 0px 2px 0px #92dbf1;
448
+ position:relative;
449
+ top:4px;
450
+ }
451
+
452
+ #search_bttn:active {
453
+ background-color: #007acc;
454
+ box-shadow: 0 5px #666;
455
+ transform: translateY(4px);
456
+ }
457
+
458
+ #search_bttn {
459
+ margin-left: 160px;
460
+ margin-top: -88px;
461
+ }
462
+
463
+ /*scroll up button design*/
464
+ #scroll {
465
+ position: fixed;
466
+ bottom: 20px;
467
+ right: 20px;
468
+ display: none;
469
+ background-color: #ccc;
470
+ border: none;
471
+ color: #fff;
472
+ padding: 10px 20px;
473
+ cursor: pointer;
474
+ }
475
+
476
+ #scroll:hover {
477
+ background-color: #aaa;
478
+ }
479
+
480
+
481
+ #down_graphml {
482
+ margin-left: -280px;
483
+ }
484
+
485
+ #down_graphml {
486
+ color: black;
487
+ background-color: #006400;
488
+ border-color: black;
489
+ border-width: thin;
490
+ }
491
+
492
+ #down_graphml {
493
+ filter: drop-shadow(8px 8px 8px black);
494
+ }
495
+
496
+ #down_graphml {
497
+ position:relative;
498
+ width: auto;
499
+ text-decoration:none;
500
+ border-radius:5px;
501
+ border:solid 1px #20ec4c;
502
+ background:#20ec4c;
503
+ text-align:center;
504
+ padding:6px 14px 6px;
505
+
506
+ -webkit-transition: all 0.1s;
507
+ -moz-transition: all 0.1s;
508
+ transition: all 0.1s;
509
+
510
+ -webkit-box-shadow: 0px 6px 0px #30f15a;
511
+ -moz-box-shadow: 0px 6px 0px #30f15a;
512
+ box-shadow: 0px 6px 0px #07912a;
513
+ }
514
+
515
+ #down_graphml:active {
516
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
517
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
518
+ box-shadow: 0px 2px 0px #92dbf1;
519
+ position:relative;
520
+ top:4px;
521
+ }
522
+
523
+ #down_graphml {
524
+ float:left
525
+ }
526
+
527
+ #down_flat {
528
+ margin-left:0px;
529
+ margin-right: 50px;
530
+ }
531
+
532
+ #down_flat {
533
+ color: black;
534
+ background-color:#007acc;
535
+ border-color: black;
536
+ border-width: thin;
537
+ }
538
+
539
+ #down_flat {
540
+ filter: drop-shadow(8px 8px 8px black);
541
+ }
542
+
543
+ #down_flat {
544
+ position:relative;
545
+ width: auto;
546
+ text-decoration:none;
547
+ border-radius:5px;
548
+ border:solid 1px #1aa3ff;
549
+ background:#1aa3ff;
550
+ text-align:center;
551
+ padding:6px 14px 6px;
552
+
553
+ -webkit-transition: all 0.1s;
554
+ -moz-transition: all 0.1s;
555
+ transition: all 0.1s;
556
+
557
+ -webkit-box-shadow: 0px 6px 0px #1aa3ff;
558
+ -moz-box-shadow: 0px 6px 0px #1aa3ff;
559
+ box-shadow: 0px 6px 0px #007acc;
560
+ }
561
+
562
+ #down_flat:active {
563
+ -webkit-box-shadow: 0px 2px 0px #6b6a69;
564
+ -moz-box-shadow: 0px 2px 0px #9ecdf3;
565
+ box-shadow: 0px 2px 0px #92dbf1;
566
+ position:relative;
567
+ top:4px;
568
+ }
569
+
570
+ #down_flat {
571
+ float:left
572
+ }