forked from alyxb/TidePools
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
264 lines (213 loc) · 11.6 KB
/
index.php
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<html xmlns="http://www.w3.org/1999/xhtml">
<!doctype html>
<html class="no-js" lang="en">
<!--
.===. . .
| o | |
| . .-.| .-. .,-. .-. .-. | .==.
| | ( |(.-' | )( )( )| `==.
'-' `-`-'`-`=='|`-' `-' `-' `-`==' v0.2
|
'
Open Technology Institute & jrbaldwin
Contributors: Lisa J. Lovchik, Nicholas Frota
//-->
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<title>Tidepools</title>
<link rel="stylesheet" href="assets/css/style.css" type="text/css" />
<link rel="icon" href="assets/images/pound.ico" />
</head>
<body>
<div id="navframe" style="margin-top:-10px">
<div style=
"width:353; height:5; background-color:#7f275b; position: relative; top:9;"></div>
<div id="mapcontrol" style="width:353; height:51;">
<img src="assets/images/map_collection.png" style="margin-top:15" />
<div id="newmap" style=
"width: 67px; position:absolute; height: 31; top:18px; left:288px; cursor:pointer; background-image:url('assets/images/new_map.png'); z-index:1;"
value='Hide Layer' onclick="unhide('mapform');"></div>
</div>
<div id="navtop" class="unhidden"></div>
<div id="filters" style=
"width:353; height:134; background-color:#ebe1e3;top: 92;position: relative;">
<div style="padding: 6px 6px 6px 6px;">
<div style=
"position:relative; display:inline-block; margin-bottom:6px;margin-right: -9; margin-left: -1;">
<img src="assets/images/filter_landmarks.png" /></div>
<?php include "php/landmark_filters_menu.php"; ?>
<!-- NOTE: NEED TO RENAME 2 ICONS!
filter_wifi.png => filter_freewifi.png
filter_other.png => filter_somethingelse.png
// -->
</div>
</div>
<div style=
"width:353; height:5; background-color:#7f275b; top: 92; position: relative;"></div>
<!-- Buttons to select feed -->
<div id="LandmarksFeed" style=
"width:89px; height:19px; background-color:#8bc3c5; position: relative; display:inline-block; top:90px; text-align: center; cursor:pointer;"
onclick="changeFeed('landmarks');">
<p3>Landmarks</p3>
</div>
<div id="EventsFeed" style=
"width:89px; height:19px; background-color:#ebe1e3; position: relative; display:inline-block; top:90px; margin-left:-1; text-align: center; cursor:pointer;"
onclick="changeFeed('comments');">
<p3>Chat Feed</p3>
</div>
<div id="Search" style="width:89px; height:19px; background-color:#eb6699;
position:relative; display:inline-block; top:90px; margin-left:-1;
text-align: center; cursor:pointer;" onclick="unhide('searchwindow')">
<p3>Search</p3>
</div>
<div id="nav"></div>
<div id="searchwindow" style="z-index:1; position:absolute; background-color:#fff; top:311px;" class="hidden">
<form id="searchform">
<div style="padding-left: 2em; padding-top: 1em; width: 330px;">
<input type="text" name="searchTerm" maxlength = "160" style="background-color: #dbd1d3;">
<input type="button" id="searchsubmit" value="Find it!"
style="background-color: #dbd1d3;" onsubmit=
"this.searchsubmit(); return false;" /><br />
<br /><br />
<!-- TO BE RE-ADDED LATER FOR ADVANCED GEOINDEXING SEARCH
<strong>(for location) Distance units:</strong><br />
<input type="radio" name="distUnits" value="mi" checked>Miles
<input type="radio" name="distUnits" value="km">Kilometers
<br /><br /> -->
<!--starting point for location search is hard-coded for now;
later, this will be handled by the map interface -->
<!-- ClickGo 157 coordinates
<input type="hidden" name="lon" value="42.35404858146037" />
<input type="hidden" name="lat" value="-83.07889223098755" /> -->
<!-- Red Hook post office coordinates
<input type="hidden" name="lon" value="-74.001862406731" />
<input type="hidden" name="lat" value="40.674576233841" /> -->
</div>
<!-- SEARCH HELP
<div style="margin: 3ex; padding: 10px; background-color: #ffff99;
width: 18em;">
<strong>Example searches:</strong><br />
Name: school, health, library, initiative, Brooklyn<br />
Type: busstop, library, police, postoffice, event, garden, flowers1, tree<br />
Description: dwight, van brunt, barbeque<br />
Distance: .3 miles, .4 kilometers
</div> -->
</form>
</div>
</div>
<div id="landmarkfeed" class="hidden"></div>
<div id="mapform" class="hidden" style="background-color:#f2edea">
<div id="formfont" style="padding-left:12; padding-right:12;">
<form id="newMap" action="php/record_map.php" method="post" onsubmit=
"this.mapsubmit();">
<div id="backbutton" style=
"position: relative; width:73px; background-image:url(assets/images/back.png); height:30px; top:7;"
onclick="unhide('mapform')"></div><br />
<p5>Create a New Map</p5><br />
<p><i>Note: All maps aggregate unless specified</i></p><img src=
"assets/images/icon_map.png" /><br />
<p>Map Name<br />
<input type="text" id="mapname" name="mapname" maxlength="50" /><br />
Theme/Description<br />
<br />
<textarea name="mapdescrip" id="mapdescrip" maxlength="300">
</textarea><br />
<input type="button" id="mapsubmit" value="Save" onsubmit=
"this.mapsubmit(); return false;" /><br />
<br />
<p5>Map Options</p5><br />
<br />
Free for All <input type="checkbox" name="openedit" value="1" /><br />
Private/Hidden <input type="checkbox" name="hidden" value="1" /><br />
Scavenger Hunt <input type="checkbox" name="scavenger" value=
"1" /><br /></p><input type="hidden" id="admin" name="admin" value="0" />
</form>
</div>
</div>
<div id="landmarkmenu" style=
"width: 170px; height: 337px; position:fixed; background-color:#e6e4ea; border-style:solid; border-color:#444d51; border:1px top:101px; left:398px; z-index:1; margin-top: 48px;"
class="unhidden">
<div style="padding: 6px 6px 6px 6px;">
<?php include "php/landmark_menu.php"; ?>
</div>
</div>
<div id="map" style="z-index:0;"></div>
<div id="navbarr" style=
"width: 434px; height: 37px; position:fixed; background-color:#7871a1; opacity: 0.85; border-style:solid; border-color:#2f5364; top:-29px; left:633px; z-index:1; margin-top: 48px; border-radius: 9;">
<div style="padding: 0px 4px 4px 4px;">
<div id="clickgo" style=
"position:relative; display:inline-block; margin-bottom:6px; opacity: 1; z-index:2; margin-top:-5px;"
value='Hide Layer' class="target"><img src="assets/images/clickgo.png" width="34" height=
"25" /></div>
<div id="A" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.349481561625495, -83.05789589881897);" class="target"><img src=
"assets/images/A.png" width="39" height="37" /></div>
<div id="B" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.349703577207784, -83.05676937103271);" class="target"><img src=
"assets/images/B.png" width="39" height="37" /></div>
<div id="C" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.34944191590328, -83.05510640144348);" class="target"><img src=
"assets/images/C.png" width="39" height="37" /></div>
<div id="AUD" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick="gotoCoordinates(42.36235320539709, -83.054478764534);"
class="target"><img src="assets/images/AUD.png" width="39" height="37" /></div>
<div id="154" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.352086230785794, -83.07842016220091);" class="target"><img src=
"assets/images/154.png" width="39" height="37" /></div>
<div id="156" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.352177412073424, -83.07647824287415);" class="target"><img src=
"assets/images/156.png" width="39" height="37" /></div>
<div id="157" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.35404858146037, -83.07889223098755);" class="target"><img src=
"assets/images/157.png" width="39" height="37" /></div>
<div id="1243" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick="gotoCoordinates(42.35659359955532, -83.0454021692276);"
class="target"><img src="assets/images/1243.png" width="39" height="37" /></div>
<div id="campus" style=
"width: 39px; height: 37px; position:relative; display:inline-block; margin-bottom:6px; cursor:pointer; opacity: 1; z-index:2;"
value='Hide Layer' onclick=
"gotoCoordinates(42.35079382091884, -83.04302036762238);" class="target"><img src=
"assets/images/campus.png" width="39" height="37" /></div>
</div>
</div>
<div id="addlandmark" style=
"width: 140px; background-repeat: no-repeat; position:absolute; height: 42px; top:18px; left:397px; background-image:url('assets/images/landmarkbutton.png'); z-index:1; cursor:pointer;"
value='Hide Layer' onclick="unhide('landmarkmenu');" class="target"></div>
<div id="trashlandmark" style=
"width: 171px; height: 337px; position:fixed; background-color:#2d3c4b; border-style:solid; top:58px; left:398px; z-index:1; opacity:0.7;"
class="hidden"><img src="assets/images/trash.png" /></div>
<div id="secretbutton" style=
"z-index:2; background-color:#fff; position:absolute; width: 8px; height:40px; top:0; margin-left:-8; cursor:pointer;"
onclick="secretLandmark()">
<div id="loadingDiv" style=
"background-image:url('assets/images/loading.gif'); position:absolute;"></div>
</div>
<script src="assets/js/resources/leaflet.js" type="text/javascript"></script>
<script src="assets/js/resources/jquery.js" type="text/javascript"></script>
<script src="assets/js/resources/jquery_ui.js" type="text/javascript"></script>
<script src="assets/js/resources/jquery_ui_timepicker.js" type="text/javascript"></script>
<!-- <script src="js/tidepoolsframeworks/APIkeys.js"></script> <!-- UNCOMMENT TO LOAD YOUR API Keys-->
<script src="assets/js/tidepoolsframeworks/global_functions.js" type="text/javascript"></script>
<script src="assets/js/tidepoolsframeworks/dragdrop.js" type="text/javascript"></script>
<script src="assets/js/tidepoolsframeworks/map_rendering.js" type="text/javascript"></script>
<script src="assets/js/tidepoolsframeworks/API_collect.js" type="text/javascript"></script>
<script src="assets/js/tidepoolsframeworks/landmark_functions.js" type="text/javascript"></script>
<script src="assets/js/tidepools.js" type="text/javascript"></script>
</body>
</html>