-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
161 lines (155 loc) · 6.44 KB
/
index.html
File metadata and controls
161 lines (155 loc) · 6.44 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<title>Meaglercraft</title>
<meta charset="UTF-8" />
<meta content="Precision Client is a custom eaglercraft client with QOL features, custom texture packs, and more."
name="description" />
<meta content="//precisionclient.vercel.app" name="url" />
<meta content="EtcherFX" name="author" />
<meta content="Precision Client" property="og:title" />
<meta content="en-US" property="og:locale" />
<meta content="website" property="og:type" />
<meta content="https://precisionclient.vercel.app" property="og:url" />
<meta property="og:image" content="favicon.png" />
<link type="image/png" rel="shortcut icon" href="favicon.png" />
<!--meta content="IMAGE" property="og:image"/>-->
<meta content="Precision Client is a custom eaglercraft client with QOL features, custom texture packs, and more."
property="og:description" />
<script type="text/javascript" src="eagswebrtc.js"></script>
<script type="text/javascript" src="classes.js"></script>
<script async src="https://arc.io/widget.min.js#pchPqjfw"></script>
<style>
@font-face {
font-family: "Product Sans";
src: url(ProductSans.ttf);
}
</style>
</head>
<body style="margin: 0; width: 100vw; height: 100vh; font-family:
'Product Sans'" id="game_frame" class="gameframe">
<div id="Selection"
style="display: inline-block; position: absolute; top:50%; left: 50%; transform: translate(-50%, -50%)">
<style>
html {
color: #fff;
}
.starter {
border-radius: 5px;
border: 1px solid #fff;
background-color: #0d0c0c;
color: #fff;
}
.dropdown {
position: relative;
display: inline-block;
border-radius: 5px;
border: 1px solid #fff;
background-color: #0d0c0c;
color: #fff;
}
.gameframe {
background-image: url("bg.png");
background-size: cover;
background-repeat: no-repeat;
}
</style>
<h1>Precision Client</h1>
<h3>Select a texture pack:</h3>
<select id="Packs" class="dropdown">
<option>-- Choose one --</option>
<option value="defaultold">Default Old</option>
<option value="defaultnew">Default 1.17+</option>
<option value="bombies">Bombies 180k</option>
<option value="bones">Bare Bones</option>
<option value="modifiednew">Modified 1.17+</option>
<option value="miamiprivate">Miami Private</option>
<option value="nebula">Nebula</option>
<option value="rhedd">Rhedd</option>
<option value="ricefault">Ricefault</option>
<option value="tightfault">Tightfault</option>
<option value="walifault">Walifault</option>
</select>
<br /><br />
<input class="starter" type="button" value="Launch" onclick="Start();" />
</div>
<script type="text/javascript">
if (document.location.href.startsWith("file:")) {
alert("You cannot 'open' this file in your browser, the code doesn't work. Upload this folder to your HTTP(s) server and access it via the internet to launch the stable-download game. This is not a bug, please read the documentation.");
} else {
var PackSelect = document.getElementById("Packs");
function Start() {
if (PackSelect.selectedIndex !== 0) {
var Selected = PackSelect.options[PackSelect.selectedIndex].value;
document.getElementById("Selection").style.display = "none";
localStorage.LastPack = Selected;
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftOpts = {
container: "game_frame",
assetsURI: `packs/${Selected}.epk`,
serverWorkerURI: "worker_bootstrap.js",
worldsFolder: "MAIN",
assetOverrides: {
"records/wait.mp3": "wait.mp3",
"records/mellohi.mp3": "https://stream.nightride.fm/chillsynth.m4a",
"records/far.mp3": "https://stream.nightride.fm/nightride.m4a",
"records/cat.mp3": "http://usa9.fastcast4u.com/proxy/jamz?mp=/1",
"records/ward.mp3": "http://fr4.1mix.co.uk:8000/192h",
"records/strad.mp3": "http://listen.011fm.com:8028/stream15",
"records/blocks.mp3": "https://www.ophanim.net:8444/s/9780",
"records/13.mp3": "https://s2.radio.co/s2b2b68744/listen",
//"records/ward.mp3": wardUrl,
"credits.txt": "assetoverrides/credits.txt",
"precision/gui.png": "assetoverrides/precision/gui.png",
"precision/gui2.png": "assetoverrides/precision/gui2.png",
"precision/guismall.png": "assetoverrides/precision/guismall.png",
"precision/logo.png": "assetoverrides/precision/logo.png",
"precision/precision.png": "assetoverrides/precision/precision.png",
"precision/precision2.png": "assetoverrides/precision/precision2.png",
"lang/en_US.lang": "assetoverrides/lang/en_US.lang",
"gui/demo_bg.png": "assetoverrides/gui/demo_bg.png",
"title/bg/panorama0.png": "assetoverrides/title/bg/panorama0.png",
"title/bg/panorama1.png": "assetoverrides/title/bg/panorama1.png",
"title/bg/panorama2.png": "assetoverrides/title/bg/panorama2.png",
"title/bg/panorama3.png": "assetoverrides/title/bg/panorama3.png",
"title/bg/panorama4.png": "assetoverrides/title/bg/panorama4.png",
"title/bg/panorama5.png": "assetoverrides/title/bg/panorama5.png"
},
servers: [
{ serverName: "VanillaCraft", serverAddress: "wss://play.vanillacraftsmp.org/", hideAddress: true },
{ serverName: "ArchMC", serverAddress: "wss://web.arch.lol/join", hideAddress: true },
{ serverName: "Ayunboom", serverAddress: "wss://sus.shhnowisnottheti.me", hideAddress: true },
{ serverName: "MercuryMC", serverAddress: "wss://mercurymc.net", hideAddress: true },
{ serverName: "SMP343", serverAddress: "wss://smp.malcolmharkness.repl.co/server", hideAddress: true }
],
relays: [
{ addr: "wss://relay.deev.is/", name: "lax1dude relay #1", primary: relayId == 0 },
{ addr: "wss://relay.lax1dude.net/", name: "lax1dude relay #2", primary: relayId == 1 },
{ addr: "wss://relay.shhnowisnottheti.me/", name: "ayunami relay #1", primary: relayId == 2 }
],
mainMenu: {
splashes: [], eaglerLogo: false
}
};
(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();
} else
alert("You need to select a pack");
}
}
if (localStorage.LastPack)
for (Pack of PackSelect.children)
if (Pack.value === localStorage.LastPack) {
Pack.selected = "selected";
break;
}
</script>
</body>
</html>