-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
212 lines (197 loc) · 9.88 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
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>MyTown</title>
<link href="//twitter.github.com/bootstrap/assets/css/bootstrap.css" media="all" rel="stylesheet" type="text/css"/>
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery.ui.core.css" media="all" rel="stylesheet" type="text/css"/>
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery.ui.autocomplete.css" media="all" rel="stylesheet" type="text/css"/>
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/ui-lightness/jquery-ui.css" media="all" rel="stylesheet" type="text/css"/>
<link rel="stylesheet/less" type="text/css" href="styles/main.less" />
<link href='http://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.3.3/less.min.js" type="text/javascript"></script>
<script src="//www.parsecdn.com/js/parse-1.2.1.js"></script>
<script src="js/go2.js"></script>
<script src="js/parse.js"></script>
<script src="js/goog.js"></script>
<script src="js/main.js"></script>
<script src="js/jquery.tagsinput.js"></script>
<script src="js/jquery.joyride-2.0.1.js"></script>
<script src="//maps.googleapis.com/maps/api/js?key=AIzaSyDVr7hka_Jl20VLLjkKE4MlldVThYVxASk&libraries=places&sensor=false" type="text/javascript"></script>
<script src="js/googlemaps.richmarker.js" type="text/javascript"></script>
<script src="js/data_migration.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
</head>
<body>
<div id="app">
<div class="content">
</div>
</div>
<!-- Templates -->
<script type="text/template" id="main-template">
<header>
<a href="/">
My Spots
</a>
<h1>What to Eat and See in
<span class="location fillInTheBlank">
</span>
according to
<span class="userFirstName fillInTheBlank">
</span>
</h1>
<div class="userCorner">
<img id="userPhoto" src="" alt="user photo" class="img-rounded" onerror="imgError(this);"/>
<input id="signOut" type="button" value="Sign Out" class="btn"/>
</div>
</header>
<div id="mainContent">
<table class="columns">
<tr>
<td colspan="2">
<!-- <input id="searchMySpots" name="searchMySpots" type="text" placeholder="Search my Spots..."/>-->
<div id="tagsContainer">
<label>
Filter by Tag:
</label>
<div id="tags" class="tagsinput"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class="mySpots"></div>
<input id="addSpot" type="button" value="Add" class="btn"/>
<input id="searchTextField" name="search" type="text" placeholder="Search for a restaurant, park, etc..."/>
</td>
<td>
<div id="map_canvas"></div>
</td>
</tr>
</table>
<div id="editSpotFormDiv" role="dialog" class="modal hide fade">
<form id="editSpotForm">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Edit Spot</h3>
</div>
<div class="formContents">
<input name="name" placeholder="Name" type="text" value=""/><br/>
<input name="tags" placeholder="Tags (food, outdoor, touristy, etc)" type="text" value=""/><br/>
<textarea name="notes" placeholder="Notes"></textarea><br/>
<input name="website" placeholder="Website URL" type="text" value=""/><br/>
<input name="yelp" placeholder="Yelp URL" type="text" value=""/><br/>
<input name="menu" placeholder="Menu URL" type="text" value=""/><br/>
<input name="icon" placeholder="Icon URL" type="text" value=""/><br/>
<label for="been_there" class="checkbox">
<input id="been_there" name="been_there" type="checkbox" /> Been there?
</label><br/>
<label for="would_go_again" class="checkbox">
<input id="would_go_again" name="would_go_again" type="checkbox" /> Would go again?
</label>
</div>
<div class="modal-footer">
<input name="id" type="hidden" value=""/>
<input name="save" type="submit" value="Save" class="btn"/>
</div>
</form>
</div>
</div>
</script>
<script type="text/template" id="intro-template">
<div id="landingPage">
<div class="translucent">
<h1>
<div>
Your Favorite Spots.
</div>
<div>
Organized.
</div>
</h1>
<div>
<a id="federatedSignupLogin" href="#" class="zocial google">Sign in with Google</a>
</div>
</div>
</div>
</script>
<script type="text/template" id="get-started-template">
<div id="get-started">
<div class="nameAndMapCenterStep">
<h1>
Welcome!
</h1>
<div>
To get started, we just need to know:
</div>
<div>
What is your first name? <input name="firstName" type="text" placeholder="First Name" id="firstName"/>
(This will appear in the title of your map.)
</div>
<div>
Where should the center of your map be? <input id="homeLocationSearch" name="location" type="text" placeholder="City, State"/>
(You can use your home address or just your town.)
</div>
<input type="button" value="Continue" class="btn"/>
</div>
<div class="locationNameStep">
<div>
Great! We'll use this as the label for your location: <input name="locationName" type="text" value="" id="mapCenterLocationName"/>
<!-- You can always change these settings by clicking Settings.-->
</div>
<input type="button" value="Create My Map" class="btn" id="createMyMap"/>
</div>
</div>
</script>
</body>
</html>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39175408-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!--
-----------------------------------------
TODO:
signup /login flow
dismissable Joyride Tour
logged-out page (http://www.shopify.com/, https://munchery.com/)
add footer with Contact
-----------------------------------------
-----------------------------------------
-----------------------------------------
-----------------------------------------
-----------------------------------------
searching
try to guess Yelp link and ratings?
map popup should hide on map move or click
archive Spot
map moving changes results (optionally)
pagination of Spots
site name
-----------------------------------------
use OpenId (and/or facebook login?)
fix color of tagsinput placeholder
fix centering of Edit Form
delete Tag that is no longer associated with any Spot
minify/obscure js
figure out optimal js loading (Require JS?)
figure out anonymous js func wrappers
archive entire Tag
how to make money
rename entire Tag
unarchive stuff
allow account deletion
clicking map should enable me to add a Spot there
-->