-
Notifications
You must be signed in to change notification settings - Fork 92
/
index.html
73 lines (66 loc) · 2.62 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Rapid</title>
<link rel='stylesheet' href='dist/rapid.css'>
<link rel='icon' type='image/svg' href='dist/img/rapid_favicon.svg'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'/>
<meta name='mobile-web-app-capable' content='yes'/>
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
<style type='text/css'>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
/* disable elastic page bounce upon scroll */
overflow: hidden;
}
</style>
</head>
<body>
<script>var $buoop={required:{i:15,e:-4,f:-3,o:-3,s:-1,c:-3},reminder:0,noclose:true,no_permanent_hide:true,insecure:true,api:2021.06};</script>
<script src='https://browser-update.org/update.js'></script>
<div id='rapid-container'></div>
<script>
var container = document.getElementById('rapid-container');
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.onload = checkScript;
newScript.onerror = checkScript;
newScript.src = 'dist/rapid.js';
document.getElementsByTagName('head')[0].appendChild(newScript);
function checkScript() {
if (typeof Rapid === 'undefined' || !Rapid.utilDetect().support) {
container.innerHTML = 'Sorry, your browser is not currently supported.';
container.style.padding = '20px';
} else {
const context = new Rapid.Context();
context.containerNode = container;
context.assetPath = 'dist/';
// context.assetOrigin = 'local'; // test no CDN
context.buildID = '';
context.buildSHA = '';
context.buildDate = '';
context.apiConnections = [
{
url: 'https://www.openstreetmap.org',
apiUrl: 'https://api.openstreetmap.org',
client_id: 'O3g0mOUuA2WY5Fs826j5tP260qR3DDX7cIIE2R2WWSc',
client_secret: 'b4aeHD1cNeapPPQTrvpPoExqQRjybit6JBlNnxh62uE'
}, {
url: 'https://api06.dev.openstreetmap.org',
apiUrl: 'https://api06.dev.openstreetmap.org',
client_id: 'NShFpuCHSGxVMrttMR8cyYJ5I1pC-yEdNRHpX6XslGM',
client_secret: 'YqAspFOYaTOv-uGM8TXbRLMXZUwgczdh3kUaPwqLPSQ'
}
];
window.context = context; // for debugging
window.rapidContext = context;
context.initAsync();
}
}
</script>
</body>
</html>