generated from workadventure/map-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
22 lines (22 loc) · 898 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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 url = 'https://play.workadventu.re/_/global/'+window.location.host+path+'map.json';
document.getElementById('mapLink').href = url;
document.getElementById('mapLink').innerText = url;
};
</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="mapLink" href=""></a>
<br/>
You can edit this map at <a href="https://github.com/muccc/wa-map-club/">https://github.com/muccc/wa-map-club/</a>
</body>
</html>