-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.html
39 lines (39 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<script>
if (window.parent !== window.self) window.parent.postMessage("bonk", "*");
window.addEventListener("DOMContentLoaded", function () {
document.body.style.margin = "0";
document.body.style.height = "100vh";
document.body.style.overflow = "hidden";
});
</script>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cars Simulator</title>
<link href="shared/style.css" rel="stylesheet" />
<link rel="stylesheet" href="TemplateData56/style.css" />
<script src="TemplateData56/UnityProgress.js"></script>
<link rel="icon" href="TemplateData/favicon.ico" />
<script src="Build/UnityLoader.js"></script>
<script src="/js/main.js"></script>
<script>
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/cars-simulator-v2.json", {
onProgress: UnityProgress,
Module: {
onRuntimeInitialized: function () {
UnityProgress(gameInstance, "complete");
},
},
});
</script>
<script src="shared/lib.js" type="text/javascript"></script>
<script src="gamebreak.js" type="text/javascript"></script>
</head>
<body>
<div class="webgl-content">
<div id="gameContainer" style="width: 100vw; height: 100vh;"></div>
</div>
</body>
</html>