61 lines
1.9 KiB
HTML
61 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
|
|
<title>Shadow Over Bishkek</title>
|
|
<style>
|
|
body, html {
|
|
margin: 0; padding: 0; width: 100%; height: 100%;
|
|
overflow: hidden; background-color: #000;
|
|
position: fixed;
|
|
}
|
|
#canvas {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0; left: 0;
|
|
width: 100vw; height: 100vh;
|
|
border: none;
|
|
}
|
|
|
|
#status { color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="status">Downloading...</div>
|
|
<canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
|
|
|
|
<script>
|
|
function prepareModuleEnvironment() {
|
|
window.Module = window.Module || {};
|
|
var canvasEl = document.getElementById('canvas');
|
|
window.Module.canvas = canvasEl;
|
|
window.Module.setStatus = window.Module.setStatus || function (text) {
|
|
var statusElement = document.getElementById("status");
|
|
statusElement.innerHTML = text;
|
|
statusElement.style.display = text ? 'block' : 'none';
|
|
};
|
|
}
|
|
|
|
function loadGameScript() {
|
|
var s = document.createElement('script');
|
|
s.src = 'bishkek-witcher.js';
|
|
s.async = true;
|
|
document.body.appendChild(s);
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
prepareModuleEnvironment();
|
|
loadGameScript();
|
|
});
|
|
|
|
window.addEventListener("orientationchange", function() {
|
|
setTimeout(() => {
|
|
window.dispatchEvent(new Event('resize'));
|
|
}, 200);
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|