This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (109 loc) · 3.15 KB
/
index.html
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
<html>
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
http-equiv="content-type"
content="text/html; charset=utf-8"
lang="en"
/>
<meta content="EMC Breadcrumb" property="og:title" />
<meta
content="Trace your player movement on EarthMC's Map!"
property="og:description"
/>
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
<meta property="og:type" content="website" />
<meta name="twitter:title" content="EMC Breadcrumb" />
<meta
name="twitter:description"
content="Trace your player movement on EarthMC's Map!"
/>
<link rel="stylesheet" href="css/main.css" />
<script src="js/leaflet.js"></script>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<script
type="text/javascript"
src="https://code.jquery.com/jquery-latest.js"
></script>
<title>EMC Breadcrumb</title>
</head>
<body>
<div id="map">
<div id="IGN">
<span id="title">Please input your IGN</span
><br /><input type="text" id="name" name="name" /><button
id="OK"
onclick="start()"
>
OK
</button>
</div>
<div id="status"></div>
<div id="speed"></div>
</div>
<script>
var emcmap = L.map("map", {
crs: L.CRS.Simple,
}).setView([0, 0], -3);
// EMC background tiles
L.tileLayer(
"https://earthmc.net/map/aurora/standalone/MySQL_tiles.php?tile=earth/flat/0_0/zzzzz_{x1}_{y1}.png",
{
maxZoom: -4,
minZoom: -4,
tileSize: 128,
}
).addTo(emcmap);
L.tileLayer(
"https://earthmc.net/map/aurora/standalone/MySQL_tiles.php?tile=earth/flat/0_0/zzzz_{x2}_{y2}.png",
{
maxZoom: -3,
minZoom: -3,
tileSize: 128,
}
).addTo(emcmap);
L.tileLayer(
"https://earthmc.net/map/aurora/standalone/MySQL_tiles.php?tile=earth/flat/0_0/zzz_{x3}_{y3}.png",
{
maxZoom: -2,
minZoom: -2,
tileSize: 128,
}
).addTo(emcmap);
L.tileLayer(
"https://earthmc.net/map/aurora/standalone/MySQL_tiles.php?tile=earth/flat/0_0/zz_{x4}_{y4}.png",
{
maxZoom: -1,
minZoom: -1,
tileSize: 128,
}
).addTo(emcmap);
L.tileLayer(
"https://earthmc.net/map/aurora/standalone/MySQL_tiles.php?tile=earth/flat/0_0/z_{x5}_{y5}.png",
{
maxZoom: 0,
minZoom: 0,
tileSize: 128,
}
).addTo(emcmap);
L.tileLayer(
"https://earthmc.net/map/aurora/standalone/MySQL_tiles.php?tile=earth/flat/0_0/{x}_{y6}.png",
{
maxZoom: 2,
maxNativeZoom: 1,
minZoom: 1,
tileSize: 128,
}
).addTo(emcmap);
</script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>