forked from soyMC/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (34 loc) · 1.27 KB
/
index.html
File metadata and controls
34 lines (34 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<title>client</title>
<link rel="shortcut icon" type="image/png" href="./favicon.png">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:locale" content="en-US" />
<meta property="og:type" content="website" />
<script type="text/javascript" src="classes.js"></script>
<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(){
window.minecraftOpts = [
"game_frame","assets.epk",
"CgAACQAHc2VydmVycwoAAAACCAACaXAAKHdzczovL21jc2VydmVyNS5za3l2aWV3bWMucmVwbC5jby9zZXJ2ZXIIAARuYW1lAAZWUFMtTUMBAAtoaWRlQWRkcmVzcwAAAQALaGlkZUFkZHJlc3MBCAACaXAAEzczLjI0MC4xOTEuMTUzOjgwODAIAARuYW1lAAVzb3lNQwAA"
];
(function(){
var q = window.location.search;
if(typeof q === 'string' && q.startsWith("?")) {
q = new URLSearchParams(q);
var s = q.get("server");
if(s) window.minecraftOpts.push(s);
}
})();
main();
});}
</script>
</head>
<body style="margin:0px;width:100vw;height:100vh;" id="game_frame">
</body>
</html>