forked from TGRHavoc/live_map-interface
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
189 lines (148 loc) · 10.1 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
177
178
179
180
181
182
183
184
185
186
187
188
189
<!--
// ************************************************************************** //
// LiveMap Interface - The web interface for the livemap
// Copyright (C) 2017 Jordan Dalton
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
// ************************************************************************** //
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Havoc's Live map</title>
<!-- Pin favicon from: https://www.freefavicon.com/freefavicons/objects/iconinfo/map-pin-152-195874.html -->
<link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABILAAASCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP74zAv++Mwn/vjMMf74zDH++Mwm//jMCQAAAAAAAAAAAAAAAAAAAAA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QCggDEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDMgAEgjIAc4MyAOCDMgD+gzIA/oEyANyCMgBqgDEAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+MAACgTIAFn4xABV/MQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+B8AAPgfAAD+fwAA/D8AAPw/AADwDwAA4AcAAOAHAADABwAAwAMAAMADAADABwAA4AcAAOAHAADwDwAA/D8AAA==" rel="icon" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link type="text/css" rel="stylesheet" href="dist/stylesheet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>
<script src="dist/first-bundle.js"></script>
</head>
<body>
<nav class="navbar navbar-dark navbar-expand-md">
<!-- At some point, I'll add more stuff here. For the time being, it'll just be the site logo -->
<div class="container">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="https://github.com/TGRHavoc/">
<img src="https://avatars1.githubusercontent.com/u/1770893?s=460&v=4" style="max-height: 30px" >
Live Map v<span id="livemap_version">2.0.0</span>
</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<!-- Servers -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Select a server
</a>
<div id="server_menu" class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
</div>
</li>
<li class="nav-item">
<a class="nav-link" role="button" id="sidebarTooggle" data-toggle="collapse" data-target="#sidebar" aria-controls="sidebar" aria-label="Toggle sidebar" aria-expanded="false">
Hide/Show Controls
</a>
</li>
<li class="nav-item">
<a class="nav-link" role="button" id="blipToggle" data-toggle="collapse" data-target="#blip-filter-dropdown" aria-controls="blip-filter-dropdown" aria-label="Toggle blip controls" aria-expanded="false">
Blip controls
</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="wrapper" class="container-fluid">
<div id="control-wrapper" >
<div id="sidebar" class="custom-menu col-md-4 col-sm-3 col-xs-6 float-left collapse">
<div class="list-group border-0 card text-center text-md-left" style="padding: 8px 0;">
<a class="nav-header">Controls</a>
<a class="list-group-item d-inline-block collapsed" id="refreshBlips" href="#">
<span class="d-md-inline">Refresh Blips</span>
</a>
<a id="showBlips" href="#" class="list-group-item d-inline-block collapsed">
<span class="d-md-inline">Show Blips</span>
<span id="blips_enabled" class="badge badge-pill badge-success pull-right">on</span>
</a>
<!--
<li>
<a id="toggleLive" href="#">Live update <span id="live_enabled" class="badge badge-danger pull-right">off</span></a>
</li>
-->
<a id="reconnect" href="#" class="list-group-item d-inline-block collapsed">
<span class="d-md-inline">Connect</span>
<span id="connection" class="badge badge-pill badge-danger pull-right">disconnected</span>
</a>
<a class="list-group-item d-inline-block collapsed">
<span class="d-md-inline">Track Player</span>
<select id="playerSelect" class="input-large form-control pull-right">
<option></option>
</select>
</a>
<a class="list-group-item d-inline-block collapsed">
<span class="d-md-inline">Filter</span>
<select id="filterOn" class="input-large form-control pull-right">
<option></option>
</select>
<input type="text" id="onlyShow" class="input-large form-control pull-right" />
</a>
</div>
<div class="list-group border-0 card text-center text-md-left" >
<a class="nav-header">Information</a>
<a class="list-group-item d-inline-block collapsed">Currently viewing:
<p id="server_name" style="white-space: normal; color: #17A2B8">
</p>
</a>
<a class="list-group-item d-inline-block collapsed">Blips loaded
<span id="blip_count" class="badge badge-pill badge-info pull-right">0</span>
</a>
<a class="list-group-item d-inline-block collapsed">Online players
<span id="player_count" class="badge badge-pill badge-info pull-right">0</span>
</a>
</div>
<div class="list-group border-0 card text-center text-md-left" style="margin-top: 10px;">
<p style="text-align: center;">This was originaly created by <a href="https://github.com/TGRHavoc">Havoc</a></p>
</div>
</div>
<div id="blip-filter-dropdown" class="custom-menu col-sm-0 col-xs-0 col-md-12 collapse">
<div class="list-group border-0 card text-center text-md-left" style="padding: 8px 0;">
<a class="nav-header">Blip Controls <small id="toggle-all-blips" class="btn btn-sm btn-info">Toggle all</small></a>
<div id="blip-control-container" class="row">
</div>
</div>
</div>
</div>
<main id="map-holder" class="col-12 main" >
<div id="map-canvas" style="position: relative; overflow: hidden; background-color: rgb(15, 168, 210);"></div>
</main>
</div>
<script src="dist/last-bundle.js"></script>
<script>
var greenIcon = L.icon({
iconUrl: 'images/icons/debug.png',
iconSize: [23, 32], // size of the icon
iconAnchor: [23, 32/2], // point of the icon which will correspond to marker's location
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
});
var normalIcon = L.icon({
iconUrl: 'images/icons/normal.png',
iconSize: [23, 32], // size of the icon
iconAnchor: [23, 32/2], // point of the icon which will correspond to marker's location
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
});
</script>
</body>
</html>