eaglercraft-1.5/javascript/index.html

29 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>eagler</title>
<script type="text/javascript" src="classes.js"></script>
<script type="text/javascript">
if(document.location.href.startsWith("file:")) {
alert("You're not supposed to 'open' this file in your browser. Please upload this folder to your HTTP(s) server and access it via the internet. This is not a bug, please read the documentation");
}else {
window.addEventListener("load", function(){
window.minecraftOpts = [
"game_frame","assets.epk",
"CgAACQAHc2VydmVycwoAAAAECAACaXAAIHdzKHMpOi8vIChhZGRyZXNzIGhlcmUpOihwb3J0KSAvCAAEbmFtZQAIdGVtcGxhdGUBAAtoaWRlQWRkcmVzcwEIAApmb3JjZWRNT1REABl0aGlzIGlzIG5vdCBhIHJlYWwgc2VydmVyAAgAAmlwABV3czovLzEyNy4wLjAuMToyNTU2Ni8IAARuYW1lAAh0ZW1wbGF0ZQEAC2hpZGVBZGRyZXNzAQgACmZvcmNlZE1PVEQAGXRoaXMgaXMgbm90IGEgcmVhbCBzZXJ2ZXIACAACaXAAF3dzOi8vMjQuMjEuMjQuMjE6MjU1NjYvCAAEbmFtZQAIdGVtcGxhdGUBAAtoaWRlQWRkcmVzcwEIAApmb3JjZWRNT1REABl0aGlzIGlzIG5vdCBhIHJlYWwgc2VydmVyAAgAAmlwABV3czovLzEyNy4wLjAuMToyNTU2Ni8IAARuYW1lAAh0ZW1wbGF0ZQEAC2hpZGVBZGRyZXNzAQgACmZvcmNlZE1PVEQAGXRoaXMgaXMgbm90IGEgcmVhbCBzZXJ2ZXIAAQAJaGlkZV9kb3duAQA="
];
(function(){
var q = window.location.search;
if(typeof q === 'string' && q.startsWith("?")) {
q = new URLSearchParams(q);
var s = q.get("server");
if(s) window.minecraftOpts.push(s);
}
})();
main();
});}
</script>
</head>
<body style="margin:0px;width:100vw;height:100vh;" id="game_frame">
</body>
</html>