1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00
MineXLauncher/public/index.html
2024-07-24 13:05:45 -07:00

54 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MineXLauncher</title>
<link rel="icon" type="image/x-icon" href="/resources/images/icons/favicon.png" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Custom launcher for Eaglercraft, which contains many versions and clients." />
<meta name="keywords" content="minex, minexlauncher, launcher, minecraft, eaglercraft, eaglercraftx, eaglercraftl, eagler, eaglerx, eaglerl, download, unblocked, 1.5.2, 1.5, 1.8, 1.8.8, 1.9, 1.9.4, 1.12, 1.3, 1.7.3, b1.3, b1.7.3, alpha, beta, a1.2.6, resent, shadow, client, resent client, shadow client, cracked, cracked minecraft" />
<meta property="og:locale" content="en-US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="MineXLauncher" />
<meta property="og:description" content="Custom launcher for Eaglercraft, which contains many versions and clients." />
<meta property="og:image" content="/resources/images/icons/favicon.png" />
<style>
body {
overflow: hidden;
background-color: #1e1e1e;
background-image: url("/resources/images/gifs/loading.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: 15vh;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
function isMobile() {
try {
document.exitPointerLock();
return /Mobi/i.test(window.navigator.userAgent);
} catch (e) {
return true;
}
}
const iframe = document.createElement("iframe");
iframe.id = "embed";
iframe.style.position = "fixed";
iframe.style.top = "0";
iframe.style.left = "0";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = "none";
if (isMobile()) {
iframe.src = "/mobile/";
} else {
iframe.src = "/home/game/";
}
document.body.appendChild(iframe);
});
</script>
</head>
</html>