-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (87 loc) · 3.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GPSS Crossroads Model</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"
></script>
</head>
<body>
<div class="row">
<div class="col-md-5">
<svg></svg>
</div>
<div class="col-md-6">
<div id="input-parameters" class="panel panel-default">
<div class="panel-heading">Input system parameters</div>
<div class="panel-body">
<form>
<div class="form-group">
<label for="cars-number">Cars Number:</label>
<input
class="form-control"
id="cars-number"
value="20"
>
</div>
<div class="form-group">
<label for="car-generation-delay">Car Generation Delay:</label>
<input
class="form-control"
id="car-generation-delay"
value="500"
>
</div>
<div class="form-group">
<label for="color-changing-time">Trafficlight Color Changing Time:</label>
<input
class="form-control"
id="color-changing-time"
value="2000"
>
</div>
<button class="btn btn-primary" onclick="startAnimation()">Run</button>
</form>
</div>
</div>
<div id="output-parameters" class="panel panel-default" style="display: none">
<div class="panel-heading">Output system parameters</div>
<div class="panel-body">
<ul class="list-group">
<li class="list-group-item">
Total working system time:
<span id="total-time">0.00</span>
</li>
<li class="list-group-item">
Average time of car moving:
<span id="average-time-of-car-moving">0.00</span>
</li>
</ul>
<table id="route-parameters" class="table table-striped">
<caption>Parameters of routes</caption>
<thead>
<tr>
<th>Route name</th>
<th>Max elements</th>
<th>Ave. time</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
<script src="./fillMap.js"></script>
<script src="./inputParameters.js"></script>
<script src="./metrics.js"></script>
<script src="./trafficLight.js"></script>
<script src="./cars.js"></script>
<script src="./animate.js"></script>
<script src="./main.js"></script>
</body>
</html>