-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (114 loc) · 5.17 KB
/
Copy pathindex.html
File metadata and controls
131 lines (114 loc) · 5.17 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" href="/favicon.png" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Dijkstra's self stabilization simulation</title>
<script src="main.js"></script>
<script src="utils.js"></script>
<style>
html,
body {
background-color: rgb(117, 117, 117);
display: -ms-flexbox;
text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5);
min-height: 100vh;
}
*,
::after,
::before {
box-sizing: border-box;
}
.proccessor {
color: black !important;
border-radius: 50%;
font-size: 20px;
font-weight: bold;
width: 80px;
height: 80px;
}
.input-group-text {
font-weight: bold;
}
.label {
color: whitesmoke;
position: absolute;
top: 50%;
transform: translate(0, -50%)
}
.headline {
color: greenyellow;
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<div class="container " style="padding: 5%; ">
<div class="row" style="margin: 5%;">
<div class="col text-center">
<h1 class="headline" class="font-weight-bold">
<b>Dijkstra's Self Stabilization 1'st Algorithm</b>
</h1>
</div>
</div>
<div class="row" style="margin: 3%;">
<div class="col-md-4" style="padding: 2%;">
<div class="row">
<span class="input-group-text ">N = </span>
<input id="nInput" type="text " class="form-control " style="width:80px; ">
<button id="nInputButton" class="btn btn-warning " type="button " onclick="nInputBoxChanged() ">Set</button>
</div>
</div>
<div class="col-md-4" style="padding: 2%;">
<div class="row">
<span class="input-group-text ">K = </span>
<input id="kInput" type="text " class="form-control " style="width:80px; ">
<button id="kInputButton" class="btn btn-warning " type="button " onclick="kInputBoxChanged() ">Set</button>
</div>
</div>
<div class="col-md-3" style="padding: 2%;">
<div class="row">
<button id="randomButton" type="button " class="btn btn-warning " onclick="randomizeStates() ">Random States</button>
</div>
</div>
</div>
<div class="row " style="margin: 3%; ">
<div class="col-sm-4" style="padding: 2%;">
<div class="row">
<span class="input-group-text ">Step (Seconds): </span>
<input id="secondsInput" type="text " class="form-control " style="width:80px; ">
</div>
</div>
<div class="col-sm-4" style="padding: 2%;">
<div class="row">
<button id="autoSchedularButton" type="button " class="btn btn-danger " onclick="autoSchedular() ">Auto-Scheduler</button>
</div>
</div>
<div class="col-sm-4" style="padding: 3%;">
<div class="row ">
<p id="pickedLabel" class="label "></p>
</div>
</div>
</div>
</div>
<div class="container-fluid " style="padding: 5%; ">
<div id="procRow" class="row ">
<!-- Processor will be created here -->
</div>
</div>
<footer class="headline page-footer font-large balck">
<!-- Copyright -->
<div class=" footer-copyright text-center py-3 " style="font-size: 15px;" data-toggle="tooltip" data-placement="top" title="Mail Me!"><b>©
<a class="headline" href="mailto:eyalvfs@gmail.com?subject=Hi Eyal" > Eyal Maoz </a> </b> </div>
<!-- Copyright -->
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js " integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj " crossorigin="anonymous "></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js " integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx " crossorigin="anonymous "></script>
</body>