eaglercraft-1.5/javascript/index.html

35 lines
1.3 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2020-09-01 17:52:13 -07:00
<html>
<head>
<title>eagler</title>
<meta charset="UTF-8" />
2022-07-16 22:02:55 -07:00
<script type="text/javascript" src="eagswebrtc.js"></script>
2022-07-18 08:07:59 -07:00
<script type="text/javascript" src="classes.js"></script>
2020-09-01 17:52:13 -07:00
<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(){
2022-07-31 02:03:22 -07:00
window.eaglercraftOpts = {
container: "game_frame", assetsURI: "assets.epk", serverWorkerURI: "worker_bootstrap.js", worldsFolder: "TEST",
servers: [ { serverName: "Local Test Server", serverAddress: "localhost:25565", hideAddress: false } ],
mainMenu: { splashes: [
"Darviglet!", "eaglerenophile!", "You Eagler!", "Yeeeeeee!", "yeee",
"EEEEEEEEE!", "You Darvig!", "You Vigg!", ":>", "|>", "You Yumpster!"
]}};
(function(){
var q = window.location.search;
if(typeof q === 'string' && q.startsWith("?")) {
q = new URLSearchParams(q);
var s = q.get("server");
2022-07-31 02:03:22 -07:00
if(s) window.eaglercraftOpts.joinServer = s;
}
})();
main();
});}
2020-09-01 17:52:13 -07:00
</script>
</head>
<body style="margin:0px;width:100vw;height:100vh;" id="game_frame">
</body>
2022-07-18 08:07:59 -07:00
</html>