forked from stephank/orona
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (72 loc) · 2.73 KB
/
index.html
File metadata and controls
76 lines (72 loc) · 2.73 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Bolo - Multiplayer Tank Game</title>
<meta name="description" content="Bolo, a game of tank warfare, rewritten for modern browsers. Originally a top-down game of tank warfare originally written by Stuart Cheshire for the BBC Micro and Apple Macintosh, and also notably rewritten for Windows and Linux by John Morrison.">
<meta property="og:title" content="Bolo - Multiplayer Tank Game">
<meta property="og:description" content="Bolo, a game of tank warfare, rewritten for modern browsers.">
<meta property="og:image" content="/maps/Everard Island.jpg">
<meta property="og:type" content="website">
<link rel="shortcut icon" href="images/favicon.png">
<link rel="stylesheet" href="css/compiled.css">
<script src="js/bolo-bundle.13bbf2c.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var params = new URLSearchParams(window.location.search || '');
var devHot = params.get('devhot') === '1' || window.localStorage.getItem('bolo-dev-hot') === '1';
if (params.get('devhot') === '1') {
window.localStorage.setItem('bolo-dev-hot', '1');
}
window.__BOLO_DEV_HOT__ = devHot;
var World = (typeof window !== 'undefined' && window.World) ? window.World : ((typeof require === 'function') ? require('./src/client') : undefined);
window.world = new World();
window.world.start();
if (!devHot) {
return;
}
var lastBuild = null;
var checkForBuild = function() {
fetch('/js/.dev-build-id?ts=' + Date.now(), { cache: 'no-store' })
.then(function(res) {
if (!res.ok) return null;
return res.text();
})
.then(function(text) {
if (!text) return;
var nextBuild = text.trim();
if (!nextBuild) return;
if (lastBuild === null) {
lastBuild = nextBuild;
return;
}
if (nextBuild !== lastBuild) {
window.location.reload();
}
})
.catch(function() {});
};
window.setInterval(checkForBuild, 800);
checkForBuild();
});
</script>
<!-- Matomo -->
<script>
var host = window.location.hostname;
if (host === 'bolo.davidangel.net' || host === 'bolo-game.com') {
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u = "//matomo.davidangel.net/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '3']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
})();
}
</script>
<!-- End Matomo Code -->
</head>
<body></body>
</html>