2024-05-06 16:11:23 -05:00
|
|
|
<!DOCTYPE html>
|
2024-09-22 00:29:10 -05:00
|
|
|
<html style="width:100%;height:100%;background-color:black;">
|
2024-05-06 16:11:23 -05:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2024-09-22 00:29:10 -05:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
|
2024-05-06 16:11:23 -05:00
|
|
|
<meta name="description" content="EaglercraftX 1.8 test directory HTML page" />
|
|
|
|
<meta name="keywords" content="eaglercraft, eaglercraftx, minecraft, 1.8, 1.8.8" />
|
|
|
|
<title>EaglercraftX 1.8</title>
|
|
|
|
<meta property="og:locale" content="en-US" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:title" content="EaglercraftX 1.8" />
|
|
|
|
<meta property="og:description" content="test directory HTML page" />
|
|
|
|
<link type="image/png" rel="shortcut icon" href="favicon.png" />
|
|
|
|
<script type="text/javascript" src="classes.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
"use strict";
|
2024-09-22 00:29:10 -05:00
|
|
|
window.addEventListener("load", function() {
|
|
|
|
if(window.location.href.indexOf("file:") === 0) {
|
2024-05-06 16:11:23 -05:00
|
|
|
alert("HTTP please, do not open this file locally, run a local HTTP server and load it via HTTP");
|
|
|
|
}else {
|
|
|
|
const isHttps = document.location.protocol === "https:";
|
|
|
|
var serverURL = isHttps ? "wss://" : "ws://";
|
|
|
|
serverURL += document.location.host + "/";
|
|
|
|
const relayId = Math.floor(Math.random() * 3);
|
|
|
|
window.eaglercraftXOpts = {
|
|
|
|
demoMode: false,
|
|
|
|
container: "game_frame",
|
|
|
|
assetsURI: "assets.epk",
|
|
|
|
localesURI: "lang/",
|
|
|
|
worldsDB: "worlds",
|
|
|
|
logInvalidCerts: true,
|
2024-09-22 00:29:10 -05:00
|
|
|
crashOnUncaughtExceptions: true,
|
2024-05-06 16:11:23 -05:00
|
|
|
servers: [
|
|
|
|
{ addr: serverURL, name: "TemuzX" }
|
|
|
|
],
|
|
|
|
relays: [
|
2024-09-22 00:29:10 -05:00
|
|
|
{ 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 }
|
2024-05-06 16:11:23 -05:00
|
|
|
]
|
|
|
|
};
|
2024-09-22 00:29:10 -05:00
|
|
|
|
2024-05-06 16:11:23 -05:00
|
|
|
var q = window.location.search;
|
2024-09-22 00:29:10 -05:00
|
|
|
if((typeof q === "string") && q[0] === "?" && (typeof window.URLSearchParams !== "undefined")) {
|
|
|
|
q = new window.URLSearchParams(q);
|
2024-05-06 16:11:23 -05:00
|
|
|
var s = q.get("server");
|
|
|
|
if(s) window.eaglercraftXOpts.joinServer = s;
|
|
|
|
}
|
2024-09-22 00:29:10 -05:00
|
|
|
|
2024-05-06 16:11:23 -05:00
|
|
|
main();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
2024-09-22 00:29:10 -05:00
|
|
|
<body style="margin:0px;width:100%;height:100%;overflow:hidden;background-color:black;" id="game_frame">
|
2024-05-06 16:11:23 -05:00
|
|
|
</body>
|
|
|
|
</html>
|