Polyfill for iOS

I made this change on my iPhone in Safari
This commit is contained in:
ayunami2000 2022-01-25 02:09:19 -05:00 committed by GitHub
parent fd107c08bd
commit 077efc4109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,10 @@
<script type="text/javascript" src="classes.js?t=updateme1"></script>
<script type="text/javascript">
var name="PixelCraft",motd="A public 1.5.2 server",ip="pixelcraft.me";
window.addEventListener("load", function(){ window.minecraftOpts = [
window.addEventListener("load", function(){
document.requestPointerLock=document.requestPointerLock||function(){};
document.exitPointerLock=document.exitPointerLock||function(){};
window.minecraftOpts = [
"game_frame","assets.epk",
btoa(atob("CgAACQAHc2VydmVycwoAAAABCAAKZm9yY2VkTU9URABtb3RkaGVyZQEAC2hpZGVBZGRyZXNzAQgAAmlwAGlwaGVyZQgABG5hbWUAbmFtZWhlcmUAAA==").replace("motdhere",String.fromCharCode(motd.length)+motd).replace("namehere",String.fromCharCode(name.length)+name).replace("iphere",String.fromCharCode(ip.length)+ip))
]; main(); });
@ -61,4 +64,4 @@ if(window.navigator.clipboard&&window.isSecureContext&&navigator.userAgent.toLow
</head>
<body style="margin:0px;width:100vw;height:100vh;" id="game_frame">
</body>
</html>
</html>