-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
536 lines (523 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>The Brandreth Generator</title>
<meta name="description" content="The Gyles Brandreth Anecdote Generator" />
<meta name="author" content="Martyn Taylor-Sherwood" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
line-height: 1.15;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
a {
background-color: transparent;
}
button {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button {
overflow: visible;
}
button {
text-transform: none;
}
button {
-webkit-appearance: button;
}
button::-moz-focus-inner {
border-style: none;
padding: 0;
}
button:-moz-focusring {
outline: 1px dotted ButtonText;
}
h1,
p {
margin: 0;
}
button {
background-color: transparent;
background-image: none;
padding: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
html {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
line-height: 1.5;
}
*,
::after,
::before {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e2e8f0;
}
button {
cursor: pointer;
}
h1 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
text-decoration: inherit;
}
button {
padding: 0;
line-height: inherit;
color: inherit;
}
svg {
display: block;
vertical-align: middle;
}
.container {
width: 100%;
}
@media (min-width: 640px) {
.container {
max-width: 640px;
}
}
@media (min-width: 768px) {
.container {
max-width: 768px;
}
}
@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
}
@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}
.bg-gray-700 {
--bg-opacity: 1;
background-color: #4a5568;
background-color: rgba(74, 85, 104, var(--bg-opacity));
}
.bg-gray-800 {
--bg-opacity: 1;
background-color: #2d3748;
background-color: rgba(45, 55, 72, var(--bg-opacity));
}
.bg-gray-900 {
--bg-opacity: 1;
background-color: #1a202c;
background-color: rgba(26, 32, 44, var(--bg-opacity));
}
.bg-orange-500 {
--bg-opacity: 1;
background-color: #ed8936;
background-color: rgba(237, 137, 54, var(--bg-opacity));
}
.bg-orange-600 {
--bg-opacity: 1;
background-color: #dd6b20;
background-color: rgba(221, 107, 32, var(--bg-opacity));
}
.border-gray-800 {
--border-opacity: 1;
border-color: #2d3748;
border-color: rgba(45, 55, 72, var(--border-opacity));
}
.rounded {
border-radius: 0.25rem;
}
.rounded-full {
border-radius: 9999px;
}
.border-0 {
border-width: 0;
}
.border-l-2 {
border-left-width: 2px;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.flex-row {
flex-direction: row;
}
.flex-col {
flex-direction: column;
}
.flex-wrap {
flex-wrap: wrap;
}
.items-center {
align-items: center;
}
.justify-start {
justify-content: flex-start;
}
.justify-center {
justify-content: center;
}
.font-medium {
font-weight: 500;
}
.h-4 {
height: 1rem;
}
.h-10 {
height: 2.5rem;
}
.text-sm {
font-size: 0.875rem;
}
.text-base {
font-size: 1rem;
}
.text-lg {
font-size: 1.125rem;
}
.text-xl {
font-size: 1.25rem;
}
.text-3xl {
font-size: 1.875rem;
}
.text-4xl {
font-size: 2.25rem;
}
.leading-relaxed {
line-height: 1.625;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.mt-0 {
margin-top: 0;
}
.mb-0 {
margin-bottom: 0;
}
.ml-1 {
margin-left: 0.25rem;
}
.ml-3 {
margin-left: 0.75rem;
}
.mt-4 {
margin-top: 1rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.ml-4 {
margin-left: 1rem;
}
.mb-8 {
margin-bottom: 2rem;
}
.ml-auto {
margin-left: auto;
}
.outline-none {
outline: 0;
}
.p-2 {
padding: 0.5rem;
}
.p-5 {
padding: 1.25rem;
}
.py-1 {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.px-5 {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.py-8 {
padding-top: 2rem;
padding-bottom: 2rem;
}
.py-24 {
padding-top: 6rem;
padding-bottom: 6rem;
}
.pl-4 {
padding-left: 1rem;
}
.text-center {
text-align: center;
}
.text-white {
--text-opacity: 1;
color: #fff;
color: rgba(255, 255, 255, var(--text-opacity));
}
.text-gray-500 {
--text-opacity: 1;
color: #a0aec0;
color: rgba(160, 174, 192, var(--text-opacity));
}
.text-gray-600 {
--text-opacity: 1;
color: #718096;
color: rgba(113, 128, 150, var(--text-opacity));
}
.w-2 {
width: 0.5rem;
}
.w-4 {
width: 1rem;
}
.w-10 {
width: 2.5rem;
}
.w-full {
width: 100%;
}
.svg-black {
color: black;
font-weight: 700;
}
</style>
<script src="https://cdn.usefathom.com/script.js" data-site="XYTTZOKX" defer></script>
</head>
<body class="bg-gray-900">
<header class="text-gray-500 body-font">
<div
class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center"
>
<a
href="https://mtaylorsherwood.github.io/brandreth-generator/"
class="flex title-font font-medium items-center text-white mb-4 md:mb-0"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
class="w-10 h-10 p-2 bg-orange-500 rounded-full svg-black"
viewBox="0 0 20 20"
>
<path
d="M18.125,15.804l-4.038-4.037c0.675-1.079,1.012-2.308,1.01-3.534C15.089,4.62,12.199,1.75,8.584,1.75C4.815,1.75,1.982,4.726,2,8.286c0.021,3.577,2.908,6.549,6.578,6.549c1.241,0,2.417-0.347,3.44-0.985l4.032,4.026c0.167,0.166,0.43,0.166,0.596,0l1.479-1.478C18.292,16.234,18.292,15.968,18.125,15.804 M8.578,13.99c-3.198,0-5.716-2.593-5.733-5.71c-0.017-3.084,2.438-5.686,5.74-5.686c3.197,0,5.625,2.493,5.64,5.624C14.242,11.548,11.621,13.99,8.578,13.99 M16.349,16.981l-3.637-3.635c0.131-0.11,0.721-0.695,0.876-0.884l3.642,3.639L16.349,16.981z"
></path>
</svg>
<span class="ml-3 text-xl">The Brandreth Generator</span>
</a>
<nav
class="md:ml-auto flex flex-wrap items-center text-base justify-center"
></nav>
</div>
</header>
<section class="text-gray-500 bg-gray-900 body-font">
<div
class="container mx-auto flex px-5 py-24 items-center justify-center flex-col"
>
<div class="text-center lg:w-2/3 w-full">
<h1
class="title-font sm:text-4xl text-3xl mb-4 font-medium text-white"
>
It was during <span id="during"></span> when I
<span id="when"></span> with <span id="with"></span>
</h1>
<p class="leading-relaxed mb-8">
Get a Gyles Brandreth Anecdote to liven up any
party or Zoom call.
<br />
Inspired by the QI Elves
<a
href="https://twitter.com/qikipedia/status/1281159729201455109"
target="_blank"
rel="noopener"
onclick="fathom.trackGoal('T9VFPUGV', 0);"
>
Create Your Own Gyles Brandreth Anecdote
</a>
and obviously Mr Brandreth himself.
</p>
<div class="flex justify-center">
<button
aria-label="Click to generate another random anecdote"
onclick="getAnecdote()"
class="inline-flex bg-orange-500 border-0 py-2 px-6 focus:outline-none hover:bg-orange-600 rounded text-lg svg-black"
>
Want Another?
</button>
</div>
<div class="flex justify-center">
<a
href="https://twitter.com/qikipedia/status/1281159729201455109"
target="_blank"
rel="noopener"
onclick="fathom.trackGoal('T9VFPUGV', 0);"
>
<button
class="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0"
>
See the original tweet from the QI Elves
<svg
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
class="w-4 h-4 ml-1"
viewBox="0 0 24 24"
>
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>
</button>
</a>
</div>
</div>
</div>
</section>
<footer class="text-white bg-gray-900 body-font">
<div
class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col"
>
<a
href="https://mtaylorsherwood.github.io/brandreth-generator/"
class="flex title-font font-medium items-center md:justify-start justify-center text-white"
>
<span class="ml-3 text-xl">The Brandreth Generator</span>
</a>
<p
class="text-sm text-white sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-800 sm:py-2 sm:mt-0 mt-4"
>
© 2020-2023 M Taylor-Sherwood —
<a
href="https://twitter.com/mtaylorsherwood"
class="text-white ml-1"
target="_blank"
rel="noopener noreferrer"
onclick="fathom.trackGoal('O2OPVELU', 0);"
>@mtaylorsherwood</a
>
</p>
</div>
</footer>
<script>
const during = [
"the 1996 Royal Variety performance",
"a recording of Have I Got News For You",
"the opening night of CATS",
"her Majesty's Golden Jubiliee",
"the 1997 Eurovision after party",
"a gala fundraiser for Save the Donkeys",
"the London 2012 Opening Ceremony",
"the opening of Kensington's Waitrose",
"the British Kebab Awards ceremony",
"the Conservative Party Conference",
"the Channel 5 launch party",
"the 1998 Wimbledon Ladies' Final",
];
const when = [
"had a falling out over the Oxford comma",
"performed a 15 minute version of Macbeth",
"rode Sally, a two humped camel",
"gave a dramatic reading from 50 Shades of Grey",
"downed three Jagerbombs",
"sang ABBA's Dancing Queen",
"disgraced myself during a game of Twister",
"completed a fiendish Sudoku",
"shared a multipack of Monster Munch",
"did the ice bucket challenge",
"dressed up as Widow Twankey",
"rediscovered the joys of roller blading",
"played the best tiddlywinks of my career",
"had a quick round of Boggle",
"swapped spotted dick recipies",
"shared a quiche loraine",
"rode a tandem bicycle into a canal",
"was flirting outragously",
"played Beethoven's Fifth on the xylophone",
"re-enacted Torvill and Dean's Bolero",
"discovered a shared love of Curly Wurlys",
"learned the choreography to the Macarena",
"beat some local youths in a wheelbarrow race",
"almost lost an eye pulling a wishbone",
"modelled the latest collection by Versace",
"did something unrepeatable",
];
const withWho = [
"not one but three of the loose women",
"a rather confused Yoko Ono",
"my Pointless friend Richard Osman",
"Jonathan Creek himself, Alan Davies",
"either Dick or Dom, it's hard to say for sure",
"none other than Prince Edward",
"confirmed thespian Dame Julie Walters",
"the fragrant Emma Thompson",
"the always fabulous Cilla Black",
"the radiant Moira Stewart",
"the original bachelor boy Sir Cliff Richard",
"that outrageous minx Dame Edna Everage",
"the always delightful Lenny Henry",
"my friend and yours Pop Francis",
"a trifle-laden Delia Smith",
"star or stage and screen Sir Ian McKellen",
"that tasty little Danish Sandi Toksvig",
"the incomparable Brian Blessed",
"housewives' favourite Jeremy Paxman",
"that sweet man Archbishop Desmond Tutu",
"my bosum buddy Dame Judi Dench",
"the Vicar of Dibly, Dawn French",
"pop kitten Geri Halliwell",
"the scintillating Nigella Lawson",
"the slightly tipsy Cherie Blair",
"that delightful young man Andi Peters",
];
function getAnecdote() {
let duringPick = Math.round(Math.random() * (during.length - 1));
let whenPick = Math.round(Math.random() * (when.length - 1));
let withPick = Math.round(Math.random() * (withWho.length - 1));
document.getElementById("during").innerHTML = during[duringPick];
document.getElementById("when").innerHTML = when[whenPick];
document.getElementById("with").innerHTML = withWho[withPick];
fathom.trackGoal('QZRKOQI7', 0);
}
getAnecdote();
</script>
</body>
</html>