mirror of
https://git.webmc.xyz/Starlike-Client/Starlike-Client
synced 2025-06-05 18:32:01 -09:00
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<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" />
|
|
<title>Starlike Client</title>
|
|
<link rel="icon" type="image/png" href="favicon.png" />
|
|
<script src="classes.js"></script>
|
|
<script>
|
|
"use strict";
|
|
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 {
|
|
window.eaglercraftXOpts = {
|
|
container: "game_frame",
|
|
assetsURI: "assets.epk",
|
|
enableSignatureBadge: false
|
|
};
|
|
|
|
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>
|