2022-01-19 08:48:00 +01:00
<!DOCTYPE html>
2020-09-02 02:52:13 +02:00
< html >
< head >
< title > eagler< / title >
2022-07-22 00:46:43 +02:00
< meta charset = "UTF-8" / >
2022-07-17 07:02:55 +02:00
< script type = "text/javascript" src = "eagswebrtc.js" > < / script >
2022-07-18 17:07:59 +02:00
< script type = "text/javascript" src = "classes.js" > < / script >
2020-09-02 02:52:13 +02:00
< script type = "text/javascript" >
2022-04-10 08:06:43 +02:00
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 {
2022-04-01 05:03:46 +02:00
window.addEventListener("load", function(){
2022-07-31 11:03:22 +02: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!"
]}};
2022-04-01 05:03:46 +02:00
(function(){
var q = window.location.search;
if(typeof q === 'string' & & q.startsWith("?")) {
q = new URLSearchParams(q);
var s = q.get("server");
2022-07-31 11:03:22 +02:00
if(s) window.eaglercraftOpts.joinServer = s;
2022-04-01 05:03:46 +02:00
}
})();
main();
2022-04-10 08:06:43 +02:00
});}
2020-09-02 02:52:13 +02:00
< / script >
< / head >
< body style = "margin:0px;width:100vw;height:100vh;" id = "game_frame" >
< / body >
2022-07-18 17:07:59 +02:00
< / html >