generated from workadventure/map-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
24 lines (24 loc) · 1.03 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
<html>
<head>
<script>
window.onload = function() {
var path = window.location.pathname;
if (path.endsWith('index.html')) {
path = path.substr(path, path.length - 'index.html'.length);
}
var url1 = 'https://play.workadventu.re/_/global/'+window.location.host+path+'main.json';
var url2 = 'https://play.wa.binary-kitchen.de/_/global/'+window.location.host+path+'main.json';
document.getElementById('mapLink1').href = url1;
document.getElementById('mapLink1').innerText = url1;
document.getElementById('mapLink2').href = url2;
document.getElementById('mapLink2').innerText = url2;
};
</script>
</head>
<body>
This website contains a map for <a href="https://workadventu.re">Workadventu.re</a>.
<br/>
You can access this map at <a id="mapLink1" href=""></a>
or <a id="mapLink2" href=""></a>
</body>
</html>