forked from sent/waves
151 lines
3.2 KiB
HTML
151 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Soccer Random</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
|
|
|
<meta name="generator" content="Scirra Construct">
|
|
<meta name="author" content="RHM Interactive">
|
|
<meta name="description" content="Random Physics Soccer">
|
|
<link rel="manifest" href="appmanifest.json">
|
|
|
|
<style>html, body {
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
|
|
background: #000000;
|
|
color: white;
|
|
}
|
|
|
|
html, body, canvas {
|
|
touch-action: none;
|
|
touch-action-delay: none;
|
|
}
|
|
|
|
#notSupportedWrap {
|
|
margin: 2em auto 1em auto;
|
|
width: 75%;
|
|
max-width: 45em;
|
|
border: 2px solid #aaa;
|
|
border-radius: 1em;
|
|
padding: 2em;
|
|
background-color: #f0f0f0;
|
|
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
|
color: black;
|
|
}
|
|
|
|
#notSupportedTitle {
|
|
font-size: 1.8em;
|
|
}
|
|
|
|
.notSupportedMessage {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.notSupportedMessage em {
|
|
color: #888;
|
|
}
|
|
|
|
/* bbcode styles */
|
|
.bbCodeH1 {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.bbCodeH2 {
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.bbCodeH3 {
|
|
font-size: 1.25em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.bbCodeH4 {
|
|
font-size: 1.1em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.bbCodeItem::before {
|
|
content: " • ";
|
|
}
|
|
|
|
/* For text icons converted to HTML: size the height to the line height
|
|
preserving the aspect ratio. Also add position: relative as that allows
|
|
just adding a 'top' style for the iconoffsety style. */
|
|
.c3-text-icon {
|
|
height: 1em;
|
|
width: auto;
|
|
position: relative;
|
|
}
|
|
|
|
/* screen reader text */
|
|
.c3-screen-reader-text {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
}</style>
|
|
|
|
|
|
|
|
<script>
|
|
window.addEventListener("keydown", function(e) {
|
|
// space and arrow keys
|
|
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
|
|
e.preventDefault();
|
|
}
|
|
}, false);
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
function CallInterstitialAds()
|
|
{
|
|
adBreak({
|
|
type: 'next',
|
|
name: 'restart-game',
|
|
beforeAd: () => {
|
|
console.log("Ad Started!");
|
|
c3_callFunction("adStarted");
|
|
},
|
|
afterAd: () => {
|
|
c3_callFunction("onClose");
|
|
console.log("After Ad Finished");
|
|
},
|
|
adBreakDone: () => {
|
|
console.log('adBreakDone');
|
|
c3_callFunction("onClose");
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<script>
|
|
if (location.protocol.substr(0, 4) === "file")
|
|
{
|
|
alert("Web exports won't work until you upload them. (When running on the file: protocol, browsers block many features from working for security reasons.)");
|
|
}
|
|
</script>
|
|
<script src="box2d.wasm.js"></script>
|
|
<noscript>
|
|
<div id="notSupportedWrap">
|
|
<h2 id="notSupportedTitle">This content requires JavaScript</h2>
|
|
<p class="notSupportedMessage">JavaScript appears to be disabled. Please enable it to view this content.</p>
|
|
</div>
|
|
</noscript>
|
|
<script src="scripts/supportcheck.js"></script>
|
|
<script src="scripts/offlineclient.js" type="module"></script>
|
|
<script src="scripts/main.js" type="module"></script>
|
|
<script src="scripts/register-sw.js" type="module"></script>
|
|
|
|
</body>
|
|
</html> |