-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
128 lines (123 loc) · 4.41 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.4">
<meta name="description" content="An unofficial remake of the classic "Command & Conquer: Red Alert 2" RTS game, playable online in the web browser." />
<title>Red Alert 2: Chrono Divide</title>
<script type="text/javascript">
var browserSupported = true;
try {
eval("'use strict'; class C { async test(...args) { let spread = {...({a: 2})} }}");
var canvas = document.createElement('canvas');
browserSupported = !!(
window.WebGLRenderingContext && (canvas.getContext('webgl') || canvas.getContext('experimental-webgl')) &&
new Blob(["test"], { type: "text/plain" }).arrayBuffer
);
} catch (e) {
browserSupported = false;
}
if (!browserSupported) {
alert("Browser not supported.\n\nPlease download the latest Google Chrome, Mozilla Firefox or Microsoft Edge.");
}
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NT498QGSGZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-NT498QGSGZ');
</script>
<link href="res/fonts/fonts.css" rel="stylesheet"></link>
<link rel="stylesheet" href="style.css?v=0.57.3" type="text/css"></link>
<style type="text/css">
#ra2web-root {
position: relative;
}
</style>
</head>
<body class="no-js">
<div id="loader-wrapper" style="display: none;">
<div id="loader"></div>
<div id="loader-logo"></div>
</div>
<div id="ra2web-root"></div>
<script type="text/javascript">
if (browserSupported) {
document.body.classList.remove("no-js");
setTimeout(() => {
let loader = document.getElementById("loader-wrapper");
if (loader) {
loader.style.display = "";
}
}, 2000);
}
</script>
<script type="text/javascript" src="lib/system.js"></script>
<script type="text/javascript" src="lib/three.min.js?v0.94"></script>
<script type="text/javascript" src="lib/three/three.shader-patch.js?v=2"></script>
<script type="text/javascript" src="lib/three/three.octree.js?v=2"></script>
<script type="text/javascript" src="lib/three/SimplexNoise.js"></script>
<script type="text/javascript" src="lib/three/LightningStrike.js"></script>
<script type="text/javascript" src="lib/three/TrailRenderer.js"></script>
<script type="text/javascript" src="lib/three/SPE.min.js"></script>
<script type="text/javascript" src="lib/three/SPE.patch.js"></script>
<script type="text/javascript" src="lib/growingpacker.js"></script>
<script type="text/javascript" src="lib/lzo1x.js"></script>
<script type="text/javascript" src="lib/fullscreen-api-polyfill.min.js"></script>
<script type="text/javascript" src="dist/ra2web.min.js?v=0.57.3"></script>
<script type="text/javascript" src="dist/vendor.bundle.min.js?v=0.57.3"></script>
<script type="text/javascript" src="dist/workerHost.min.js?v=0.57.3"></script>
<script type="text/javascript">
SystemJS.config({
packages: {
"@puzzl": {
defaultExtension: "js"
},
"@puzzl/core/lib/async/cancellation": {
main: "index.js"
},
"@babel/runtime": {
defaultExtension: "js"
},
"@babel/runtime/regenerator": {
main: "index.js"
},
"regenerator-runtime": {
main: "runtime.js"
}
},
meta: {
"web-audio-polyfill.js": {
scriptLoad: true
},
"dist/7zz.js": {
scriptLoad: true
},
"dist/fsalib.min.js": {
scriptLoad: true
},
"dist/spbots.min.js": {
scriptLoad: true
}
},
paths: {
"web-audio-polyfill.js": "dist/web-audio-polyfill.min.js",
"7z-wasm": "dist/7zz.js",
"@ffmpeg/ffmpeg": "dist/ffmpeg.min.js",
"file-system-access": "dist/fsalib.min.js?v=1.0.4",
"@chronodivide/sp-bots": "dist/spbots.min.js?v=1.0.0",
"@chronodivide/game-api": "game/api/index",
}
})
System.registerDynamic('three', [], false, function(require, exports, module) {
module.exports = window.THREE;
});
if (browserSupported) {
SystemJS.import("main");
document.body.removeChild(document.getElementById("loader-wrapper"));
}
</script>
</body>
</html>