forked from FIRSTMap/firstmap.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
181 lines (162 loc) · 7.79 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FIRSTMap</title>
<base target="_blank">
<meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/build.css">
<link rel="stylesheet" href="css/style.css">
<!-- Favicon stuff -->
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
<link rel="manifest" href="/icons/site.webmanifest">
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="msapplication-config" content="/icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- End favicon stuff -->
</head>
<body>
<div id="map"></div>
<div id="toggles">
<div onclick="toggleAbout()" class="tooltipped tooltipped-sw" aria-label="[Shift] View help and credits">?</div>
<div onclick="toggleSearch()" class="tooltipped tooltipped-sw" aria-label="[S] Open Search/Filter Menu">S</div>
<div onclick="toggleMarkers('team')" class="tooltipped tooltipped-sw" aria-label="[T] Toggle Team Markers">T</div>
<div onclick="toggleMarkers('district')" class="tooltipped tooltipped-sw" aria-label="[D] Toggle District Markers">D</div>
<div onclick="toggleMarkers('regional')" class="tooltipped tooltipped-sw" aria-label="[R] Toggle Regional Markers">R</div>
<div onclick="toggleMarkers('offseason')" class="tooltipped tooltipped-sw" aria-label="[O] Toggle Offseason & Preseason Markers">O</div>
<div onclick="toggleMarkers('championship')" class="tooltipped tooltipped-sw" aria-label="[C] Toggle Championship Markers">C</div>
<div onclick="toggleMapFullscreen()" id="fullscreen-controls" class="tooltipped tooltipped-sw" aria-label="[F] Toggle Fullscreen"> </div>
</div>
<div id="about">
<h2 class="stripe">About</h2>
<h3>Controls</h3>
<table id="controls">
<tbody>
<tr>
<td>T</td>
<td>Toggle Teams<img src="img/team.png"></td>
</tr>
<tr>
<td>D</td>
<td>Toggle District Events <img src="img/district.png"></td>
</tr>
<tr>
<td>R</td>
<td>Toggle Regional Events <img src="img/regional.png"></td>
</tr>
<tr>
<td>O</td>
<td>Toggle Offseason & Preseason Events <img src="img/offseason.png"></td>
</tr>
<tr>
<td>C</td>
<td>Toggle Championship Events <img src="img/championship.png"></td>
</tr>
<tr>
<td>S</td>
<td>Open Search/Filter Menu</td>
</tr>
<tr>
<td>?</td>
<td>View Help and Credits</td>
</tr>
<tr>
<td>+/-</td>
<td>Zoom into/out of map at window center</td>
</tr>
<tr>
<td>Scroll</td>
<td>Zoom into/out of map at mouse location</td>
</tr>
</tbody>
</table>
<div id="toggle-logos">
<div class="on" onclick="toggleLogos()">
<p class="main"><span id="logos-off">Enable</span><span id="logos-on">Disable</span> Custom Team Logos?</p>
<p class="sub">(Reloads Page)</p>
</div>
</div>
<div id="development">
<h3>Developed using:</h3>
<table id="tools">
<tbody>
<tr>
<td><a href="https://pages.github.com">GitHub Pages</a></td>
<td>Hosting</td>
</tr>
<tr>
<td><a href="https://maps.google.com">Google Maps</a></td>
<td>Map interface and some team locations</td>
</tr>
<tr>
<td><a href="https://www.thebluealliance.com">The Blue Alliance</a></td>
<td>FRC Team and competition info</td>
</tr>
<tr>
<td><a href="http://www.geonames.org">GeoNames</a></td>
<td>Team locations</td>
</tr>
</tbody>
</table>
<h3><a href="https://github.com/FIRSTMap/firstmap.github.io">View or edit FIRSTMap on GitHub!</a></h3>
</div>
</div>
<div id="search">
<h2 class="stripe">Search</h2>
<div id="search-section" hidden>
<h3>Search</h3>
<div id="team-search">
<input type="search" id="team-search-input">
<button id="search-btn">Search</button>
</div>
<div id="event-search" hidden>
<input type="search" id="event-search-input">
<ul id="event-search-list">
</ul>
</div>
<select id="search-type">
<option value="team">Team</option>
<option value="event">Event</option>
</select>
<br>
<h6 id="search-info-text"></h6>
</div>
<div id="filter-section" hidden>
<h3>Filter</h3>
<div id="team-filter">
<input type="search" id="filter-input-teams">
<button id="filter-btn">Filter</button>
</div>
<div id="event-district-filter" hidden>
<input type="search" id="filter-input-other">
<ul id="filter-input-list">
</ul>
</div>
<select id="filter-type">
<option value="team">Team</option>
<option value="event">Event</option>
<option value="district">District</option>
</select>
<br>
<button id="clear-filter-btn">Clear Filter</button>
<h6 id="filter-info-text"></h6>
<br>
<h6>
Note: toggle keys do not work in this menu (e.g., pressing 't' on the keyboard
will not toggle team marker visibility, but pressing the toggle button at the
top of the map still works).
</h6>
</div>
</div>
<script src="js/tba_getter.js"></script>
<script src="js/search.js"></script>
<script src="js/searchable_select.js"></script>
<script src="js/scripts.js"></script>
<script src="https://unpkg.com/[email protected]/dist/clipboard.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD1FQ56PS2iSZmeWE3mhUONtk9YqnAC9mg&callback=initMap" async defer></script>
</body>
</html>