mirror of
https://github.com/mileswolfallen2/miles-web.git
synced 2026-12-04 15:57:47 +00:00
- Added WebAssembly file for Stacktris game. - Included minified JavaScript source for Stacktris game. - Created moon vault HTML page with game links and a locking mechanism.
24 lines
593 B
JavaScript
24 lines
593 B
JavaScript
function loadJS(FILE_URL, async = true) {
|
|
let scriptEle = document.createElement("script");
|
|
|
|
scriptEle.setAttribute("src", FILE_URL);
|
|
scriptEle.setAttribute("type", "text/javascript");
|
|
scriptEle.setAttribute("async", async);
|
|
|
|
document.body.appendChild(scriptEle);
|
|
|
|
// Success
|
|
scriptEle.addEventListener("load", () => {
|
|
console.log("ucbg served!");
|
|
});
|
|
|
|
// Error
|
|
scriptEle.addEventListener("error", () => {
|
|
console.log("ucbg error!");
|
|
});
|
|
}
|
|
|
|
window.addEventListener("load", function () {
|
|
loadJS("https://important.pages.dev/js/ucbg_server_v33_0.js", true);
|
|
});
|