forked from miketaylr/MUSTDIE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (42 loc) · 1.51 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
<!DOCTYPE html>
<div>
<img alt="" src="bg.jpg">
<h1 aria-hidden="true" id="lol">wat</h1>
</div>
<p>*Warning, this page not safe for consumption on US-bound American Airlines flights
<p>**phiggins points out that Crockford might be holding a detonation device
<style>
div {position:relative;}
body {background-color: #333;}
img {margin:35px 0 0;box-shadow: 0 0 55px rgba(255,255,255,0.5);}
h1 {
width:513px;text-align:center;position:absolute;top:70px;left:15px;
color:#fff;font-family: BaskerVille;font-size:165px;margin:0;
}
p {color:#888;font-family:sans-serif;font-size:10px;margin-bottom:2px;}
</style>
<script>
(function(doc){
var word = doc.getElementById('lol'),
img = doc.querySelector('img'),
thingsThatNecessarilyMustDie = [
'IE', 'FF', 'NN', 'CH', 'O', 'XML', 'HTML', 'CSS', 'PHP',
'RUBY', 'XSLT','XBL', 'DOM', 'RDF', 'RFDA', 'HTTP', 'CGI',
'XHR', 'CORS','SQL', 'REST', 'RSS', 'ATOM', 'SOA', 'SOAP',
'JSON', 'YAML', 'MIKETAYLR'
], length = thingsThatNecessarilyMustDie.length;
function findSomethingToComplainAbout(){
var seed = thingsThatNecessarilyMustDie[Math.floor(Math.random() * length)];
return seed + versionNum();
};
function versionNum(){
return Math.ceil(Math.random() * 9);
};
function injectDrama(drama){
//poor man's 'permalinks'
if (location.search) drama = location.search.slice(1,5).toUpperCase();
word.textContent = img.alt = drama;
};
injectDrama(findSomethingToComplainAbout());
}(document));
</script>