-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathindex.html
executable file
·203 lines (172 loc) · 6.86 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<!--
To customize this page for your own data, open fusiontable_settings.js and follow instructions.
You should not have to touch this file.
-->
<html>
<head>
<meta name="generator" content="HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 15.10), see www.w3.org">
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="apple-touch-icon.png"/>
<link rel="icon" type="image/png" href="favicon.ico"/>
<title>Mobile Fusion Table</title>
<!-- if updating jQueryMobile, please see MOBILE-FUSION-TABLES comments in current version -->
<link rel="stylesheet" href="source/jquery.mobile-1.3.1.modified.min.css" type="text/css"/>
<script type="text/javascript" src="source/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="source/jquery.mobile-1.3.1.modified.min.js"></script> <!-- this must come after jquery -->
<script type="text/javascript" src="source/jquery.address.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?v=3.16.4&sensor=false&libraries=places,geometry"></script>
<script type="text/javascript" src="source/maps_lib.js"></script>
<script type="text/javascript" src="fusiontable_settings.js"></script>
<style type="text/css">
.infobox-container {
overflow:hidden;
position:relative;
font-weight:normal;
overflow:auto;
}
.infobox-default {
display:inline;
font-family: Arial, Helvetica, Geneva, sans-serif;
white-space:normal;
}
/* using hr as spacer between search fields */
hr {
display: block; height: 8px;
border: 0; margin: 0; padding: 0;
}
#map_content {
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#map_canvas {
padding: 0;
text-shadow: none;
}
#black {
background-color: #000;
}
/* custom icons */
.ui-icon-location {
background-image: url(source/images/icons-18-white-location.png);
background-repeat: no-repeat;
}
</style>
</head>
<body id="black">
<!-- Home -->
<div data-role="page" id="page-map">
<div data-theme="a" data-role="header">
<!-- About button -->
<a id="about" data-role="button" href=
"#page-about" data-icon="info" data-iconpos="left" class=
"ui-btn-left">About</a>
<!-- Search button -->
<a data-role="button" id="search_page"
href="#page-search" data-icon=
"search" data-iconpos="right" class="ui-btn-right">Search</a>
<h3><span id="titlebar"> </span></h3>
</div>
<!-- Bounds Exceeded popup message -->
<div data-role="popup" id="popupDialog" data-overlay-theme="a" data-theme="c"
style="max-width:400px;" class="ui-corner-all">
<div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
<p id="alertMessageText"></p>
<a href="#page-map" id="alertMessageClose" data-role="button">OK</a>
</div>
</div>
<!-- The Map -->
<div data-role="content" id="map_content" style="">
<div id="map_canvas" style=
"position:absolute;top:42px;bottom:42px;left:0px;right:0px;">
</div>
</div>
<!-- Nearby button -->
<div data-theme="a" data-role="footer" data-position="fixed"
style="height:42px">
<a id="nearby" data-role="button" href="#nearby" data-icon=
"location" data-iconpos="left" class="ui-btn-left">
<span id="nearby-name">Nearby</span></a>
<!-- List button -->
<a data-role="button" href="#page-list" data-icon="bars" id=
"list_button" data-iconpos="right"
class="ui-btn-right">List</a>
</div>
</div>
<!-- About view -->
<div data-role="page" id="page-about">
<div data-theme="a" data-role="header">
<a data-role="button" data-icon="arrow-l" data-iconpos=
"left" href="#page-map" class="ui-btn-left" id="about_back">Back</a>
<h3>About</h3>
</div>
<div data-role="content" id="section-about">
</div>
</div>
<!-- List view -->
<div data-role="page" id="page-list">
<div data-theme="a" data-role="header">
<a data-role="button" href="#page-map"
data-icon="arrow-l" data-iconpos="left" class=
"ui-btn-left" id="list_back">Back</a>
<h3>List</h3>
</div>
<div data-role="content">
<ul data-role="listview" id="listview" data-divider-theme=""
data-inset="false">
<li data-theme="c">Loading results...</li>
</ul>
</div>
</div>
<!-- Search dialog -->
<div data-role="page" id="page-search">
<div data-theme="a" data-role="header">
<a data-role="button" href="#page-map"
data-icon="arrow-l" data-iconpos="left" class=
"ui-btn-left" id="search_back">Back</a>
<a data-role="button" href="#page-map"
data-icon="arrow-r" data-iconpos="right" class=
"ui-btn-right" id="search_top">Search</a>
<h3>Search</h3>
</div>
<div data-role="content">
<div id="section-search" data-role="fieldcontain"></div>
<button class="btn" id="search_reset" data-theme="r">Reset Fields</button>
<button class="btn" id="search" data-theme="b">Search</button>
</div>
</div>
<script type="text/javascript">
$(function() {
MapsLib.initialize();
$("#about").click(function() { MapsLib.onExitMap(); });
$("#search_page").click(function() { MapsLib.onExitMap(); });
$("#list_button").click(function(){
MapsLib.onExitMap();
MapsLib.getListView();
});
$("#about_back").click(function() { MapsLib.onEnterMap(); });
$("#search_back").click(function() { MapsLib.onEnterMap(); });
$("#list_back").click(function() { MapsLib.onEnterMap(); });
$("#search").click(function(){
MapsLib.onEnterMap();
MapsLib.doSearch();
});
$("#search_top").click(function(){
MapsLib.onEnterMap();
MapsLib.doSearch();
});
$("#search_reset").click(function(){
MapsLib.resetSearch();
});
window.addEventListener('popstate', function(e) {
MapsLib.onPopState();
});
});
</script>
</body>
</html>