Files
monkeygg2.github.io/games/eaglercraftx/index.html
T
2023-09-25 19:51:08 -04:00

57 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="Play minecraft 1.8 in your browser" name="description"/>
<meta content="eaglercraft, eaglercraftx, minecraft, 1.8, 1.8.8" name="keywords"/>
<title>EaglercraftX 1.8</title>
<meta content="en-US" property="og:locale"/>
<meta content="website" property="og:type"/>
<meta content="EaglercraftX 1.8" property="og:title"/>
<meta content="Play minecraft 1.8 in your browser" property="og:description"/>
<meta content="favicon.png" property="og:image"/>
<link href="favicon.png" rel="shortcut icon" type="image/png"/>
<script src="classes.js" type="text/javascript"></script>
<script src="fix-webm-duration.js" type="text/javascript"></script>
<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 {
// %%%%%%%%% launch options %%%%%%%%%%%%
window.eaglercraftXOpts = {
container: "game_frame",
assetsURI: "assets.epk",
localesURI: "lang/",
servers: [
{ addr: "wss://ffb34837-a1e2-43f1-98bd-5637d0b193d0.id.repl.co", name: "MonkeyGG2 Server" }
/* example: { addr: "ws://localhost:8081/", name: "Local test server" } */
],
mainMenu: {
splashes: ["OrangutanGG2!", "pay attention", "Violet or Purple?", "Yeeeeeee!", "yeee",
"EEEEEEEEE!", "Suggest stuff in MonkeyGG2 Discord!", "Me when 5k users :O", "C(O_O)D", "United States-craft", "This is targeted to: no one yet",
"MonkeyGG2 is good", "MonkeyGG3?"
], eaglerLogo: false
}
};
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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 id="game_frame" style="margin: 0px; width: 100vw; height: 100vh; overflow: hidden;"></body>
</html>