-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html - Copy.orig
302 lines (277 loc) · 12.1 KB
/
index.html - Copy.orig
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>JayData vs. Leafleft vs. Foundation 4</title>
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/general_foundicons.css" />
<link rel="stylesheet" href="css/style.css" />
<link href="awesomefont/css/font-awesome.css" rel="stylesheet" />
<link href="leafletjs/leaflet.css" rel="stylesheet" />
<link href="leafletjs/leaflet.awesome-markers.css" rel="stylesheet" />
<link href="leafletjs/cluster.css" rel="stylesheet" />
<script src="js/vendor/custom.modernizr.js"></script>
</head>
<body>
<div id="row-full" class="row row-full">
</div>
<script id="mainTemplate" type="text/x-jsrender">
<div class="large-3 three columns left-column">
<form>
<div class="row">
<div class="large-12 columns box-padding-medium">
<div class="row collapse">
<div class="small-12 columns relative">
<i class="general foundicon-search absolute"></i>
<input type="text" id="searchInput" class="input-search" data-link="query" placeholder="Search here...">
<div class="abs-right color-gray">{^{> items.length}}</div>
</div>
</div>
<div class="row collapse relative">
<div id="wrapper" class="iscroll-wrapper">
<div id="scroller" class="iscroll-scroller">
<div id="listcontainer">
{{include tmpl="#poiListTemplate"/}}
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="large-9 columns reset-padding relative box-shadow">
<i class="gen-enclosed foundicon-location toggle-map show-for-small" onclick="toggleMap()"></i>
<div id="map" class="map"></div>
</div>
<div class="box-padding-high box-white right-panel hidden box-shadow">
<i class="foundicon-remove absolute button medium" onclick="hideRightPanel();"></i>
<div id="wrapper-right" class="iscroll-wrapper">
<div id="scroller-right" class="iscroll-scroller">
<div id="poiEditor">
{{include tmpl="#poiEditorTemplate"/}}
</div>
</div>
</div>
</div>
{{include tmpl="#addNewDialogTemplate"/}}
</script>
<div id="login" class="reveal-modal small">
<div id="row">
<h3>Editing requires authentication</h3>
<div class="large-4 columns">
<a href="#" onclick="doLogin('facebook');">Facebook</a>
</div>
<div class="large-4 columns">
<a href="#" onclick="doLogin('google');">Google</a>
</div>
<div class="large-4 columns">
<a href="#" onclick="closeLoginPopup()">Cancel</a>
</div>
</div>
</div>
<script id="addNewDialogTemplate" type="text/x-jsrender">
<div id="addNewPoint" class="reveal-modal medium" style="z-index:1000">
<div class="row">
<div class="large-12 columns">
<h1 class="hide-for-small">Add a new point</h1>
<h3 class="show-for-small">Add point</h3>
</div>
</div>
<div class="row">
{^{for selectedPoint}}
<div class="large-4 columns" data-bind="with: poi">
<label>Name </label>
<input type="text" placeholder="Name of place" data-link="record.name"/>
</div>
{{/for}}
<div class="large-5 columns">
{^{for newAddress tmpl="#selectAddressTemplate" /}}
</div>
<div class="large-5 columns">
</div>
</div>
<div class="row">
<div class="large-3 columns">
<a href="#" class="button prefix ok-command">OK</a>
</div>
<div class="large-3 columns">
<a href="#" class="button prefix neutral cancel-command">Cancel</a>
</div>
<div class="large-6 columns">
</div>
</div>
</div>
</script>
<script id="selectAddressTemplate" type="text/x-jsrender">
<label>Address</label>
<input type="text" readonly placeholder="Name of place" data-link="Address.FormattedAddress"/>
</script>
<script type="text/x-jsrender" id="poiTemplate">
<li data-link="css-background-color{:~bgColor(~app.selectedPoint)}" >
{^{> record.name}}
{^{if ~app.selectedPoint === #data}}
<a href="#" class="edit-command button small" style="float:right">Edit</a>
{{/if}}
</li>
</script>
<script type="text/x-jsrender" id="poiListTemplate">
<ul id="list" class="main-list">
{^{for items tmpl="#poiTemplate" /}}
</ul>
</script>
<script type="text/x-jsrender" id="popupTemplate">
<div >
<div class="popup-bubble">{^{> record.name}}</div>
</div>
</script>
<script type="text/x-jsrender" id="poiEditorTemplate">
{^{if selectedPoint}}
{^{for selectedPoint}}
<form>
<fieldset>
<legend>Title</legend>
<div class="row">
<div class="large-12 columns">
<input type="text" class="input-edit" placeholder="Name your point" data-link="record.name">
</div>
</div>
</fieldset>
<fieldset>
<legend>Taxonomy</legend>
<div class="row">
<div class="large-6 columns">
<label>Category</label>
<input type="text" data-link="record.cat" placeholder="Category">
</div>
<div class="large-6 columns">
<label>SubCat</label>
<input type="text" data-link="record.subcat" placeholder="Subcategory">
</div>
</div>
<div class="row">
<div class="large-12 columns">
<label>Type</label>
<input type="text" data-link="record.type" placeholder="Type">
</div>
</div>
</fieldset>
<fieldset>
<legend>Address</legend>
<div class="row">
<div class="large-6 columns">
<label>Address</label>
<input type="text" data-link="record.addr" placeholder="Street address">
</div>
<div class="large-6 columns">
<label>Phone</label>
<input type="text" data-link="record.phone" placeholder="large-4.columns">
</div>
</div>
<div class="row">
<div class="large-4 columns">
<label>ZIP/Postal</label>
<input type="text" data-link="record.postal" placeholder="large-4.columns">
</div>
<div class="large-4 columns">
<label>City</label>
<input type="text" data-link="record.city" placeholder="large-4.columns">
</div>
<div class="large-4 columns">
<label>Country</label>
<input type="text" data-link="record.country" placeholder="large-4.columns">
</div>
</div>
</fieldset>
<fieldset>
<legend>Location</legend>
<div class="row">
<div class="small-6 columns">
<label>Latitude</label>
<input type="text" data-link="record.lat" placeholder="small-9.columns">
</div>
<div class="small-6 columns">
<label>Longitude</label>
<input type="text" data-link="record.lon" placeholder="small-9.columns">
</div>
</div>
</fieldset>
<div class="row">
{^{if save}}
<div class="large-6 columns">
<a href="#" class="button prefix save-command">Save</a>
</div>
{{/if}}
{^{if isNew}}
<div class="large-6 columns">
<a href="#" class="button prefix alert cancel-command">Cancel</a>
</div>
{{else}}
<div class="large-6 columns">
<a href="#" class="button prefix alert remove-command">Remove</a>
</div>
{{/if}}
</div>
</form>
{{/for}}
{{/if}}
</script>
<script src="js/vendor/jquery2b3.js"></script>
<!--<script src="js/vendor/jquery.js"></script>-->
<<<<<<< HEAD
<script src="js/vendor/jsrender.js"></script>
<script src="js/vendor/jquery.observable.js"></script>
<script src="js/vendor/jquery.views.js"></script>
<script src="js/jaydata/datajs-1.0.3-patched.js"></script>
<script src="js/jaydata/jaydata.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/vendor/iscroll.js"></script>
<link href="leafletjs/leaflet.css" rel="stylesheet" /><!--!!!-->
<link href="leafletjs/leaflet.awesome-markers.css" rel="stylesheet" />
<link href="leafletjs/cluster.css" rel="stylesheet" />
<script src="leafletjs/leaflet-src.js"></script><!--!!!-->
<script src="leafletjs/leaflet.awesome-markers.js"></script>
<script src="leafletjs/BingLayer.js"></script>
<script src="leafletjs/cluster.js"></script>
<script src="http://dev-open.jaystack.net/a11d6738-0e23-4e04-957b-f14e149a9de8/1162e5ee-49ca-4afd-87be-4e17c491140b/socket.io/socket.io.js"></script>
<script src="js/ui.js"></script>
<script src="js/hello.min.js"></script>
<script src="js/auth.js"></script>
<script src="TraceLayer.js"></script>
<script src="js/app.js"></script>
<script>
$(document).foundation().foundation('reveal', {
closeOnBackgroundClick: false
});
=======
<script src="js/vendor/jsrender.js"></script>
<script src="js/vendor/jquery.observable.js"></script>
<script src="js/vendor/jquery.views.js"></script>
<script src="js/jaydata/datajs-1.0.3-patched.js"></script>
<script src="js/jaydata/jaydata.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/vendor/iscroll.js"></script>
<script src="leafletjs/leaflet.js"></script>
<script src="leafletjs/leaflet.awesome-markers.js"></script>
<script src="leafletjs/BingLayer.js"></script>
<script src="leafletjs/cluster.js"></script>
<script src="http://dev-open.jaystack.net/a11d6738-0e23-4e04-957b-f14e149a9de8/1162e5ee-49ca-4afd-87be-4e17c491140b/socket.io/socket.io.js"></script>
>>>>>>> 0d364a6b95fe9b33635b40ac820f8e6e806852e2
<script src="js/ui.js"></script>
<script src="js/hello.min.js"></script>
<script src="js/auth.js"></script>
<script src="js/app.js"></script>
<script>
$(document).foundation().foundation('reveal', {
closeOnBackgroundClick: false
});
</script>
</body>
</html>