-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (54 loc) · 1.71 KB
/
index.html
File metadata and controls
66 lines (54 loc) · 1.71 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
<!DOCTYPE html>
<html>
<head>
<title>主世界地图 - Nekocraft</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<style type="text/css">
html, body, #map_canvas {
margin: 0;
padding: 0;
height: 100%;
}
</style>
<script type="text/javascript" src="gm.js"></script>
<script type="text/javascript" src="unmined.options.js"></script>
<script type="text/javascript" src="unmined.js"></script>
<script type="text/javascript">
function initialize()
{
setTimeout( function () {
var map = new google.maps.Map(document.getElementById("map_canvas"), unminedDefaultOptions);
map.mapTypes.set('unmined', unminedMapType);
map.setMapTypeId('unmined');
map.addListener("drag", function(){
var point = UnminedProjection.prototype.fromPointToMinecraft(unminedMapType.projection.fromLatLngToPoint(map.center));
location.hash = ~~point.x + " 64 " + ~~point.y;
});
}, 200 );
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map_canvas"></div>
<div style="
background: rgb(255, 0, 204);
width: 1px;
height: 11px;
position: fixed;
left: 50%;
top: 50%;
margin-top: -5px;
"></div>
<div style="
background: rgb(255, 0, 204);
width: 11px;
height: 1px;
position: fixed;
left: 50%;
top: 50%;
margin-left: -5px;
"></div>
</body>
</html>