You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.1 MiB
1 line
2.1 MiB
2 years ago
|
<html><head><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,shrink-to-fit=no"name=viewport><style>body,html{margin:0;width:100%;height:100%;min-width:100%;min-height:100%}body{display:flex;flex-direction:column;align-items:center;justify-content:center}.git-commit-info{font-family:Consolas,'Courier New',Courier,monospace;background-color:#f1f1f1;padding:2px;text-align:left}#git-hash{text-align:center}#output{margin:0;padding:0}</style></head><body><div id=git-hash></div><p id=output><canvas id=canvas></canvas></p><script>var siteURL=new URL(window.location.href),w=siteURL.searchParams.get("w")||"800",h=siteURL.searchParams.get("h")||"480",canvas=document.getElementById("canvas");canvas.setAttribute("width",w),canvas.setAttribute("height",h),console.log("Requested "+w+"x"+h+" px");var Module={print:function(e){console.log(e)},printErr:function(e){console.error(e)},canvas:canvas,arguments:[siteURL.searchParams.get("w")||"800",siteURL.searchParams.get("h")||"480",siteURL.searchParams.get("example")??"default"]};window.addEventListener("click",(()=>window.focus()))</script><script>var read_,readAsync,readBinary,setWindowTitle,fs,nodePath,Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(A,I)=>{throw I},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="";function locateFile(A){return Module.locateFile?Module.locateFile(A,scriptDirectory):scriptDirectory+A}function logExceptionOnExit(A){if(A instanceof ExitStatus)return;err("exiting due to exception: "+A)}ENVIRONMENT_IS_NODE?(scriptDirectory=ENVIRONMENT_IS_WORKER?require("path").dirname(scriptDirectory)+"/":__dirname+"/","function"==typeof require&&(fs=require("fs"),nodePath=require("path")),read_=(A,I)=>{var g=tryParseAsDataURI(A);return g?I?g:g.toString():(A=nodePath.normalize(A),fs.readFileSync(A,I?void 0:"utf8"))},readBinary=A=>{var I=read_(A,!0);return I.buffer||(I=new Uint8Array(I)),I},readAsync=(A,I,g)=>{var C=tryParseAsDataURI(A);C&&I(C),A=nodePath.normalize(A),fs.readFile(A,(function(A,C){A?g(A):I(C.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=Module),process.on("uncaughtException",(function(A){if(!(A instanceof ExitStatus))throw A})),process.on("unhandledRejection",(function(A){throw A})),quit_=(A,I)=>{if(keepRuntimeAlive())throw process.exitCode=A,I;logExceptionOnExit(I),process.exit(A)},Module.inspect=function(){return"[Emscripten Module object]"}):(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=A=>{try{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.send(null),I.responseText}catch(I){var g=tryParseAsDataURI(A);if(g)return intArrayToString(g);throw I}},ENVIRONMENT_IS_WORKER&&(readBinary=A=>{try{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.responseType="arraybuffer",I.send(null),new Uint8Array(I.response)}catch(I){var g=tryParseAsDataURI(A);if(g)return g;throw I}}),readAsync=(A,I,g)=>{var C=new XMLHttpRequest;C.open("GET",A,!0),C.responseType="arraybuffer",C.onload=()=>{if(200==C.status||0==C.status&&C.response)I(C.response);else{var B=tryParseAsDataURI(A);B?I(B.buffer):g()}},C.onerror=g,C.send(null)},setWindowTitle=A=>document.title=A);var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var wasmBinary,POINTER_SIZE=4;Module.wa
|