-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathindex.html
130 lines (119 loc) · 5.62 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NoPixel Territory Map</title>
<link rel="icon" href="icons/favicon.ico"/>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="fontawesome/css/font-awesome.css">
<link rel="stylesheet" href="style.css">
<script src="js/libs/jquery-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="js/libs/underscore-min.js"></script>
<script src="js/libs/backbone-min.js"></script>
<script src="js/libs/handlebars.js"></script>
<script src="//maps.googleapis.com/maps/api/js?v=3.exp&key="></script>
<script src="js/libs/maplabel-compiled.js"></script>
<script src="js/app.js"></script>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
</head>
<body>
<header>
<p class="left" style="padding-top: 5px;">
<a href="">NoPixel Territory Map</a>
</p>
<ul class="right">
<div class="dropdown">
<a href="https://github.com/skyrossm/np-gangmap/graphs/contributors" target="_blank"><button class="btn btn-primary">Contributors</button></a>
<button class="btn btn-primary" id="toggleruler" onclick="toggleRuler();$(this).css('display', 'none');">Add Distance Ruler</button>
<button class="btn btn-primary" id="createzone" onclick="printArray()">Add New Region</button>
<button class="btn btn-secondary dropdown-toggle" type="button" id="ddmenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Select Map Type
</button>
<div class="dropdown-menu" aria-labelledby="ddmenu">
<a href="#" id="Atlas" class="dropdown-item active" onclick="$('#' + map.getMapTypeId()).removeClass('active'); map.setMapTypeId('Atlas'); $(this).addClass('active');">Atlas</a>
<a href="#" id="Satellite" class="dropdown-item" onclick="$('#' + map.getMapTypeId()).removeClass('active'); map.setMapTypeId('Satellite'); $(this).addClass('active');">Satellite</a>
<a href="#" id="Road" class="dropdown-item" onclick="$('#' + map.getMapTypeId()).removeClass('active'); map.setMapTypeId('Road'); $(this).addClass('active');">Road</a>
</div>
</div>
</ul>
</header>
<div id="map" style="background:rgb(43, 164, 210);"></div>
<script type="x/template" id="sectionTemplate">
{{#each sections as | section |}}
<section class="type">
<h3>{{name}}</h3>
<ul>
{{#each categories}}
<li><label><input type="checkbox" {{#if enabled}}checked{{/if}} value="{{name}}" data-section="{{section.name}}"> <img src="icons/{{icon}}"> {{name}}</label> <a href="#" class="details" data-section="{{section.name}}" data-name="{{name}}"><i class="icon-chevron-sign-right"></i></a></li>
{{/each}}
{{#ifEquals name "General"}}
<li><label><input type="checkbox" {{#if enabled}}checked{{/if}} value="labels"> <img src="icons/General/wall-breach.png"> Labels</label> <a href="#" class="details" data-name="Labels"></a></li>
{{/ifEquals}}
</ul>
</section>
{{/each}}
</script>
<script type="x/template" id="categoryDetailsTemplate">
<section class="type">
<h3><a href="#" class="back details"><i class="icon-chevron-sign-left"></i></a> {{category}}</h3>
<ul class="listview">
{{#with this as | root |}}
{{#each locations}}
<li data-section="{{root.section}}" data-name="{{root.category}}"><div style="height:20px;width:20px;background-color:#{{fillcolor}};border: 3px solid #{{strokecolor}}; display:inline-block;margin-right:10px;"></div><label>{{title}}</label></li>
{{/each}}
{{/with}}
</ul>
</section>
</script>
<script type="x/template" id="markerPopupTemplate2">
<div id="info-window" style="max-width:420px;">
<div class="scrollable">
<span class="header">
<h3>{{title}}</h3>
</span>
<div id="info-body">
{{#if notes}}
<br>
<p class="notes">{{notes}}</p>
{{/if}}
{{#if video}}
<div class="video-{{id}}">
<br>
<h4>Video</h4>
<div class="youtubewrapper">
<iframe width="100%" src="//www.youtube.com/embed/{{video.yt_id}}?theme=light&autoplay=0&autohide=1&iv_load_policy=3&rel=0&showinfo=0&loop=1{{#if video.start}}&start={{timestampToSeconds video.start}}{{/if}}{{#if video.end}}&end={{timestampToSeconds video.end}}{{/if}}" frameborder="0" allowfullscreen></iframe>
</div>
{{#if video.yt_user_link}}
<p>
<a href="//www.youtube.com/{{video.yt_user_link}}" style="color:#222;font-size:.8em;float:right;" target="_blank">
Video by {{video.yt_user_display}}
</a>
</p>
{{/if}}
</div>
{{/if}}
{{#if images}}
<br>
<h4>Images</h4>
{{/if}}
{{#each images}}
<div class="image-{{id}}">
<span>{{headline}}</span>
<img src="{{url}}" class="image-{{id}}">
</div>
<br>
{{/each}}
{{#if wiki_link}}
<hr>
<a target="_blank" href="{{wiki_link}}">See {{title}} on the NoPixel Wiki</a>
{{/if}}
</div>
</div>
</div>
</script>
<div id="typeDetails" class="types"></div>
<div id="types" class="types"></div>
</body>
</html>