-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
230 lines (214 loc) · 8.78 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>xServer internet routing demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-routing-machine@3.2.12/dist/leaflet-routing-machine.css" />
<link rel="stylesheet" href="https://unpkg.com/sidebar-v2@0.4.0/css/leaflet-sidebar.min.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-contextmenu@1.4.0/dist/leaflet.contextmenu.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://unpkg.com/jqueryui@1.11.1/jquery-ui.min.css">
<link rel="stylesheet" href="./forkme.css" />
<link rel="stylesheet" href="./index.css" />
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
font: 10pt "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.leaflet-top-pane {
pointer-events: none;
}
div.inputForm {
display: table;
}
div.inputForm p {
display: table-row;
}
div.inputForm label {
display: table-cell;
}
div.inputForm select {
margin: 4px;
display: table-cell;
}
.travelMarker0 {
fill: #99CCFF;
opacity: 1;
}
.travelMarker1 {
fill: #99CCFF;
opacity: 1;
}
.travelMarker2 {
fill: #99CCFF;
opacity: 1;
}
.waypoints {
fill: black;
opacity: 0;
}
.lineConnect {
fill: none;
stroke: black;
opacity: 1;
}
.invisible {
display: none;
}
</style>
</head>
<body>
<!-- Notifications -->
<div id="Auth" title="Authentication" class="invisible">
<h4>
Please enter your xServer internet token:
</h4>
<p>
<input id="tokenInput" type="text" value="">
<input type="submit" value="Submit" onclick="handleAuth()">
<text style="color:red;font-weight:bold" id="error"/>
</p>
<p>
You don't have a token?
</p>
<p>
<a href="http://xserver.ptvgroup.com/en-uk/products/ptv-xserver-internet/test/" target="_blank">Test now for free!</a> (60 days PTV xServer internet)
</p>
<br>
<p>
<center>
<a href="http://xserver.ptvgroup.com/en-uk/products/ptv-xserver-internet/" target="_blank"><img src="./doc/images/ptv_logo.png" border="0"></a>
</center>
</p>
</div>
<div class="github-fork-ribbon-wrapper right-bottom">
<div class="github-fork-ribbon">
<a href="https://github.com/ptv-logistics/china-labs/">Fork me on GitHub</a>
</div>
</div>
<div id="sidebar" class="sidebar collapsed">
<!-- Nav tabs -->
<ul class="sidebar-tabs" role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-flag"></i></a></li>
<li><a href="#about" role="tab"><i class="fa fa-info"></i></a></li>
</ul>
<!-- Tab panes -->
<div class="sidebar-content active">
<div class="sidebar-pane" id="home">
<h2>
xServer internet routing demo
</h2>
<p>
Drag and drop the blue waypoint markers, or grab the orange route line and drag
a new via waypoint. You can also enter an address in the address text fields on
the right side.
</p>
<div class="inputForm">
<p>
<label for="routingProfile">Routing Profile</label>
<select id="routingProfile" onchange="updateParams()">
<option>carfast</option>
<option>carslow</option>
<option>truckfast</option>
<option>truckslow</option>
<option>delivery</option>
<option>emergency</option>
<option>bicycle</option>
<option>bicycle-oneway</option>
<option>pedestrian</option>
</select>
</p>
<p>
<label for="alternativeRoutes">Alternative Routes</label>
<select id="alternativeRoutes" onchange="updateParams()">
<option>0</option>
<option>1</option>
<option>2</option>
</select>
</p>
<p>
<label for="languageSelect">Itinerary Language</label>
<select id="languageSelect" onchange="updateParams()">
<option>EN</option>
<option>DE</option>
<option>FR</option>
<option>NL</option>
<option>RO</option>
<option>DA</option>
<option>PL</option>
<option>CS</option>
<option>SK</option>
<option>SR</option>
<option>BG</option>
<option>SL</option>
<option>HR</option>
<option>x-ptv-BOS</option>
<option>UK</option>
<option>RU</option>
<option>ES</option>
<option>IT</option>
<option>SV</option>
<option>PT</option>
</select>
</p>
</div>
</div>
<div class="sidebar-pane" id="about">
<div>
<p>
<h2>Powered by</h2>
</p>
<p>
<div>
<a href="http://xserver.ptvgroup.com/de/produkte/ptv-xserver-internet/"><img src="./images/xserver.png"></a>
<h3>PTV xServer internet</h3>
</div>
</p>
<p>
<div>
<a href="http://leafletjs.com/"><img src="./images/leaflet.png"></a>
<h3>Leaflet</h3>
</div>
</p>
<p>
<div>
<a href="http://www.liedman.net/leaflet-routing-machine/"><img src="./images/lrm.svg"></a>
<h3>Leaflet Routing Machine</h3>
</div>
</p>
<p>
<div>
<a href="http://d3js.org"><img src="./images/d3.svg"></a>
<h3>Data Driven Documents</h3>
</div>
</p>
</div>
</div>
</div>
</div>
<div id="map" class="sidebar-map">
</div>
<script src="https://unpkg.com/jquery@1.11.1/dist/jquery.min.js"></script>
<script src="https://unpkg.com/jqueryui@1.11.1/jquery-ui.min.js"></script>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet.nontiledlayer@1.0.7/dist/NonTiledLayer.js"></script>
<script src="https://unpkg.com/leaflet-routing-machine@3.2.12/dist/leaflet-routing-machine.min.js"></script>
<script src="https://unpkg.com/sidebar-v2@0.4.0/js/leaflet-sidebar.min.js"></script>
<script src="https://unpkg.com/leaflet-contextmenu@1.4.0/dist/leaflet.contextmenu.min.js"></script>
<script src="https://unpkg.com/leaflet.icon.glyph@0.2.0/Leaflet.Icon.Glyph.js"></script>
<script src="https://unpkg.com/d3@3.5.5/d3.min.js"></script>
<script src="https://unpkg.com/moment@2.18.1/min/moment.min.js"></script>
<script src="./d3layer.js"></script>
<script src="./animatedRoute.js"></script>
<script src="./Control.Geocoder.ptv.js"></script>
<script src="./routing-machine-ptv.js"></script>
<script src="./token.js"></script>
<script src="./index.js"></script>
</body>
</html>