-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1 lines (1 loc) · 4.19 KB
/
index.html
1
<!doctypehtml><html lang=en-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><meta content="width=device-width,initial-scale=1"name=viewport><title>EasyRPG Player</title><style>body{font-family:sans-serif;margin:0;padding:0;color:#fff;background:#000}#status{font-weight:700;color:#888;text-align:center;margin:auto}#controls{text-align:right}#controls input{position:relative;z-index:1;padding:2px 4px;background:0 0;border:1px solid gray;color:gray}canvas.emscripten{width:320px;height:240px;border:0 none;image-rendering:pixelated;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media all and (min-width:320px) and (min-height:240px) and not{canvas.emscripten{width:320px;height:240px}}@media all and (min-width:640px) and (min-height:480px){canvas.emscripten{width:640px;height:480px}}@media all and (min-width:960px) and (min-height:720px){canvas.emscripten{width:960px;height:720px}}@media all and (min-width:1280px) and (min-height:720px){canvas.emscripten{width:1280px;height:720px}}@media all and (min-width:1600px) and (min-height:1200px){canvas.emscripten{width:1600px;height:1200px}}@media all and (min-width:1920px) and (min-height:1440px){canvas.emscripten{width:1920px;height:1440px}}@media all and (min-width:2240px) and (min-height:1680px){canvas.emscripten{width:2240px;height:1680px}}@media all and (min-width:2560px) and (min-height:1920px){canvas.emscripten{width:2560px;height:1920px}}@media all and (min-width:2880px) and (min-height:2160px){canvas.emscripten{width:2880px;height:2160px}}@media all and (min-width:3200px) and (min-height:2400px){canvas.emscripten{width:3200px;height:2400px}}@media all and (min-width:3520px) and (min-height:2640px){canvas.emscripten{width:3520px;height:2640px}}@media all and (min-width:3840px) and (min-height:2880px){canvas.emscripten{width:3840px;height:2880px}}@media all and (min-width:4160px) and (min-height:3120px){canvas.emscripten{width:4160px;height:3120px}}@media all and (min-width:4480px) and (min-height:3360px){canvas.emscripten{width:4480px;height:3360px}}@media all and (min-width:4800px) and (min-height:3600px){canvas.emscripten{width:4800px;height:3600px}}@media all and (min-width:5120px) and (min-height:3840px){canvas.emscripten{width:5120px;height:3840px}}@media all and (min-width:5440px) and (min-height:4080px){canvas.emscripten{width:5440px;height:4080px}}@media all and (min-width:5760px) and (min-height:4320px){canvas.emscripten{width:5760px;height:4320px}}</style></head><body><div id=controls><input onclick=Module.canvas.requestFullscreen()&&Module.canvas.requestFullscreen() type=button value=⛶></div><div id=status></div><canvas class=emscripten id=canvas onclick=window.focus() oncontextmenu=event.preventDefault() onmouseenter=window.focus() tabindex=-1></canvas><script>var statusElement=document.getElementById("status"),Module={preRun:[],postRun:[],print:function(){var t=document.getElementById("output");return t&&(t.value=""),function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments).join(" ")),console.log(e),t&&(t.value+=e+"\n",t.scrollTop=t.scrollHeight)}}(),printErr:function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments).join(" ")),console.error(t)},canvas:function(){var t=document.getElementById("canvas");return t.addEventListener("webglcontextlost",(function(t){alert("WebGL context lost. You will need to reload the page."),t.preventDefault()}),!1),t}(),setStatus:function(t){Module.setStatus.last||(Module.setStatus.last={time:Date.now(),text:""}),t!==Module.setStatus.text&&(statusElement.innerHTML=t)},totalDependencies:0,monitorRunDependencies:function(t){this.totalDependencies=Math.max(this.totalDependencies,t),Module.setStatus(t?"Preparing... ("+(this.totalDependencies-t)+"/"+this.totalDependencies+")":"Downloading game data...")}};Module.setStatus("Downloading..."),window.onerror=function(t){Module.setStatus("Exception thrown, see JavaScript console"),Module.setStatus=function(t){t&&Module.printErr("[post-exception status] "+t)}}</script><script async src=index.js></script><script>window.addEventListener("keydown",(function(e){[32,37,38,39,40,112,113,114,115,116,117,118,119,120,121,122,123].indexOf(e.keyCode)>-1&&e.preventDefault()}),!1)</script></body></html>