Template
mirror of
https://gitlab.com/raylibtemplates/rt.git
synced 2026-10-12 04:00:08 -04:00
Initial Commit
This commit is contained in:
commit
e6c3ec5406
1235 files changed
+593872
No files matched your search
@@ -0,0 +1 @@
|
||||
<!doctypehtml><html lang=en-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><style>body{margin:0;overflow:hidden;background-color:#000}canvas.emscripten{border:0 none;background-color:#000;padding-left:0;padding-right:0;margin-left:auto;margin-right:auto;display:block}</style><script src=https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js></script><script>function saveFileFromMEMFSToDisk(e,a){var i,o=FS.readFile(e);i=new Blob([o.buffer],{type:"application/octet-binary"}),saveAs(i,a)}</script></head><body><canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas><p id=output><script>var Module={print:function(){var e=document.getElementById("output");return e&&(e.value=""),function(n){arguments.length>1&&(n=Array.prototype.slice.call(arguments).join(" ")),console.log(n),e&&(e.value+=n+"\n",e.scrollTop=e.scrollHeight)}}(),canvas:document.getElementById("canvas")}</script><script id=mainScript>!function(){function A(A){for(var e=(A=A.split("-")[0]).split(".").slice(0,3);e.length<3;)e.push("00");return(e=e.map(((A,e,r)=>A.padStart(2,"0")))).join("")}var e=A=>[A/1e4|0,(A/100|0)%100,A%100].join("."),r=2147483647,t="undefined"!=typeof process&&process?.versions?.node?A(process.versions.node):r;if(t<16e4)throw new Error(`This emscripten-generated code requires node v${e(16e4)} (detected v${e(t)})`);var v="undefined"!=typeof navigator&&navigator?.userAgent?.includes("Safari/")&&navigator.userAgent.match(/Version\/(\d+\.?\d*\.?\d*)/)?A(navigator.userAgent.match(/Version\/(\d+\.?\d*\.?\d*)/)[1]):r;if(v<15e4)throw new Error(`This emscripten-generated code requires Safari v${e(15e4)} (detected v${v})`);var n="undefined"!=typeof navigator&&navigator?.userAgent?.match(/Firefox\/(\d+(?:\.\d+)?)/)?parseFloat(navigator.userAgent.match(/Firefox\/(\d+(?:\.\d+)?)/)[1]):r;if(n<79)throw new Error(`This emscripten-generated code requires Firefox v79 (detected v${n})`);var i="undefined"!=typeof navigator&&navigator?.userAgent?.match(/Chrome\/(\d+(?:\.\d+)?)/)?parseFloat(navigator.userAgent.match(/Chrome\/(\d+(?:\.\d+)?)/)[1]):r;if(i<85)throw new Error(`This emscripten-generated code requires Chrome v85 (detected v${i})`)}();var Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB=!!globalThis.window,ENVIRONMENT_IS_WORKER=!!globalThis.WorkerGlobalScope,ENVIRONMENT_IS_NODE=globalThis.process?.versions?.node&&"renderer"!=globalThis.process?.type,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,arguments_=[],thisProgram="./this.program",quit_=(A,e)=>{throw e},_scriptName=globalThis.document?URL.createObjectURL(new Blob([document.getElementById("mainScript").textContent],{type:"text/javascript"})):void 0;"undefined"!=typeof __filename?_scriptName=__filename:ENVIRONMENT_IS_WORKER&&(_scriptName=self.location.href);var readAsync,readBinary,scriptDirectory="";if(ENVIRONMENT_IS_NODE){if(!(globalThis.process?.versions?.node&&"renderer"!=globalThis.process?.type))throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");var fs=require("fs");scriptDirectory=__dirname+"/",readBinary=A=>{A=isFileURI(A)?new URL(A):A;var e=fs.readFileSync(A);return assert(Buffer.isBuffer(e)),e},readAsync=async(A,e=!0)=>{A=isFileURI(A)?new URL(A):A;var r=fs.readFileSync(A,e?void 0:"utf8");return assert(e?Buffer.isBuffer(r):"string"==typeof r),r},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=Module),quit_=(A,e)=>{throw process.exitCode=A,e}}else if(ENVIRONMENT_IS_SHELL);else{if(!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER)throw new Error("environment detection error");try{scriptDirectory=new URL(".",_scriptName).href}catch{}if(!globalThis.window&&!globalThis.WorkerGlobalScope)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");ENVIRONMENT_IS_WORKER&&(readBinary=A=>{var e=new XMLHttpRequest;return e.open("GET",A,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),readAsync=async A=>{if(isFileURI(A))return new Promise(((e,r)=>{var t=new XMLHttpRequest;t.open("GET",A,!0),t.responseType="arraybuffer",t.onload=()=>{200==t.status||0==t.status&&t.response?e(t.response):r(t.status)},t.onerror=r,t.send(null)}));var e=await fetch(A,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)}}var wasmBinary,out=console.log.bind(console),err=console.error.bind(console);assert(!ENVIRONMENT_IS_SHELL,"shell environment detected but not enabled at build time. Add `shell` to `-sENVIRONMENT` to enable."),globalThis.WebAssembly||err("no native wasm support detected");var EXITSTATUS,ABORT=!1;function asLine truncated
|
||||
Reference in new issue
Block a user