File size: 4,467 Bytes
aedd7e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html>

<head>
	<title>Precision Client (1.5.2-beta_0.2)</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="//precisionclient.vercel.app" property="og:url" />
	<!--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 src="/js/ga4.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="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",

						servers: [

						],

						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>