-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy pathrampMeteringMA.html
191 lines (126 loc) · 5.16 KB
/
rampMeteringMA.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
<!DOCTYPE html public>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link href="css/styleSlidersGame.css" rel="stylesheet" type="text/css" ></img>
<link href="css/styleGame.css" rel="stylesheet" type="text/css"></img>
<link rel="shortcut icon" type="image/jpg" href="./favicon.jpg">
<script type="text/javascript" src="js/jquery-1.12.4.min.js">
</script>
<title>Microsimulation of Traffic Flow: Onramp</title>
</head>
<body>
<!-- ############################################## -->
<!-- header: title image loaded as background image via css -->
<!-- ############################################## -->
<div id="header">
<!-- <img class="title" src="figs/title.png" width="100%"></img> -->
</div>
<!-- ############################################## -->
<!-- Buttons -->
<!-- ############################################## -->
<div id="startStopDiv"><img id="startStop" width="100%"
src="figs/buttonStop3_small.png" onclick="myStartStopFunction()"></img>
</div>
<div id="restartDiv"><img id="restart" width="100%"
src="figs/buttonRestart_small.png" onclick="myGameRestartFunction()"></img>
</div>
<br><br>
<img width="50%" src="favicon.jpg"
onclick="myRedirectOnramp()"></img>
</div>
<!-- redirects to other scenarios, defines myRedirectX -->
<script src="js/redirect.js" type="text/javascript"></script>
<!-- ############################################## -->
<!-- the actual simulation canvas -->
<!-- ############################################## -->
<!-- !!! NO comments inside canvas spec, leads to DOS!!! -->
<!-- no width, height spec in canvas; overridden anyway -->
<div id="contents">
<canvas id="canvas"
onmouseenter="handleMouseEnter(event)"
onmousemove="handleMouseMove(event)"
onmousedown="handleMouseDown(event)"
onmouseup="handleMouseUp(event)"
onclick="handleClick(event)"
onmouseout="cancelActivities(event)"
style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.
</canvas>
</div>
<!-- ################################################# -->
<!-- Copyright/impressum -->
<!-- ################################################# -->
<!--<div id="impressum"> <a href="impressum.html">
© Martin Treiber</a></div>-->
<div id="impressum">
<table class="infoTable"> <TR>
<td> <a href="impressum.html"> © Martin Treiber</a></td>
</TR></table>
</div>
<!-- ############################################## -->
<!-- General link list
<!-- ############################################## -->
<div id="link1Div">
<table class="infoTable"> <TR>
<TD> <a href="onramp.html">
traffic-simulation.de</a></TD>
<TD> <a href="https://github.com/movsim/traffic-simulation-de">
Play offline: sources at GitHub</a></TD>
</TR></table>
</div>
<!-- ################################################# -->
<!-- No main sliders to control the game: only traffic lights/speed limits -->
<!-- ################################################# -->
<!-- ################################################# -->
<!-- Info sliders (only timewarp active) -->
<!-- ################################################# -->
<div id="slidersRampMeteringGame">
<center>
<table id="mainTable" border="0" cellspacing="1" cellpadding="0" >
<tr>
<td>Main flow (info)</td>
<td> <input id="slider_qIn" type="range"
min="0" max="3600" step="10"></td>
<td> <div id="slider_qInVal"></div> </td>
</tr>
<tr>
<td>Ramp flow (info)</td>
<td> <input id="slider_qOn" type="range"
min="0" max="2000" step="10"></td>
<td> <div id="slider_qOnVal"></div> </td>
</tr>
<tr>
<td>Time-lapse factor</td>
<td> <input id="slider_timewarp" type="range"
min="0.2" max="20" step="0.1"></td>
<td> <div id="slider_timewarpVal"></div> </td>
</tr>
</table>
<!-- ############################################## -->
<!-- info-text inside sliders-div (filled by showInfo())
<!-- ############################################## -->
<br>
<div id="infotext"></div>
</center>
</div> <!-- id="sliders">-->
<!-- ########################################################## -->
<!-- specific scripts; position below any simulation elements ! -->
<!-- ########################################################## -->
<script src="js/seedrandom.min.js"></script> <!-- random w seed debug -->
<script src="js/timeView.js" type="text/javascript"></script>
<script src="js/displayText.js" type="text/javascript"></script>
<script src="js/media.js" type="text/javascript"></script>
<script src="js/control_gui.js"></script>
<script src="js/canvas_gui.js"></script>
<script src="js/TrafficObjects.js"></script>
<script src="js/TrafficLightControlEditor.js"></script>
<script src="js/colormanip.js"></script>
<script src="js/models.js"></script>
<script src="js/vehicle.js"></script>
<script src="js/paths.js"></script>
<script src="js/road.js"></script>
<script src="js/stationaryDetector.js"></script>
<!-- PROJ--> <script src="js/rampMeteringMA.js"></script>
</body>
</html>