-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
80 lines (80 loc) · 2.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Civcraft 3.0 Maps</title>
<link rel="icon" href="favicon.ico" />
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-83718107-1', 'auto');ga('send', 'pageview');</script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<style type="text/css">
body, .full, .map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
position: fixed;
background-image: url(/img/void.png);
background-color: #000;
}
.leaflet-container {
background: none;
}
.center-outer {
display: table;
position: absolute;
height: 100%;
width: 100%;
}
.center-middle {
display: table-cell;
vertical-align: middle;
}
.center-inner {
margin-left: auto;
margin-right: auto;
width: 400px;
}
.message {
max-width: 400px;
margin: auto;
padding: 1em;
color: #fff;
background-color: rgba(0,0,0, .5);
text-align: center;
}
.leaflet-tile {
image-rendering: pixelated;
}
.control-box {
margin: 10px;
padding: .5em .5em;
border-radius: 4px;
background-color: rgba(255,255,255, .95);
}
.coords-display {
position: absolute;
left: 36px;
padding: .5em 1em;
}
</style>
</head>
<body>
<div id="civmap" class="full">
<div class="message">
<h1>Loading...</h1>
<p>
Give it a minute to load for the first time,<br />
this map is still in development<br />
and not optimized at all.
</p>
<p>
Not loading?
<a href="https://reddit.com/r/CivCraft">visit the subreddit</a>
</p>
</div>
</div>
<script src="bundle.js"></script>
</body>
</html>