Spaces:
Running
Running
<html style="width:100%;height:100%;background-color:black;"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" /> | |
<meta name="description" content="Play minecraft 1.8 in your browser" /> | |
<meta name="keywords" content="eaglercraft, eaglercraftx, minecraft, 1.8, 1.8.8" /> | |
<title>EaglercraftX 1.8 WASM-GC</title> | |
<meta http-equiv="origin-trial" content="AkSzCuoOGDZz3lnngyM1kltEGpB2XO/d7zTRQ+y4Y2kc/c9XDCxoLwHSdszeMDqqL6wqbTMEjrqetGHW5mDRBgkAAABxeyJvcmlnaW4iOiJodHRwczovL2FzdHJhY2xpZW50b3JnLmdpdGh1Yi5pbzo0NDMiLCJmZWF0dXJlIjoiV2ViQXNzZW1ibHlKU1Byb21pc2VJbnRlZ3JhdGlvbiIsImV4cGlyeSI6MTc0NDY3NTIwMH0="> | |
<meta http-equiv="origin-trial" content="Azv89GWjpc2kmRm6dMCpGEvqJdna07STKB20arz9VAxE7x8hkASGTkaK4/y+TmCV32iy/M81eTgiOAICDHk0baYAAACEeyJvcmlnaW4iOiJodHRwczovL2FzdHJhY2xpZW50b3JnLmdpdGh1Yi5pbzo0NDMiLCJmZWF0dXJlIjoiV2ViQXNzZW1ibHlKU1Byb21pc2VJbnRlZ3JhdGlvbiIsImV4cGlyeSI6MTczOTE3MTA1NiwiaXNTdWJkb21haW4iOnRydWV9"> | |
<meta property="og:locale" content="en-US" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:title" content="EaglercraftX 1.8 WASM-GC" /> | |
<meta property="og:description" content="Play minecraft 1.8 in your browser" /> | |
<meta property="og:image" content="favicon.png" /> | |
<link type="image/png" rel="shortcut icon" href="favicon.png" /> | |
<script type="text/javascript" src="bootstrap.js"></script> | |
<script src="/js/ga4.js"></script> | |
<script src="/js/jspi.js"></script> | |
<script type="text/javascript"> | |
; | |
window.addEventListener("load", function() { | |
if(window.location.href.indexOf("file:") === 0) { | |
alert("HTTP please, do not open this file locally, run a local HTTP server and load it via HTTP"); | |
}else { | |
// %%%%%%%%% launch options %%%%%%%%%%%% | |
var relayId = Math.floor(Math.random() * 3); | |
window.eaglercraftXOpts = { | |
demoMode: false, | |
container: "game_frame", | |
assetsURI: "assets.epw", | |
worldsDB: "worlds", | |
servers: [ | |
/* example: { addr: "ws://localhost:8081/", name: "Local test server" } */ | |
], | |
relays: [ | |
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 }, | |
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId == 1 }, | |
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId == 2 } | |
] | |
}; | |
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
var q = window.location.search; | |
if((typeof q === "string") && q[0] === "?" && (typeof window.URLSearchParams !== "undefined")) { | |
q = new window.URLSearchParams(q); | |
var s = q.get("server"); | |
if(s) window.eaglercraftXOpts.joinServer = s; | |
} | |
main(); | |
} | |
}); | |
</script> | |
</head> | |
<body style="margin:0px;width:100%;height:100%;overflow:hidden;background-color:black;" id="game_frame"></body> | |
</html> | |