2022-01-18 23:48:00 -08:00
|
|
|
<!DOCTYPE html>
|
2020-09-01 17:52:13 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
2022-01-24 14:53:38 -08:00
|
|
|
<title>ayuncraft</title>
|
2022-01-23 16:55:36 -08:00
|
|
|
|
|
|
|
<script type="text/javascript" src="jsbn/jsbn.js"></script>
|
|
|
|
<script type="text/javascript" src="jsbn/jsbn2.js"></script>
|
2022-01-23 17:20:13 -08:00
|
|
|
<script type="text/javascript" src="jsbn/base64.js"></script>
|
2022-01-23 16:55:36 -08:00
|
|
|
<script type="text/javascript" src="jsbn/prng4.js"></script>
|
|
|
|
<script type="text/javascript" src="jsbn/rng.js"></script>
|
|
|
|
<script type="text/javascript" src="jsbn/rsa.js"></script>
|
|
|
|
<script type="text/javascript" src="jsbn/rsa2.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="asn1-parser.js"></script>
|
|
|
|
|
2022-01-24 14:53:38 -08:00
|
|
|
<script type="text/javascript" src="music.js"></script>
|
|
|
|
|
2020-09-01 17:52:13 -07:00
|
|
|
<script type="text/javascript" src="classes.js"></script>
|
|
|
|
<script type="text/javascript">
|
2022-01-24 15:09:49 -08:00
|
|
|
var name="PixelCraft",motd="A public 1.5.2 server",ip="pixelcraft.me";
|
2020-09-01 17:52:13 -07:00
|
|
|
window.addEventListener("load", function(){ window.minecraftOpts = [
|
|
|
|
"game_frame","assets.epk",
|
2022-01-23 22:38:52 -08:00
|
|
|
btoa(atob("CgAACQAHc2VydmVycwoAAAABCAAKZm9yY2VkTU9URABtb3RkaGVyZQEAC2hpZGVBZGRyZXNzAQgAAmlwAGlwaGVyZQgABG5hbWUAbmFtZWhlcmUAAA==").replace("motdhere",String.fromCharCode(motd.length)+motd).replace("namehere",String.fromCharCode(name.length)+name).replace("iphere",String.fromCharCode(ip.length)+ip))
|
2020-09-01 17:52:13 -07:00
|
|
|
]; main(); });
|
2022-01-16 17:37:27 -08:00
|
|
|
//modified from https://gist.github.com/GlauberF/d8278ce3aa592389e6e3d4e758e6a0c2
|
|
|
|
function simulateKey (key, type) {
|
|
|
|
var keyCode = key.charCodeAt(0);
|
|
|
|
var evtName = (typeof(type) === "string") ? "key" + type : "keydown";
|
|
|
|
|
|
|
|
var event = document.createEvent("HTMLEvents");
|
|
|
|
event.initEvent(evtName, true, false);
|
|
|
|
event.keyCode = event.which = keyCode;
|
|
|
|
event.key = key;
|
|
|
|
event.shiftKey = false;
|
|
|
|
event.ctrlKey = false;
|
|
|
|
event.metaKey = false;
|
|
|
|
|
|
|
|
document.dispatchEvent(event);
|
|
|
|
}
|
2022-01-23 23:42:26 -08:00
|
|
|
if(window.navigator.clipboard&&window.isSecureContext&&navigator.userAgent.toLowerCase().indexOf('firefox')==-1){
|
2022-01-16 17:37:27 -08:00
|
|
|
window.addEventListener("keydown",function(e){
|
|
|
|
if((e.ctrlKey||e.metaKey)&&e.keyCode==86&&!e.altKey){
|
|
|
|
window.navigator.clipboard.readText().then(clipdata=>{
|
|
|
|
if(clipdata==null||clipdata=="")return;
|
|
|
|
simulateKey("\u0011","up");
|
|
|
|
simulateKey("\u0011","press");
|
|
|
|
simulateKey("\b","down");
|
|
|
|
simulateKey("\b","up");
|
|
|
|
simulateKey("\b","press");
|
|
|
|
var clipchars=clipdata.split("");
|
|
|
|
for(var clipchar of clipchars){
|
|
|
|
simulateKey(clipchar,"down");
|
|
|
|
simulateKey(clipchar,"up");
|
|
|
|
simulateKey(clipchar,"press");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2020-09-01 17:52:13 -07:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body style="margin:0px;width:100vw;height:100vh;" id="game_frame">
|
|
|
|
</body>
|
|
|
|
</html>
|