-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (31 loc) · 1.11 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
<html>
<head>
<title>CheerpJ - GraphHopper</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.1.0/dist/leaflet.css" crossorigin="">
<script src="https://cheerpjdeploy.leaningtech.com/loader.js"></script>
<script src="https://unpkg.com/leaflet@1.1.0/dist/leaflet.js" crossorigin=""></script>
<style>
#map {
width: 600px;
height: 400px;
}
</style>
</head>
<body>
<div id="map"></div>
<div>
<p id="messages"></p>
</div>
<script src="demo.js" crossorigin=""></script>
<script>
messageStatus("init cheerpj...");
cheerpjInit();
cheerpjRunMain("Main","/app/GH.jar:/app/graphhopper-tools-TRIMMED-0.10-SNAPSHOT-jar-with-dependencies.jar")
.then(function(){ messageStatus("loading cache..."); });
cjCall("Main", "unzip", "/app/cache/berlin.ghz","/files/cache")
.then(function(){ messageStatus("done!"); });
</script>
</body>
</html>