-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
122 lines (113 loc) · 3.93 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Is There WP Drama?</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-4410103-11"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-4410103-11');
</script>
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1>Is There WP Drama? YES</h1>
<h2 id="tagline"></h2>
<h2>But don't worry, Collaberative Editing will fix all the drama</h2>
</header>
<footer>
maintained by <a href="https://github.com/aaronjorbin">aaronjorbin</a> | <a href='#' onclick="return wpdrama();">Give me More Drama</a>
</footer>
</div>
</div>
<script>
var taglines=[
'Blame the Customizer',
'Matt wrote code again',
'You forgot the G in the GPL',
'BBQ does not mean hot dogs on a grill',
'Automattic exists',
'Emoji',
"The newest feature doesn't help me",
'WordPress still supports PHP 3.0',
"Someone registered wordpresswordpresswordpresswordpresswordpresswordpress.com",
'Jetpack has a feature',
'SVN checkout',
'Hello Dolly still symbolizes the hope and enthusiasm of an entire generation',
'Wonderboymusic closed my ticket',
'Pento is working on something',
'A lowercase p suddenly appeared',
'My site has been taken over by ',
"I can't compare a revision with itself",
'Automattic bought something',
'Yes, because Customizer',
'Shortcodes everywhere',
'There are tickets in Trac',
'Someone created a Twitter list',
'Default themes change each year',
'I need title attribute for a title attribute',
'You were caught Cheatin’ uh',
'A survey said people dislike WordPress',
'Someone got the Jazzer wrong',
'GoDaddy made an acquisition',
'Sponsored Elevators',
'This site does not contain REST API endpoints',
'WordCamps happen in cities',
'The plugin repository was only in open beta for 6 months',
'A call for testing went out',
'Releases get scheduled',
'Fewer than 15 versions of WordPress will be maintained',
'Headphones play music',
'Someone wants WebP support',
'People graduated from University',
'But it was more like an existential crisis',
'A privacy and security update was made',
'Some Lakes are Silver',
'Pineapples are for living under the sea, not for pizza',
];
/**
* Shuffles array in place.
*
* Source: https://stackoverflow.com/questions/6274339/how-can-i-shuffle-an-array
* @param {Array} a items An array containing the items.
*/
function shuffle(a) {
var j, x, i;
for (i = a.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));
x = a[i];
a[i] = a[j];
a[j] = x;
}
return a;
}
function wpdrama(){
let msg = drama.length > 0 ? drama.pop() : "And it's all you will talk about at WordCamp";
document.querySelector('#tagline').innerHTML = msg;
return false;
}
const urlParams = new URLSearchParams(window.location.search);
const theDrama = urlParams.get('drama');
const start = taglines[ theDrama ];
const drama = shuffle( taglines );
if ( start ){
document.querySelector('#tagline').innerHTML = start;
} else {
wpdrama();
}
</script>
</body>
</html>