scratchmasterj21/minecraft
1
1<!DOCTYPE html>2<html style="width:100%;height:100%;background-color:black;">3 <head>4 <meta charset="UTF-8" />5 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />6 <meta name="description" content="Play minecraft 1.8 in your browser" />7 <meta name="keywords" content="eaglercraft, eaglercraftx, minecraft, 1.8, 1.8.8" />8 <title>Minecraft 1.8</title>9 <meta property="og:locale" content="en-US" />10 <meta property="og:type" content="website" />11 <meta property="og:title" content="Minecraft 1.8" />12 <meta property="og:description" content="Play minecraft 1.8 in your browser" />13 <meta property="og:image" content="favicon.ico" />14 <link type="image/png" rel="shortcut icon" href="favicon.ico" />15 <script type="text/javascript" src="classes.js"></script>16 <script type="text/javascript">17 "use strict";18 window.addEventListener("load", function() {19 if(window.location.href.indexOf("file:") === 0) {20 alert("HTTP please, do not open this file locally, run a local HTTP server and load it via HTTP");21 }else {22 23 // %%%%%%%%% launch options %%%%%%%%%%%%24 25 var relayId = Math.floor(Math.random() * 3);26 window.eaglercraftXOpts = {27 demoMode: false,28 container: "game_frame",29 assetsURI: "assets.epk",30 localesURI: "lang/",31 worldsDB: "worlds",32 servers: [33 /* example: { addr: "ws://localhost:8081/", name: "Local test server" } */34 ],35 relays: [36 { addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 },37 { addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId == 1 },38 { addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId == 2 }39 ]40 };41 42 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%43 44 var q = window.location.search;45 if((typeof q === "string") && q[0] === "?" && (typeof window.URLSearchParams !== "undefined")) {46 q = new window.URLSearchParams(q);47 var s = q.get("server");48 if(s) window.eaglercraftXOpts.joinServer = s;49 }50 51 main();52 53 }54 });55 </script>56 </head>57 <body style="margin:0px;width:100%;height:100%;overflow:hidden;background-color:black;" id="game_frame">58 </body>59</html>