forked from innermost-labs/Out-to-Dinner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex2.html
executable file
·207 lines (156 loc) · 7.17 KB
/
index2.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
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>Out to Dinner - Sign up!</title>
<link rel="stylesheet" type="text/css" href="src/css/reset.css" />
<link rel="stylesheet" type="text/css" href="src/css/main.css" />
<link rel="stylesheet" type="text/css" href="src/css/text.css" />
<link rel="stylesheet" type="text/css" href="src/css/footer.css" />
<link rel="stylesheet" type="text/css" href="src/css/map.css" />
<script type="text/javascript" src="lib/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="lib/jquery.cookie.js"></script>
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCeZsLgeVOHiLdy-NZzbaXhgz6ew731SZc&sensor=false">
</script>
<script type="text/javascript" src="src/js/helper.js"></script>
<script type="text/javascript" src="src/js/callbacks.js"></script>
<script type="text/javascript" src="src/js/apihelper.js"></script>
<script type="text/javascript" src="src/js/maphelper.js"></script>
<script type="text/javascript" src="src/js/mapadmin.js"></script>
</head>
<body>
<div id="messages"></div>
<section id="outter-grad" class="cf">
<section id="radial-grad" class="cf">
<a href="http://www.outtodinner.org/"><img src="http://www.outtodinner.org/img/out-to-dinner.png" id="logo"></a>
<section id="main-content">
<div id="email_reg">
<form id="email_reg_form">
<input id='firstfield' required name="First"
placeholder="First name" style="width:49%;float:left" type="text" />
<input id='lastnamefield' style="width:49%;float:right" required name="Last"
placeholder="Last name" type="text" />
<input id='zipcodefield' required name="Zipcode"
placeholder="Zip code" type="text" />
<input id='emailfield'required name="Email" placeholder="Email" type="email"/>
<br>
<div id="buttons">
<section style="padding-top:10px;float:left;width:50%; text-align:left">
<input id='lgbtbox' name="lgbt_ally" type="radio" value="lgbt"/>
<label for="lgbtbox" style="font-size:14px">I am an LGBT person who will recruit a host.</label><br />
<input id='allybox' name="lgbt_ally" type="radio" value="ally" />
<label for="allybox" style="font-size:14px">I am a straight ally who will host a dinner.</label>
</section>
<section id="signup" style="float:right;width:50%" class="button button2">
<img src="src/img/signon.png" width="101" alt="submit" name="submit" value="submit" />
</section>
</div>
</form>
</div>
<div id="thanks" style="display:none">
<h1>Thank you!</h1>
<section id="next-steps">
<h2>Here are three next steps:</h2>
<ul>
<li><span>1</span> Add the date to your <a id="calendar"
href="event/otdevent.ics">calendar</a>—now!</li>
<li><span>2</span> Respond to your confirmation e-mail</li>
<li><span>3</span> Share this with your friends and family</li>
</ul>
</section>
<p>This project is only going to succeed with the courage and support of
people like you.<br />
Thank you so much for pledging to be part of the event.</p>
<p>This is going to be a great night, and I’m thrilled you’re going to be
a part of it.</p>
<p id="signature">-Zach Wahls</p>
</div>
<div id="dashboard" style="display:none">
</div>
<div id="map_canvas">
</div>
</section>
</section>
</section>
<section id="socials">
<section id="social-grid">
<section class="soc fb">
<div id="fb-root"></div>
<script type="text/javascript">(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=138581072906968";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="box_count" data-width="52" data-show-faces="true"></div>
</section>
<section class="soc twit">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://outtodinner.org/" data-text="Out To Dinner" data-count="vertical">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</section>
<section class="soc plus">
<g:plusone size="tall"></g:plusone>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</section>
</section>
</section>
<section id="footer" class="cf">
<p id="footnav"><a href="" style="padding-left:0;">Sign Up</a>|<a
href="mailto:[email protected]">Contact</a>|<a
href="http://outtodinner.org/otd_statement.pdf">About</a></p>
<p id="footcopy">© Copyright 2012 Out To Dinner</p>
</section>
<script type="text/javascript"> <!-- must go after the form HTML -->
$('#signup').click(function() {
$('#email_reg_form').submit();
});
$('#email_reg_form input[type=submit]').click(function(event) {
event.preventDefaults();
return false;
});
$('#email_reg_form').submit(function(event) {
event.preventDefault();
var first = $(this).find("input[name=First]")[0].value
, last = $(this).find("input[name=Last]")[0].value
, email = $(this).find("input[name=Email]")[0].value
, zip = $(this).find("input[name=Zipcode]")[0].value
, lgbt = $(this).find("input[name=lgbt_ally]")[0].checked
, ally = $(this).find("input[name=lgbt_ally]")[1].checked
, refer = getUrlParameter("r");
if( lgbt == false && ally == false) { flashMessage("Please choose a role.", null); return false; }
registerUser({email:email, first:first, last:last, zip:zip, lgbt:lgbt, ally:ally, refer:refer});
return false;
});
$('#volunteer input').click(function(event) {
event.preventDefault();
return false;
});
$('.button3').click(function() {
volunteerUserAs(this.name, this.value);
});
</script>
<script type="text/javascript">
var myObjectId
, mySessToken;
// App runtime js goes here
$(document).ready(function() {
var userParam = getUrlParameter("u")
if(userParam.length > 0){
$('#email_reg').hide();
$('#thanks').hide();
$('#dashboard').show();
makeMap();
}
});
</script>
</body>
</html>