-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
141 lines (122 loc) · 3.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Emoji Quiz Generator</title>
<link
href="https://fonts.googleapis.com/css?family=Dekko|Raleway:400,800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/main.css" type="text/css" />
<script
crossorigin="anonymous"
integrity="sha256-y9xVOgmBqPHwdnAHyi5OTSACwsNHlHx+IVI5HVVHfQM="
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/html2canvas.min.js"
></script>
</head>
<body>
<section class="js-instructions emoji-song-quiz-instructions">
<h1>Usage instructions</h1>
<h2></h2>
<p>Fill in this form to get an emoji</p>
<form method="get" action="">
<label>
<span>type</span>
<input name="type" placeholder="song" />
</label>
<label>
<span>emoji</span>
<input name="emoji" placeholder="🏁⏲️⬇️" />
</label>
<label>
<span>episode</span>
<input name="episode" placeholder="123" />
</label>
<label>
<span>month</span>
<input name="month" placeholder="" />
</label>
<label>
<span>topic</span>
<input name="topic" placeholder="Earworms" />
</label>
<label>
<span>description</span>
<input
name="description"
placeholder="songs that get stuck in your head"
/>
</label>
<label>
<span>follow-up</span>
<input name="follow-up" placeholder="" />
</label>
<button>▶️ Go!</button>
</form>
<h2></h2>
<p>Call this URL with any of the following URL parameters:</p>
<ul>
<li><code>description</code></li>
<li><code>emoji</code></li>
<li><code>episode</code></li>
<li><code>follow-up</code></li>
<li><code>month</code></li>
<li><code>topic</code></li>
<li><code>type</code></li>
</ul>
<p>
For example:
<a
href="?type=song&episode=123&emoji=🏁⏲️⬇️&month=november&topic=Earworms&description=songs that get stuck in your head"
>
?episode=123&emoji=🏁⏲️⬇️&month=november&topic=Earworms&description=songs
that get stuck in your head
</a>
</p>
</section>
<article class="emoji-song-quiz">
<hgroup class="emoji-song-quiz__header">
<h1 class="emoji-song-quiz__announcement">
Time for the
<strong class="emoji-song-quiz__announcement--title">
What <span class="js-type"></span> is this emoji?
</strong>
quiz!
</h1>
<h2 class="emoji-song-quiz__episode">
Episode <span class="js-episode" data-js="episode"></span>
</h2>
</hgroup>
<main class="emoji-song-quiz__emoji js-emoji" data-js="emoji"></main>
<section class="emoji-song-quiz__topic-container">
<!-- @FIXME: Add extra template entry here so JS can be cleaned up
<p class="emoji-song-quiz__topic emoji-song-quiz__topic--without-month">
This episode's theme is
<b class="emoji-song-quiz__topic--name js-topic" data-js="topic"></b>
</p>
-->
<p class="emoji-song-quiz__topic emoji-song-quiz__topic--with-month">
The entire month of
<span
class="emoji-song-quiz__topic--month js-month"
data-js="month"
></span>
is
<b class="emoji-song-quiz__topic--name js-topic" data-js="topic"></b>
month!
</p>
<em
class="emoji-song-quiz__topic--description js-description"
data-js="description"
></em>
</section>
<footer class="emoji-song-quiz__follow-up js-follow-up">
Open the thread to answer...
</footer>
</article>
<div class="canvas-container"></div>
<script src="js/populateTemplate.js"></script>
<script src="js/createImage.js"></script>
<script src="js/main.js"></script>
</body>
</html>