forked from bradystroud/christmas-card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
322 lines (300 loc) · 15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Penny's Christmas Card 🎅🏼</title>
<meta name="description"
content="Penny's Christmas Card - A unique, eco-friendly, and shareable Christmas greeting. Wishing you joy and happiness this festive season.">
<meta property="og:title" content="Penny's Christmas Card 🎅🏼" />
<meta property="og:description"
content="Penny's Christmas Card - A unique, eco-friendly, and shareable Christmas greeting. Wishing you joy and happiness this festive season." />
<meta property="og:image" content="/apple-icon-180x180.png" />
<meta property="og:url" content="https://thankspenny.com" />
<link rel="stylesheet" href="style.css" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans">
</head>
<body>
<div class="card-container">
<h1>Merry Christmas Penny!</h1>
<p class="message">
As enterprise software engineers, we've opted for a unique Christmas card approach.
</p>
<p class="message">
Instead of a traditional paper card, we built you a website:
</p>
<ul class="message">
<li>Eco-friendly, no trees harmed.</li>
<li>Permanently accessible URL.</li>
<li>Shareable with friends.</li>
</ul>
<p class="message">
Wishing you joy and happiness this festive season. Have a wonderful Christmas!
</p>
<!-- Colleagues can add their CSS drawings here -->
<div class="card-container colleague-message">
<div class="tree mw-harlem_shake_me im_first">
<div class="tree-top"></div>
<div class="tree-middle"></div>
<div class="tree-bottom"></div>
<div class="tree-trunk"></div>
</div>
<p>Sorry for trying to burn things</p>
<strong>- Brady</strong>
</div>
<div class="card-container">
<div class="colleague-messages">
<div class="moustache"></div>
<div class="text">
<div class="name">Penworth Walker</div>
<div class="title">The best in class manager</div>
<p>- Sam Wagner</p>
</div>
</div>
</div>
<div class="card-container" style="height: 150px">
<div class="colleague-messages" style="position: relative; height: 100%">
<div id="light" class="card"></div>
<div id="start" style="top: 50%; left: 50%; position: absolute">
<img src="images/start.png" />
<p>there will be some music</p>
<p>- Luke P</p>
</div>
<div id="center" class="card">
<div id="shadow"></div>
<div id="scene">
<div id="back">
<div id="mount-center"></div>
<div id="mount-right">
<div id="ski-right-light"></div>
<div class="lift">
<div class="lift-cabin one"></div>
<div class="lift-cabin two"></div>
<div class="lift-cabin three"></div>
</div>
<div class="skier"></div>
</div>
<div id="mount-left">
<div id="ski-left-light"></div>
<div class="lift">
<div class="lift-cabin one"></div>
<div class="lift-cabin two"></div>
<div class="lift-cabin three"></div>
</div>
<div class="skier"></div>
</div>
</div>
<div id="middle">
<div class="windows light"></div>
<div class="windows dark"></div>
</div>
<div id="front">
<div id="lamps-back">
<div id="lamps-light-back"></div>
</div>
<div id="lamps-front">
<div id="lamps-light-front"></div>
</div>
</div>
<div id="tree">
<div id="decorations2"></div>
<div id="decorations3"></div>
<div id="decorations5"></div>
<div id="decorations4"></div>
<div id="decorations1"></div>
<div id="congrats1"></div>
<div id="congrats2"></div>
<div id="congrats3"></div>
</div>
<div class="people" id="one"></div>
<div class="people" id="two"></div>
<div class="people" id="three"></div>
<div class="people" id="four"></div>
<div class="people" id="five"></div>
<div class="people" id="six"></div>
<div class="people" id="seven"></div>
<div id="rink-front"></div>
<audio>
<source src="music/christmas.ogg" type="audio/ogg" />
<source src="music/christmas.mp3" type="audio/mpeg" />
<source src="music/christmas.wav" type="audio/wav" />
</audio>
</div>
</div>
<div class="card">
<div id="general-light"></div>
<div class="flake small slow pos20 delay"></div>
<div class="flake medium fast pos25 delay"></div>
<div class="flake small avarage pos40 delay"></div>
<div class="flake large fast pos50 delay"></div>
<div class="flake small avarage pos70 delay"></div>
<div class="flake medium slow pos80 delay"></div>
<div class="flake small avarage pos20 delay1200"></div>
<div class="flake large avarage pos40 delay1200"></div>
<div class="flake small slow pos45 delay1200"></div>
<div class="flake medium avarage pos60 delay1200"></div>
<div class="flake medium avarage pos70 delay1200"></div>
<div class="flake large avarage pos80 delay1200"></div>
<div class="flake medium avarage pos20 delay2400"></div>
<div class="flake small slow pos40 delay2400"></div>
<div class="flake medium avarage pos50 delay2400"></div>
<div class="flake small slow pos55 delay2400"></div>
<div class="flake medium avarage pos70 delay2400"></div>
<div class="flake large slow pos80 delay2400"></div>
<div class="flake medium slow pos25 delay2400"></div>
<div class="flake small slow pos40 delay1200"></div>
<div class="flake large slow pos50 delay1200"></div>
<div class="flake small slow pos70 delay1200"></div>
<div class="flake medium slow pos80 delay1200"></div>
<a id="replay" title="Replay card again"></a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
<script src="index.js"></script>
<script src="index-js.js"></script>
<link rel="stylesheet" href="index-luke.css" />
</div>
</div>
<div class="card-container">
<div class="colleague-messages">
<img src="./images/gigachad.jpg" style="width: 100%" alt="The best SSW Account Manager" />
<div class="text">
<div class="title">
Depicted - The coolest SSW Account manager Penny
</div>
<p>- Kapa</p>
</div>
</div>
</div>
<div class="card-container">
<div class="colleague-messages">
<img src="./images/merry-xmas.png" style="width: 100%" />
<div class="text">
<div class="title">
Thanks Penny for all support and guidance this year. We would be a
bunch of headless chickens without you!
</div>
<p>- Dan Mackay</p>
</div>
</div>
</div>
<div class="card-container">
<div style="text-align: center;">
<img src="./images/real-image-of-penny-1.webp" style="width: 100%;" />
</div>
<div style="display: flex;">
<div style="flex: 1;">
<img src="./images/real-image-of-penny-2.webp" style="width: 100%;" />
</div>
<div style="flex: 1;">
<img src="./images/real-image-of-penny-3.webp" style="width: 100%;" />
</div>
</div>
<p style="text-align: center; margin-top: 15px;">
I asked "Who is Penny Walker? Answer it as an image" in various AIs and this is what I got. I think AI believes
you are an amazing person. 😊
</p>
<p>- JK</p>
</div>
<div class="card-container">
<div class="colleague-messages">
<img src="https://media0.giphy.com/media/QU4NtmDuacALh9BClj/giphy.gif?cid=6c09b9527qul6g8njsuvzhgwv3jtpw2njilkackcpvr2vwhh&ep=v1_internal_gif_by_id&rid=giphy.gif&ct=g"
style="width: 100%" alt="Penny is the man" />
<div class="text">
<div class="title">
Penny you're the man!! Brisbane wouldn't be half as awesome as it is without you ♥
</div>
<p>- JD</p>
</div>
</div>
</div>
<div class="card-container">
<div class="colleague-messages">
<div class="hatcontainer">
<div class="hat">
<div class="hat__top"></div>
</div>
</div>
<div class="text">
<div class="title">
Thanks for everything this year Penny!
</div>
<p>- Jack R</p>
</div>
</div>
</div>
<div class="card-container">
<div class="art-container">
<div class="circle"></div>
<div class="square"></div>
<div class="triangle"></div>
</div>
<div style="font-weight: 600; font-size: large; margin-top: 1rem">
Happy Birthday Penny!!! - Matt
</div>
</div>
</div>
<div class="card-container">
<div class="colleague-messages">
<img src="./images/Penny_As_A_Rock.jpg" style="width: 100%" alt="Penny is the man" />
<div class="text">
<div class="title">
Thank you for being the Rock! Steady, unbreakable, always there when people need you and as this picture shows, able to balance all the stuff you do - You're Amazing.
</div>
<p>🎄 Happy Holidays - Andrew 🎄</p>
</div>
</div>
</div>
<div class="colleague-messages">
<!-- Example: <p class="colleague-message">Happy Holidays! - Jane</p> -->
</div>
<p>Made with ❤️ by <strong>Brady Stroud</strong></p>
<a href="https://github.com/bradystroud/christmas-card">Contribute</a>
<button id="theBoom"
style="position: fixed;bottom:30px;left:20px;background-color: #cc4141;color:#f5f5f5;font-size:30px;border:2px solid #333;"
onclick="clickedMe()">
CLICK ME!
</button>
<script>
let itsOn = false;
function clickedMe() {
if (itsOn) {
return;
}
itsOn = true;
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
var element = document.getElementById("theBoom");
var parent = element.parentNode;
parent.removeChild(element);
setTimeout(function () {
element.innerText = "Thanks - Gordon";
parent.appendChild(element);
}, 3000);
setTimeout(function () {
element.innerText = "CLICK ME!";
itsOn = false;
}, 30000);
setTimeout(function () {
window.scrollTo({ top: 10000, left: 0, behavior: 'smooth' });
}, 20000);
(function () { function c() { var e = document.createElement("link"); e.setAttribute("type", "text/css"); e.setAttribute("rel", "stylesheet"); e.setAttribute("href", f); e.setAttribute("class", l); document.body.appendChild(e) } function h() { var e = document.getElementsByClassName(l); for (var t = 0; t < e.length; t++) { document.body.removeChild(e[t]) } } function p() { var e = document.createElement("div"); e.setAttribute("class", a); document.body.appendChild(e); setTimeout(function () { document.body.removeChild(e) }, 100) } function d(e) { return { height: e.offsetHeight, width: e.offsetWidth } } function v(i) { var s = d(i); return s.height > e && s.height < n && s.width > t && s.width < r } function m(e) { var t = e; var n = 0; while (!!t) { n += t.offsetTop; t = t.offsetParent } return n } function g() { var e = document.documentElement; if (!!window.innerWidth) { return window.innerHeight } else if (e && !isNaN(e.clientHeight)) { return e.clientHeight } return 0 } function y() { if (window.pageYOffset) { return window.pageYOffset } return Math.max(document.documentElement.scrollTop, document.body.scrollTop) } function E(e) { var t = m(e); return t >= w && t <= b + w } function S() { var e = document.createElement("audio"); e.setAttribute("class", l); e.src = i; e.loop = false; e.addEventListener("canplay", function () { setTimeout(function () { x(k) }, 500); setTimeout(function () { N(); p(); for (var e = 0; e < O.length; e++) { T(O[e]) } }, 15500) }, true); e.addEventListener("ended", function () { N(); h() }, true); e.innerHTML = " <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>"; document.body.appendChild(e); e.play() } function x(e) { e.className += " " + s + " " + o } function T(e) { e.className += " " + s + " " + u[Math.floor(Math.random() * u.length)] } function N() { var e = document.getElementsByClassName(s); var t = new RegExp("\\b" + s + "\\b"); for (var n = 0; n < e.length;) { e[n].className = e[n].className.replace(t, "") } } var e = 30; var t = 30; var n = 350; var r = 350; var i = "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3"; var s = "mw-harlem_shake_me"; var o = "im_first"; var u = ["im_drunk", "im_baked", "im_trippin", "im_blown"]; var a = "mw-strobe_light"; var f = "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css"; var l = "mw_added_css"; var b = g(); var w = y(); var C = document.getElementsByTagName("*"); var k = null; for (var L = 0; L < C.length; L++) { var A = C[L]; if (v(A)) { if (E(A)) { k = A; break } } } if (A === null) { console.warn("Could not find a node of the right size. Please try a different page."); return } c(); S(); var O = []; for (var L = 0; L < C.length; L++) { var A = C[L]; if (v(A)) { O.push(A) } } })();
}
</script>
</body>
</html>