Stupid Autoplay Policy...

This commit is contained in:
jscraft 2022-03-01 02:46:21 +00:00
parent d624094a8e
commit b8c7acea9e

View file

@ -1,74 +1,83 @@
<title>Click to Start!</title>
<center><h1>SM<wbr>6<wbr>4-J<wbr>S - Su<wbr>p<wbr>er Ma<wbr>ri<wbr>o 6<wbr>4 made entirely out of J<wbr>av<wbr>aSc<wbr>rip<wbr>t and W<wbr>ebA<wbr>ss<wbr>e<wbr>mbl<wbr>y!</h1><h3>Mad<wbr>e by T<wbr>W<wbr>TG.</h3><hr></hr><p>Due to C<wbr>hr<wbr>om<wbr>e's S<wbr>t<wbr>u<wbr>p<wbr>i<wbr>d A<wbr>ud<wbr>io<wbr>/V<wbr>i<wbr>d<wbr>e<wbr>o A<wbr>ut<wbr>op<wbr>l<wbr>ay<wbr> P<wbr>ol<wbr>ic<wbr>y,<wbr> Cli<wbr>ck<wbr> t<wbr>he <wbr>pa<wbr>ge <wbr>to <wbr>st<wbr>art <wbr>th<wbr>e <wbr>g<wbr>a<wbr>me.</p></center>
<script>
document.addEventListener('click', () => {
<!--
<html lang="en-us"><head> document.write( '<html lang=\"en-us\"><head>\n' );
<meta charset="utf-8"> document.write( ' <meta charset=\"utf-8\">\n' );
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> document.write( ' <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n' );
<title>Super Mario 64</title> document.write( ' <title>Super Mario 64</title>\n' );
<style> document.write( ' <style>\n' );
body, html{ document.write( ' body, html{\n' );
margin: 0; document.write( ' margin: 0;\n' );
padding: 0; document.write( ' padding: 0;\n' );
width: 100vw; document.write( ' width: 100vw;\n' );
min-height: 100vh; document.write( ' min-height: 100vh;\n' );
font-family: Arial, Helvetica, sans-serif; document.write( ' font-family: Arial, Helvetica, sans-serif;\n' );
color: white; document.write( ' color: white;\n' );
image-rendering: pixelated; document.write( ' image-rendering: pixelated;\n' );
scrollbar-width: none; document.write( ' scrollbar-width: none;\n' );
} document.write( ' }\n' );
::-webkit-scrollbar { document.write( ' ::-webkit-scrollbar {\n' );
display: none; document.write( ' display: none;\n' );
} document.write( ' }\n' );
#container { document.write( ' #container {\n' );
width: 100vw; document.write( ' width: 100vw;\n' );
height: 100vh; document.write( ' height: 100vh;\n' );
display: flex; document.write( ' display: flex;\n' );
align-items: center; document.write( ' align-items: center;\n' );
justify-content: center; document.write( ' justify-content: center;\n' );
} document.write( ' }\n' );
canvas { document.write( ' canvas {\n' );
width: 100vw; document.write( ' width: 100vw;\n' );
height: 100vh; document.write( ' height: 100vh;\n' );
} document.write( ' }\n' );
</style> document.write( ' </style>\n' );
</head> document.write( ' </head>\n' );
<body> document.write( ' <body>\n' );
<div id="container"> document.write( ' <div id=\"container\">\n' );
<canvas class="emscripten" id="canvas" width="1920" height="1080" style="cursor: default;"></canvas> document.write( ' <canvas class=\"emscripten\" id=\"canvas\" width=\"1920\" height=\"1080\" style=\"cursor: default;\"></canvas>\n' );
</div> document.write( ' </div>\n' );
<script type="text/javascript"> document.write( ' <script type=\"text/javascript\">\n' );
var Module = { document.write( ' var Module = {\n' );
preRun: [], document.write( ' preRun: [],\n' );
postRun: [], document.write( ' postRun: [],\n' );
print: (function() { document.write( ' print: (function() {\n' );
return function(text) { document.write( ' return function(text) {\n' );
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' '); document.write( ' if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(\' \');\n' );
console.log(text); document.write( ' console.log(text);\n' );
}; document.write( ' };\n' );
})(), document.write( ' })(),\n' );
printErr: function(text) { document.write( ' printErr: function(text) {\n' );
if (arguments.length > 1) document.write( ' if (arguments.length > 1)\n' );
text = Array.prototype.slice.call(arguments).join(' '); document.write( ' text = Array.prototype.slice.call(arguments).join(\' \');\n' );
console.error(text); document.write( ' console.error(text);\n' );
}, document.write( ' },\n' );
canvas: (function() { document.write( ' canvas: (function() {\n' );
var canvas = document.getElementById('canvas'); document.write( ' var canvas = document.getElementById(\'canvas\');\n' );
canvas.width = window.innerWidth; // Todo: how to do this from c++ document.write( ' canvas.width = window.innerWidth; // Todo: how to do this from c++\n' );
canvas.height = window.innerHeight; document.write( ' canvas.height = window.innerHeight;\n' );
canvas.addEventListener("webglcontextlost", function(e) { document.write( ' canvas.addEventListener(\"webglcontextlost\", function(e) {\n' );
alert('WebGL context lost. You will need to reload the page.'); document.write( ' alert(\'WebGL context lost. You will need to reload the page.\');\n' );
e.preventDefault(); document.write( ' e.preventDefault();\n' );
}, false); document.write( ' }, false);\n' );
return canvas; document.write( ' return canvas;\n' );
})(), document.write( ' })(),\n' );
setStatus: function(text) { document.write( ' setStatus: function(text) {\n' );
} document.write( ' }\n' );
}; document.write( ' };\n' );
</script> document.write( ' </script>\n' );
<script async="" type="text/javascript" src="sm64.js"></script> document.write( ' <script async=\"\" type=\"text/javascript\" src=\"sm64.js\"></script>\n' );
<script> document.write( ' <script>\n' );
</script> document.write( ' </script>\n' );
document.write( ' \n' );
document.write( '\n' );
document.write( '\n' );
document.write( '\n' );
document.write( '\n' );
document.write( '</body></html>' );
//-->
})
</script>
</body></html>