-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
414 lines (378 loc) · 19.5 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
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<!DOCTYPE html>
<html lang="en">
<head>
<!-- These meta tags come first. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width">
<!-- SEO Juice -->
<meta name="description" content="Katie Pollak, Greg Lamp wedding" />
<meta name="keywords" content="greg lamp, katie pollak, wedding, lamp wedding, pollak wedding, lamp pollak wedding" />
<title>KP + Greg</title>
<!-- Favicons -->
<link rel="shortcut icon" href="public/favicon.ico">
<!-- Include the CSS -->
<link href="public/dist/toolkit-minimal.css" rel="stylesheet" />
<link href="public/dist/balloons.css" rel="stylesheet" />
<link href="public/dist/custom.css" rel="stylesheet" />
</head>
<body>
<div id="non-ballons">
<div class="overlayed" style="top: 35%;"></div>
<div class="overlayed" style="top: 40%;"></div>
<div class="overlayed" style="top: 45%;"></div>
<div class="overlayed" style="top: 50%;"></div>
<div class="overlayed" style="top: 55%;"></div>
<div class="overlayed" style="top: 60%;"></div>
<div class="overlayed" style="top: 65%;"></div>
<nav class="navbar navbar-default navbar-static-top text-uppercase">
<div class="small-container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed p-x-0" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<span>KP + Greg</span>
</a>
</div>
<div class="navbar-collapse collapse" id="navbar-collapse">
<ul class="nav nav-bordered navbar-nav navbar-right">
<li class="active"><a href="../minimal/index.html">Wedding</a></li>
<li><a href="#rsvp">RSVP</a></li>
<li><a target=_blank href="https://www.zola.com/registry/thelamps?preview=true">Registry</a></li>
<li><a href="https://glamp.github.io/wedding/faq.html">FAQ</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="block block-inverse text-center block-fill-height">
<div class="block-foreground">
<h1 style="color: black;" class="block-title text-uppercase">We're Getting Married!</h1>
<h4 style="color: black;" class="text-muted"><b>December 9th, 2017 / Brooklyn / NY</b></h4>
<h4 style="color: black;" class="text-muted"><b>501 Union / 6pm </b></h4>
</div>
<div class="block-background">
<img src="public/img/luisa-rusche-2229.jpg" width="100%" />
<!-- <img src="public/img/highlights/Katie&Greg_ChristineHanPhotography-215.jpg" width="100%" /> -->
</div>
</div>
<div class="block text-center">
<div class="block-foreground">
<h1 class="block-title text-uppercase">Welcome to Brooklyn!</h1>
<h4 class="text-muted"><b>A little about us</b></h4>
<div class="container">
<p>
We met sake bombing 2nd year at UVA and spent a year together dressing up for date functions and
eating late-night chicken fingers. However the timing wasn't right and eventually went our separate ways,
Katie to a hut in West Africa and Greg to Washington D.C. and eventually New York.
</p>
<p>
While Katie was with the Peace Corps in Senegal, Greg sent her an e-mail just saying "hi" (and to ask if his mom could send a care package). They were soon pen pals, sending letters back and forth--that is, when Katie had access to the Internet! When she returned to start school at Columbia, Greg was living in Brooklyn. A <a target="_blank" href="https://www.google.com/maps/dir/382+Court+St,+Brooklyn,+NY+11231/Broadway+%26+W+171st+St,+New+York,+NY+10032/@40.7985667,-73.9892373,12.98z/data=!4m14!4m13!1m5!1m1!1s0x89c25a59bb915d6f:0x61ab156171e800f8!2m2!1d-73.9967099!2d40.681296!1m5!1m1!1s0x89c2f69e863cf125:0x1d5e54664ff1bdc1!2m2!1d-73.9391899!2d40.8432448!3e3">"same-city long distance relationship"</a> quickly became serious.
We adopted everyone's favorite dog, <a target="_blank" href="https://www.instagram.com/p/3CCTO9Db_9/?taken-by=theglamp">Lia in 2015</a>, moved to Cobble Hill,
and <a target="_blank" href="https://www.instagram.com/p/uAPdb-jb_a/?taken-by=theglamp">continued exploring new places</a> and taking <a target="_blank" href="https://www.eventbrite.com/e/laser-cutting-cut-and-etch-your-own-designs-with-our-laser-cutter-tickets-35597642507">off-the-beaten path classes</a>. We <a target="_blank" href="https://www.instagram.com/p/BK27jnNDfM9TAb2nFYHScRrA0pzLMhz-Kulumc0/?taken-by=kp402">got engaged in September 2016</a> and knew
we wanted to get married in the neighborhood where we fell in love.
</p>
<p>
We're excited to invite you all to Brooklyn to celebrate with us!
</p>
</div>
</div>
</div>
<div class="block block-inverse text-center">
<div class="block-foreground">
<h1 class="block-title text-uppercase">Weekend Activities</h1>
<div class="container">
<div>
<h3>Welcome Drinks</h3>
<p>9:30pm | Friday, December 8th</p>
<p>61 Local | 61 Bergen St, Brooklyn, NY</p>
</div>
<hr />
<div>
<h3>The Main Event</h3>
<p>6pm | Saturday, December 9th</p>
<p>501 Union | 501 Union St, Brooklyn, NY</p>
</div>
</div>
</div>
</div>
<div class="block text-center">
<h1 class="block-title">Accommodations</h1>
<h4 class="text-muted"><b>There are lots of places to stay in NYC. If you're looking to stay close to the venue, here are a few good options.</b></h4>
<div class="container-fluid">
<div class="row">
<div class="col-sm-4">
<h3><a href="http://www.marriott.com/hotels/travel/nycbk-new-york-marriott-at-the-brooklyn-bridge/">Brooklyn Bridge Marriott</a></h3>
<p class="p-x">333 Adams St, Brooklyn, NY 11201</p>
<p class="p-x">(718) 246-7000</p>
</div>
<div class="col-sm-4">
<h3><a href="http://www3.hilton.com/en/hotels/new-york/hilton-brooklyn-new-york-NYCBSHH/index.html">Brooklyn Hilton</a></h3>
<p class="p-x">140 Schermerhorn St, Brooklyn, NY 11201</p>
<p class="p-x">(718) 834-8800</p>
</div>
<div class="col-sm-4">
<h3><a href="https://www.airbnb.com/s/Gowanus--Brooklyn--NY--United-States/homes?allow_override%5B%5D=&checkin=2017-12-08&checkout=2017-12-10&ne_lat=40.69136509860313&ne_lng=-73.98318294885883&room_types%5B%5D=Entire%20home%2Fapt&search_by_map=true&sw_lat=40.67188094742533&sw_lng=-74.00249485376605&zoom=15&s_tag=FG-zwD3-">AirBnB</a></h3>
<p class="p-x">We suggest staying in Cobble Hill (where we live!), Carroll Gardens, Brooklyn Heights, Gowanus, or Park Slope.</p>
</div>
</div>
</div>
</div>
<div class="block text-center">
<div class="block-foreground">
<h1 class="block-title text-uppercase">Photos</h1>
<h4 class="text-muted"><b>Can't wait to see you in Brooklyn!</b></h4>
<div class="container-fluid">
<div id="image-gallery" class="row">
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/110.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_2564.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_2258.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/212.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_1971.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/DSC_0411.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/179.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/204.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/137.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_0406.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/205.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_2637.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/215.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/DSC_0082.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_2492.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_1192.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/221.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_0367.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/172.jpg" />
<!-- <img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/183.jpg" /> -->
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/127.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/DSC_0242.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/169.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/DSC_0184.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/DSC_0497.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_0006.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/217.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_1333.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/134.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/IMG_2026.jpg" />
<img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/219.jpg" />
<!-- <img style="height: 250px; margin: 5px; border-radius: 5px;" src="public/img/highlights/picks/226.jpg" /> -->
</div>
</div>
</div>
</div>
<div id="zola" class="block block-inverse text-center">
<div class="block-foreground">
<h1 class="block-title text-uppercase">Registry</h1>
<h4 class="text-muted">
If you'd like to give us something, you can find a wide array of gifts by clicking the button below.
</h4>
<a href="https://www.zola.com/registry/thelamps?preview=true" class="btn btn-default btn-outline btn-lg m-t">Greg and Katie's Registry</a>
</div>
</div>
</div>
<div id="balloons" class="hide">
<div class="balloon red"></div>
<div id="canvas">
</div>
<div id="score-label">
Score: <span id="score-count">0</span>
</div>
<div id="start-btn">
<span>Play</span>
</div>
<div id="pause-btn">
</div>
</div>
<!-- Include jQuery (required) and the JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="public/js/freewall.js"></script>
<script src="public/dist/toolkit.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#gform").on('submit', function(e) {
e.preventDefault();
var data = new FormData();
data.append('name', $("#your-name").val());
data.append('guest', $("#guest-name").val());
data.append('attending', $("#attending").val());
data.append('balloons', $("#balloons-score").val());
$.ajax({
url: 'https://script.google.com/macros/s/AKfycbwY77X9gabP2I0H2_RljzrgV5Mv9JScAYDs3td7UvdVvXRzWKI/exec',
data: data,
cache: false,
contentType: false,
processData: false,
type: 'POST',
success: function(data){
if (data.result=="success") {
if ($("#attending").val()=="yes") {
$("#rsvp").html("<h1>Great! We'll see you there.</h1>");
} else {
$("#rsvp").html("<h1>Bummer! Thanks for letting us know.</h1>");
}
} else {
$("#rsvp").append("<p>Whoops! Something went wrong. Mind trying that again?</p>");
}
},
error: function(data){
console.log(JSON.stringify(data));
$("#rsvp").append("<p>Whoops! Something went wrong. Mind trying that again?</p>");
}
});
return false;
});
});
var wall = new Freewall("#image-gallery");
wall.fitWidth();
$(document).scroll(function(evt) {
var nOverlayed = $('.overlayed').length;
var idx = Math.round(document.body.scrollTop / document.body.offsetHeight * nOverlayed);
$('.overlayed').css('background-color', 'white');
$('.overlayed').slice(0, idx + 1).css('background-color', '#f0ad4e');
});
function randomColor() {
var colors = [
'green',
'red',
];
return colors[Math.floor(Math.random() * colors.length)];
}
function Game(){
this.isPaused = true;
this.score = null;
this.speed = null;
this.density = null;
this.remainingLives = 5;
this.playElement = document.getElementById('start-btn');
this.scoreElement = document.getElementById('score-container');
this.livesElement = document.getElementById('lives-container');
this.canvasElement = document.getElementById('canvas');
this.timer = null;
this.startedTime = null; //time from start game
this.intervalId = null;
this.updateTime = null;
this.densityStep = null;
this.balloonsArray = null;
var thiz = this;
this.updater = function(){
thiz.updateGame();
};
}
Game.prototype.startGame = function(){
this.playElement.style.display = "none";
this.intervalId = setInterval(this.updater, this.updateTime);
};
Game.prototype.pauseGame = function(){
clearInterval(this.intervalId);
};
Game.prototype.updateScore = function(score){
this.scoreElem.innerHTML = score;
$("#balloons-score").val(score);
};
Game.prototype.updateGame = function(){
this.densityStep += this.density;
if (this.densityStep > 30 && this.balloonsArray.length > 30) {
$("#non-ballons").removeClass('hide');
$("#balloons").addClass('hide');
} else if (this.densityStep >= 1 && this.balloonsArray.length <= 30) {
for(var i = 0; i < parseInt(this.densityStep, 10); i++) {
var tempBalloon = new Balloon(0, -53, randomColor(), 'normal', 150);
tempBalloon.positionX = tempBalloon.generateRandomXPos();
var el = document.createElement('div');
el.className = 'balloon '+ tempBalloon.color;
el.style.left = tempBalloon.positionX+'px';
el.style.bottom = tempBalloon.positionY+'px';
var thiz = this;
var index = this.balloonsArray.length;
el.onclick = function(){
thiz.score += thiz.balloonsArray[index].points;
if (thiz.balloonsArray[index].color=='red') {
$("#score-label").css('color', 'yellow');
setTimeout(function() {
$("#score-label").css('color', '#fff');
}, 500);
}
thiz.updateScore(thiz.score);
this.parentNode.removeChild(el);
};
this.canvasElement.appendChild(el);
var tempObj = {};
tempObj.el = el;
tempObj.speed = tempBalloon.getRandomSpeed();
tempObj.points = tempBalloon.points;
tempObj.color = tempBalloon.color;
this.balloonsArray.push(tempObj);
}
this.densityStep = 0;
}
for(var i = 0; i < this.balloonsArray.length; i++)
{
this.balloonsArray[i].el.style.bottom = (parseInt(this.balloonsArray[i].el.style.bottom, 10)+(3+this.balloonsArray[i].speed))+'px';
}
};
Game.prototype.endGame = function(){
};
Game.prototype.initGame = function(){
this.isPaused = true;
this.score = 0;
this.speed = 0.01;
this.density = 1000/8000;
this.remainingLives = 5;
this.updateTime = 50;
this.densityStep = 1;
this.balloonsArray = [];
this.scoreElem = document.getElementById('score-count');
};
function Balloon(x, y, color, type, points){
this.positionX = x;
this.positionY = y;
this.color = color;
this.type = type;
this.points = points * (color=='red' ? 2 : 1);
}
Balloon.prototype.getRandomSpeed = function(){
return Math.floor((this.color=='red' ? 2 : 1) * Math.random() * 201)/100;
};
Balloon.prototype.generateRandomXPos = function(){
return Math.floor(Math.random() * $(document).width());
};
$('#your-name').on('change', function(e) {
var name = $(this).val();
var balloonists = [
'Pete Howard',
'Austin Ogilvie',
'Jeff Lamp',
'Francis Hayes',
'Drew Harmata',
'Charlie Pollak',
'Charles Pollak',
'John Gelb',
'Sam Hecht',
'Maria Li',
'Peter Swigert',
'Pete Swigert',
'Sam Clay',
'Colin',
'Ross',
];
if (balloonists.indexOf(name) > -1) {
giveMeBalloons()
}
});
function giveMeBalloons() {
$("#non-ballons").addClass('hide');
$("#balloons").removeClass('hide');
var a = new Game();
a.initGame();
document.getElementById('start-btn').onclick = function(){
a.startGame();
};
}
// giveMeBalloons();
</script>
</body>
</html>