Files
monkeygg2.github.io/games/n-step-steve-part-2/index.html
T
2023-10-29 19:56:54 -05:00

1 line
3.3 KiB
HTML

<!doctypehtml><html lang=en-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><style>*{margin:0;overflow:hidden}.overlay{position:fixed;left:0;top:0;width:640px;height:640px}#loader{background-color:#000}P{color:#0f0}#loader p{position:fixed;left:8px;top:8px;width:586px;font-size:24px}#textInput{background-color:#222;display:none;flex-direction:column;align-items:center;justify-content:center}#textInput textarea{resize:none;width:580px;height:480px}#introVid{position:fixed;left:0;top:107px;width:640px;display:none}</style></head><body><div class=emscripten_border><canvas class=emscripten id=canvas tabindex=-1></canvas></div><div class=overlay id=loader><p id=loaderP>Loading...</p></div><div class=overlay id=textInput><p id=textInputText></p><textarea id=textInputTextArea></textarea><br><button id=textInputButton onclick=textInputButtonClick()>Load</button></div><script>var windowClickFunction=function(){window.focus(),null!=window.assertMouseDown&&assertMouseDown()},textInputButtonClick=function(){let e=document.getElementById("textInput");window.textInputButtonClicked=!0,e.style.display="none";for(let e=0;e<window.OriginalJSEvents.length;e++)JSEvents.registerOrRemoveHandler(window.OriginalJSEvents[e]);window.focus()},Module={preRun:[function(){"object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate||(document.getElementById("loaderP").innerHTML="Error: your browser doesn't support WebAssembly.",console.assert(!1)),document.getElementById("canvas").addEventListener("mousedown",windowClickFunction),document.getElementById("loader").addEventListener("mousedown",windowClickFunction),document.getElementById("loaderP").addEventListener("mousedown",windowClickFunction)}],postRun:[function(){assertMouseDown=Module.cwrap("assertMouseDown"),window.OriginalJSEvents=[];for(let e=0;e<JSEvents.eventHandlers.length;e++)window.OriginalJSEvents.push(JSEvents.eventHandlers[e])}],print:function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments).join(" ")),console.log(e)},printErr:function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments).join(" ")),console.error(e)},canvas:function(){var e=document.getElementById("canvas");return e.addEventListener("webglcontextlost",(function(e){alert("WebGL context lost. You will need to reload the page."),e.preventDefault()}),!1),e}(),setStatus:function(e){var t=document.getElementById("loaderP");if(Module.setStatus.last||(Module.setStatus.last={time:Date.now(),text:""}),e!==Module.setStatus.last.text){var n=e.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/),o=Date.now();if(!(n&&o-Module.setStatus.last.time<30))if(Module.setStatus.last.time=o,Module.setStatus.last.text=e,"Running..."==e)document.getElementById("loader").remove();else if(n){var s=100*parseInt(n[2])/(100*parseInt(n[4]));t.innerHTML="Loading... "+Math.round(95*s)+"%"}}},totalDependencies:0,monitorRunDependencies:function(e){this.totalDependencies=Math.max(this.totalDependencies,e),Module.setStatus(e?"Preparing... ("+(this.totalDependencies-e)+"/"+this.totalDependencies+")":"All downloads complete.")}};Module.setStatus("Downloading..."),window.onerror=function(e){Module.setStatus("Exception thrown, see JavaScript console"),Module.setStatus=function(e){e&&Module.printErr("[post-exception status] "+e)}}</script><script async src=index.js></script></body></html>