-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
782 lines (704 loc) · 22.9 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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>One HTML Page Challenge - Frontmen</title>
<!-- Icons -->
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<!-- Favicon -->
<link rel="shortcut icon" href="./meta/favicon.ico" />
<!-- Apple/Safari icon -->
<link
rel="apple-touch-icon"
sizes="57x57"
href="./meta/apple-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="./meta/apple-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="./meta/apple-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="./meta/apple-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="./meta/apple-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="./meta/apple-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="./meta/apple-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="./meta/apple-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="./meta/apple-icon-180x180.png"
/>
<!-- Android Chrome -->
<link
rel="icon"
type="image/png"
sizes="192x192"
href="./meta/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./meta/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="./meta/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./meta/favicon-16x16.png"
/>
<!-- Square Windows tiles -->
<meta
name="msapplication-square70x70logo"
content="./meta/ms-icon-70x70.png"
/>
<meta
name="msapplication-square144x144logo"
content="./meta/ms-icon-144x144.png"
/>
<meta
name="msapplication-square150x150logo"
content="./meta/ms-icon-150x150.png"
/>
<meta
name="msapplication-square310x310logo"
content="./meta/ms-icon-310x310.png"
/>
<!-- Rectangular Windows tile -->
<meta
name="msapplication-wide310x150logo"
content="./meta/ms-icon-310x150.png"
/>
<!-- Web App Manifest -->
<link rel="manifest" href="./meta/site.webmanifest" />
<!-- Windows tile theme color -->
<meta name="msapplication-TileColor" content="#ff6600" />
<meta name="msapplication-TileImage" content="./meta/ms-icon-144x144.png" />
<meta name="msapplication-config" content="./meta/browserconfig.config" />
<!-- Android theme color -->
<meta name="theme-color" content="#ffffff" />
<link rel="mask-icon" href="./meta/safari-pinned-tab.svg" color="#ff6600" />
<!-- END Icons -->
<meta property="og:title" content="One HTML Page Challenge" />
<link
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"
rel="stylesheet"
/>
<meta
property="og:image"
content="https://onehtmlpagechallenge.frontmen.io/meta/promotion-image.png"
/>
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<style>
.jumbotron {
text-align: center;
background-color: #ff5900;
color: #ffffff;
}
.logo {
max-width: 70%;
filter: brightness(10);
}
.my-4 {
border-color: #fff;
}
.my-3 {
border-color: #ff5900;
}
body.bg {
padding: 2em;
background: linear-gradient(
230deg,
#ff5900 40%,
#00cccc 60%,
#201e33 80%
);
background-size: 600% 600%;
font-family: "VT323", monospace;
font-size: 1.5em;
-webkit-animation: GradientAnim 40s ease infinite;
-moz-animation: GradientAnim 40s ease infinite;
animation: GradientAnim 40s ease infinite;
}
@-webkit-keyframes GradientAnim {
0% {
background-position: 0% 90%;
}
50% {
background-position: 100% 11%;
}
100% {
background-position: 0% 90%;
}
}
@-moz-keyframes GradientAnim {
0% {
background-position: 0% 90%;
}
50% {
background-position: 100% 11%;
}
100% {
background-position: 0% 90%;
}
}
@keyframes GradientAnim {
0% {
background-position: 0% 90%;
}
50% {
background-position: 100% 11%;
}
100% {
background-position: 0% 90%;
}
}
.card-text:nth-of-type(2)::before {
display: inline-block;
content: "Supported in:";
margin-right: 0.5em;
}
.card-text {
white-space: pre-wrap;
}
.input-group {
height: 2em;
}
.input-group img {
height: 100%;
filter: invert(1);
}
.input-group-text {
display: flex;
align-items: center;
justify-content: center;
max-width: 4em;
border-color: #ff5900;
background-color: #ff5900;
}
.form-control {
height: 100%;
border-color: #ff5900;
}
.card {
border-color: #ff5900;
}
section.card {
border-color: transparent;
}
.btn.btn-success {
color: #ffffff;
background-color: hotpink;
border-color: hotpink;
}
.btn-primary {
background-color: #00cccc;
border-color: #00cccc;
position: relative;
box-shadow: -18px 0px 0px -10px #00cccc, 18px 0px 0px -10px #00cccc,
27px 0px 0px -16px #00cccc, -27px 0px 0px -16px #00cccc;
border-radius: 0;
transition: all 0.5s ease-in;
}
.btn-primary:before {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #00cccc;
left: -5px;
transition: all 0.5s ease-in;
}
.btn-primary:after {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #00cccc;
right: -5px;
transition: all 0.5s ease-in;
}
.btn-secondary {
background-color: #201e33;
border-color: #201e33;
position: relative;
box-shadow: -18px 0px 0px -10px #201e33, 18px 0px 0px -10px #201e33,
27px 0px 0px -16px #201e33, -27px 0px 0px -16px #201e33;
border-radius: 0;
transition: all 0.5s ease-in;
}
.btn-secondary:before {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #201e33;
left: -5px;
transition: all 0.5s ease-in;
}
.btn-secondary:after {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #201e33;
right: -5px;
transition: all 0.5s ease-in;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active,
.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success:active,
.btn.btn-success.active {
background-color: #201e33 !important;
border-color: #201e33 !important;
position: relative;
box-shadow: -18px 0px 0px -10px #201e33, 18px 0px 0px -10px #201e33,
27px 0px 0px -16px #201e33, -27px 0px 0px -16px #201e33;
border-radius: 0;
}
.btn-primary:hover:before,
.btn.btn-primary:focus:before,
.btn.btn-primary:active:before {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #201e33 !important;
left: -5px;
}
.btn-primary:hover:after,
.btn.btn-primary:focus:after,
.btn.btn-primary:active:after {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #201e33 !important;
right: -5px;
}
.btn.btn-secondary:hover,
.btn.btn-secondary:focus,
.btn.btn-secondary:active,
.btn.btn-secondary.active {
color: #201e33;
background-color: #ccc !important;
border-color: #ccc !important;
position: relative;
box-shadow: -18px 0px 0px -10px #ccc, 18px 0px 0px -10px #ccc,
27px 0px 0px -16px #ccc, -27px 0px 0px -16px #ccc;
border-radius: 0;
}
.btn-secondary:hover:before,
.btn.btn-secondary:focus:before,
.btn.btn-secondary:active:before {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #ccc !important;
left: -5px;
}
.btn-secondary:hover:after,
.btn.btn-secondary:focus:after,
.btn.btn-secondary:active:after {
top: 10%;
content: "";
position: absolute;
width: 10px;
height: 80%;
background-color: #ccc !important;
right: -5px;
}
.btn-toolbar {
justify-content: space-evenly;
}
.text-right {
color: white;
}
.text-right a {
color: white;
}
.text-orange {
color: #ff5900
}
article,
aside {
margin-bottom: 2em;
}
ul {
list-style: none;
}
.prizes {
display: flex;
}
.prizes .card {
max-width: 33.33%;
}
.watch {
text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
color: #fff6a9;
text-align: center;
animation: blink 12s infinite;
}
@keyframes blink {
20%,
24%,
55% {
color: #111;
text-shadow: none;
}
0%,
19%,
21%,
23%,
25%,
54%,
56%,
100% {
text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
color: #fff6a9;
}
}
@media only screen and (max-width: 600px) {
body.bg {
padding: 0;
font-size: 1em;
}
.container {
padding: 0;
}
.prizes {
flex-direction: column;
}
.prizes .card {
max-width: 100%;
justify-content: center;
align-items: center;
padding: 1em;
}
.prizes .card img {
width: 50%;
border-radius: 5px;
}
.btn-toolbar {
flex-direction: column;
}
.btn-toolbar .btn-group {
margin-bottom: 1em;
}
}
</style>
</head>
<body class="bg">
<main class="container">
<section class="card">
<div class="card-body">
<section class="jumbotron">
<header>
<img
src="./meta/one-html-page-logo.png"
alt="One Html Page Challenge"
class="logo"
/>
<hr class="my-4" />
</header>
<article>
<a href="./winners.html"><h1>The 2020 winners of the One HTML Page challenge!</h1></a>
<h2>Intro</h2>
<p>
Hey FrontPeepz! While we are still in this long and gruesome
Pandemic we thought it might be time to do something fun again.
So we came up with an awesome challenge! And with an awesome
challenge we should get an awesome prize as well. Therefore
the winner of this challenge will get an <b class="watch">Apple Watch!</b>
</p>
<p>
The goal is to create anything you want within 1 single html
file. Practice your skills with no assistance from libraries, no
separation of files, and no assistance of a modern framework.
<b>How creative can you be with such restrictions?</b>
</p>
<p>
More on the rules can be found <a href="https://github.com/FrontMen/one-html-page-challenge/blob/master/README.md#rules">here</a>!
</p>
</article>
<aside>
<a
class="btn btn-primary btn-lg"
href="https://github.com/FrontMen/one-html-page-challenge/blob/master/README.md#how-to-submit"
role="button"
>Submit an Entry</a
>
</aside>
<article>
<h2>Win!</h2>
<p>
Submit your contributions before <b>December 31st, 12p.m.</b> to
win prizes. The jury will score all submitted projects and
select a <b>winner</b>.
</p>
<h3>The Jury</h3>
<ul>
<li>Sylvia "Multi-threader" Blok</li>
<li>Matthias "Uren" de Boer</li>
<li>Jeroen "Use the (Sales)Force" Groothoff</li>
</ul>
</article>
<article>
<h3>Prizes</h3>
<p>Be lucky, and win one of the carefully selected prizes!</p>
<div class="prizes">
<div class="card" >
<img
src="./meta/apple_watch.jpg"
class="card-img-top"
alt="first prize apple watch"
/>
<div class="card-body">
<h5 class="card-title text-orange">First</h5>
<p class="card-text text-dark">Apple Watch SE, Space Gray Aluminum Case with Sport Band 40 mm</p>
</div>
</div>
<div class="card" >
<img
src="./meta/ostrich_pillow.jpg"
class="card-img-top"
alt="second prize ostrich pillow"
/>
<div class="card-body">
<h5 class="card-title text-dark">Second</h5>
<p class="card-text text-dark">Ostrich Original Napping Pillow, Immersive cozy experience</p>
</div>
</div>
<div class="card">
<img
src="./meta/coders_book.jpg"
class="card-img-top"
alt="third prize book: coders"
/>
<div class="card-body">
<h5 class="card-title text-dark">Third</h5>
<p class="card-text text-dark">Coders: Who They Are, What They Think and How They Are Changing Our World</p>
</div>
</div>
</div>
</article>
</section>
<div class="input-group flex-nowrap">
<input
type="text"
class="form-control"
placeholder="Search"
aria-label="Search"
aria-describedby="addon-wrapping"
id="search"
oninput="searchOnInput()"
/>
<div class="input-group-append">
<span class="input-group-text" id="addon-wrapping">
<img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAA0dJREFUeJzt3THLlWUcx/Gf+gRKgzWGgkIJEg7qUA3ia/AFRFNjY0NDL0CksTfQO6jJFqXZTYi0dHAWBcEGl3ganPuF13U6l3fP5wNn/HP978P5wj3cz3MnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8u2OrF1jkbJLzq5cY8DzJg9VL8P/3TZLDDX5+/C++DP7Z8dULwNtMIFAIBAqBQCEQKAQChUCgEAgUAoFCIFAIBAqBQCEQKAQCxcHqBSbcSXJucPaHJBd2uMu+XE3yeGL+SpKXO9rlSNhyIOeSfDg4+27mfmirXMr4NSfJiV0tclS4xYJCIFAIBAqBQCEQKAQChUCgEAgUAoFCIFAIBAqBQCEQKFa+/uBsks8n5t/J66dyR/yS5OeJs1f5OMkXE/PPMv4E990k9ybO5g1dy9yrAD7a/8qb9yLj3/fXC/Zdzi0WFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQCASKg4VnP0/y08T81SSXBmf/SPLbxNmrfJDk04n520lODc4+mjiXBR4nORz83Fyw7y7cyPg1HyZ5b/8rb5tbLCgEAoVAoBAIFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQrPx7kFlXkpwYnP0yyYsd7rIvt5O8PzF/P8npwdlvk3w/cfYmbTmQlxOzBxn/oax0KnNhn874dZ+cOHez3GJBIRAoBAKFQKAQCBQCgUIgUAgECoFAIRAoBAKFQKAQCBTHVi+wyCdJrq9eYsCjzL0y4quMP5X7V5Izg7NPk9wanIVN+C7jr114uGDfnXCLBYVAoBAIFAKBQiBQCAQKgUAhECgEAoVAoBAIFAKBQiBQbPmfV7NfT5P8Pjj7JMnFibOfJHk1MQ9vtYsZf1T+MMln+1/5NbdYUAgECoFAIRAoBAKFQKAQCBQCgUIgUAgECoFAIRAoBAKFQKA4qq8/YL9OJrk8Mf9rkj93tAsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADv3N1QfrvVma6YVAAAAAElFTkSuQmCC"
alt=""
/>
</span>
</div>
</div>
<div id="list"></div>
</div>
</section>
<p class="text-right">
Project inspired by
<a href="https://onehtmlpagechallenge.com" rel="nofollow"
>One HTML Page Challenge</a
>
by
<a
href="https://github.com/Metroxe/one-html-page-challenge"
rel="nofollow"
>Metroxe</a
>
</p>
</main>
<br />
<script src="./entries.js"></script>
<script>
// sort based on title
const sortedEntries = entries.sort((a, b) =>
a.title > b.title ? 1 : b.title > a.title ? -1 : 0
);
// create initial list
searchOnInput();
function searchOnInput() {
//get elements
const filter = document.getElementById("search").value.toLowerCase();
const list = document.getElementById("list");
// remove children
while (list.firstChild) {
list.removeChild(list.firstChild);
}
// filter list
const filteredEntries = sortedEntries.filter((entry) => {
let key;
for (key in entry) {
if (entry.hasOwnProperty(key)) {
const prop = entry[key];
if (
typeof prop === "string" &&
prop.toLowerCase().includes(filter)
) {
return true;
}
}
}
return false;
});
// create list
filteredEntries.forEach(
({
title,
description,
filename,
github,
author,
compatibleBrowsers,
sponsored,
}) => {
// horizontal rule
const hr = document.createElement("hr");
hr.classList.add("my-3");
list.appendChild(hr);
const card = document.createElement("div");
card.className = "card";
const body = document.createElement("div");
body.className = "card-body";
card.appendChild(body);
// title
const cardTitle = document.createElement("h5");
const cardTitleNode = document.createTextNode(title);
cardTitle.className = "card-title";
cardTitle.appendChild(cardTitleNode);
body.appendChild(cardTitle);
// author
if (author) {
const authorSubtitle = document.createElement("h6");
const authorSubtitleNode = document.createTextNode(author);
authorSubtitle.className = "card-subtitle mb-2 text-muted";
authorSubtitle.appendChild(authorSubtitleNode);
// add an owner tag for myself
if (author.includes("Randynamic")) {
const ownerEmoji = document.createElement("a");
const ownerEmojiNode = document.createTextNode(" 👑️");
ownerEmoji.href = "https://github.com/Randynamic";
ownerEmoji.title = "Owner";
ownerEmoji.appendChild(ownerEmojiNode);
authorSubtitle.appendChild(ownerEmoji);
}
body.appendChild(authorSubtitle);
}
// description
if (description) {
const cardDescription = document.createElement("p");
const cardDescriptionNode = document.createTextNode(description);
cardDescription.className = "card-text";
cardDescription.appendChild(cardDescriptionNode);
body.appendChild(cardDescription);
}
// browser list
if (compatibleBrowsers) {
const browserList = document.createElement("p");
const browser = compatibleBrowsers.join(", ");
const browserNameNode = document.createTextNode(browser);
browserList.className = "card-text";
browserList.appendChild(browserNameNode);
body.appendChild(browserList);
}
// toolbar
const toolbar = document.createElement("div");
const group1 = document.createElement("div");
const group2 = document.createElement("div");
const group3 = document.createElement("div");
toolbar.className = "btn-toolbar";
group1.className = "btn-group mr-2";
group2.className = "btn-group mr-2";
group3.className = "btn-group mr-2";
toolbar.appendChild(group1);
toolbar.appendChild(group2);
toolbar.appendChild(group3);
body.appendChild(toolbar);
// HTML Link
const linkButton = document.createElement("a");
const linkButtonNode = document.createTextNode(filename);
linkButton.className = "btn btn-primary btn-md";
linkButton.href = `./entries/${filename}`;
linkButton.appendChild(linkButtonNode);
group1.appendChild(linkButton);
// Source Code Link
const sourceCodeButton = document.createElement("a");
const sourceCodeNode = document.createTextNode("Source");
sourceCodeButton.className = "btn btn-secondary btn-md";
sourceCodeButton.href = `https://github.com/FrontMen/one-html-page-challenge/blob/master/entries/${filename}`;
sourceCodeButton.appendChild(sourceCodeNode);
group2.appendChild(sourceCodeButton);
// github button
if (github) {
const githubButton = document.createElement("a");
const githubButtonNode = document.createTextNode("Github");
githubButton.className = "btn btn-primary btn-md";
githubButton.href = `https://github.com/${github}`;
githubButton.appendChild(githubButtonNode);
group3.appendChild(githubButton);
}
list.appendChild(card);
}
);
}
</script>
</body>
</html>