-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (146 loc) · 5.82 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html/xml; charset=utf-8"/>
<title>DayzMap</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css" />
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
#map img {
max-width: none;
}
</style>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" />
</head>
<body onresize="resizeMapDiv()">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">DayzMap</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span9">
<div id="map"></div>
</div><!--/span-->
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Coords</li>
<li><span id="coordsDisplay">0 0</span></li>
</ul>
</div>
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header" id="markerFilter">
</li>
</ul>
</div>
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header" id="markerHeaderLi"><span>Markers <a href="#" id="refreshMarkers"><i class="icon-refresh"></i></a></span></li>
<li class="markerLi"><span>asdlijasoifj</span></li>
</ul>
</div><!--/.well -->
</div><!--/span-->
</div><!--/row-->
<hr>
<footer>
<p>© DayzMap 2012 brought to u by tuxBurner credits go to: MapTiler, dayzDb, and bootstrap</p>
</footer>
</div><!--/.fluid-container-->
<!-- adding marker modal -->
<div class="modal hide" id="addMarkerModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Add a marker to the map</h3>
</div>
<div class="modal-body">
<form>
<label>Name</label>
<input type="text" value="" id="addMarkerName"/>
<label>Typ</label>
<select id="addMarkerTyp">
<option value="info">Info</option>
<option value="tend">Tent</option>
<option value="playerPos">Player</option>
</select>
<label>Description</label>
<textarea id="addMarkerDescription"></textarea>
<label>Long:</label>
<input type="text" disabled id="addMarkerX" value="" />
<label>Lat:</label>
<input type="text" disabled id="addMarkerY" value="" />
<label>Directlink:</label>
<input type="text" id="directlink" >
</form>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<a href="#" id="addMarkerBtn" class="btn btn-primary">Add marker</a>
</div>
</div>
<!-- editing marker modal -->
<div class="modal hide" id="editMarkerModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Edit a marker</h3>
</div>
<div class="modal-body">
<form>
<input type="hidden" id="editMarkerId" value="" />
<label>Name</label>
<input type="text" value="" id="editMarkerName"/>
<label>Typ</label>
<select id="editMarkerTyp">
<option value="info">Info</option>
<option value="tend">Tent</option>
<option value="playerPos">Player</option>
</select>
<label>Description</label>
<textarea id="editMarkerDescription"></textarea>
</form>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<a href="#" id="editMarkerBtn" class="btn btn-warning">Edit marker</a>
</div>
</div>
<!-- deleting marker modal -->
<div class="modal hide" id="delMarkerModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Delete Marker</h3>
</div>
<div class="modal-body">
<p id="delMarkerQuestion"><p/>
<input type="hidden" id="delMarkerId" value="" />
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<a href="#" id="delMarkerBtn" class="btn btn-danger">Delete marker</a>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="dayzGmap.js"></script>
<script type="text/javascript" src="markers.js"></script>
<script type="text/javascript" src="dayzmap.js"></script>
</body>
</html>