resent-1.8/javascript/index.html

45 lines
1.6 KiB
HTML
Raw Normal View History

2022-12-27 10:59:46 -08:00
<!DOCTYPE html>
<html>
2023-01-11 20:06:59 -08:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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>
2022-12-27 10:59:46 -08:00
<script type="text/javascript" src="fix-webm-duration.js"></script>
2023-01-11 20:06:59 -08:00
<script type="text/javascript">
"use strict";
window.addEventListener("load", () => {
if(document.location.href.startsWith("file:")) {
alert("HTTP please, do not open this file locally, run a local HTTP server and load it via HTTP");
}else {
window.eaglercraftXOpts = {
2022-12-27 10:59:46 -08:00
container: "game_frame",
assetsURI: "assets.epk",
localesURI: "lang/",
servers: [
2023-01-11 20:06:59 -08:00
{ addr: "ws://localhost:8081/", name: "Local test server" }
2022-12-27 10:59:46 -08:00
]
};
2023-01-11 20:06:59 -08:00
var q = window.location.search;
if(typeof q === "string" && q.startsWith("?")) {
q = new URLSearchParams(q);
var s = q.get("server");
if(s) window.eaglercraftXOpts.joinServer = s;
}
main();
}
});
</script>
</head>
<body style="margin:0px;width:100vw;height:100vh;overflow:hidden;" id="game_frame">
</body>
2022-12-27 10:59:46 -08:00
</html>