eaglercraft/javascript/queryTest.html
LAX1DUDE 026233b6e4 11w13a LAST 'FREE' UPDATE! All bugs fixed and tons of new features
This is (hopefully) the last 'cracked' update to Eaglercraft, the next update will require a microsoft account

- Fixed rainbow graphics driver problem
- Added server Icons, MOTD, players online and ping to server list
- Copy and paste has been added
- Added F+2 screenshot support
- Added 'Alex' player model for skins
- Fixed arrows in player glitch
- Fixed broken XP orbs
- Fixed palleted PNG file loader
- Fixed text selection
- Added player/IP/wildcard/regex bans
- Added IP address forwarding for proxies
- Fixed offset mouse coords
2022-03-30 23:54:47 -07:00

33 lines
No EOL
991 B
HTML

<html>
<head>
<title>query test</title>
<script type="text/javascript">
window.addEventListener("load", () => {
const output = document.getElementById("out");
document.getElementById("testButton").addEventListener("click", () => {
const ws = new WebSocket(document.getElementById("uriField").value);
ws.onopen = (e) => {
output.innerText = "please wait";
ws.send(document.getElementById("acceptField").value);
};
ws.onmessage = (e) => {
try {
output.innerText += JSON.stringify(JSON.parse(e.data), null, 4);
}catch(ee) {
output.innerText += e.data;
}
};
ws.onclose = (e) => {
output.innerText = output.innerText + "\n\nSocket Closed.";
};
});
});
</script>
</head>
<body style="font-family:sans-serif;">
<input type="text" id="uriField" value="ws://127.0.0.1:25565/" /><br />
<input type="text" id="acceptField" value="accept: motd" /><br />
<button id="testButton">send</button>
<pre id="out" style="font-family:sans-serif;"></pre>
</body>
</html>