-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
182 lines (161 loc) · 4.59 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
<!doctype html>
<html>
<head>
<meta property="og:image" content="error.gif">
<style>
*, html, body, canvas {
/*cursor: none;*/
}
body, html, canvas {
margin: 0;
padding: 0;
text-align: center;
}
body {
background-image: url('background.jpg');
background-size: cover;
}
html {
overflow: hidden;
}
a {
z-index: 10000 !important;
position: fixed !important;
bottom: 15px;
right: 10px;
color: red;
font-weight: bold;
}
.twitter-share-button, .fb-like {
z-index: 10000 !important;
position: fixed !important;
}
.twitter-share-button {
bottom: 15px;
left: 10px;
}
.fb-like {
bottom: 15px !important;
left: 100px !important;
}
</style>
<title>Windows XP: So many good memories...</title>
</head>
<body>
<a class="dont" href="#">Don't click</a>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="feross" data-related="feross">Tweet</a>
<div id="fb-root"></div>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
<script src="js/soundmanager2-nodebug-jsmin.js"></script>
<script>
function playStartupSound() {
if (soundManagerLoaded) {
soundManager
.createSound({
id: 'startup',
url:'sound/startup.mp3'
})
.play({
onfinish: function() {
this.destruct();
}
});
}
}
function playErrorSound() {
if (soundManagerLoaded) {
soundManager
.createSound({
id: 'error' + _.uniqueId(),
url:'sound/error.mp3'
})
.play({
onfinish: function() {
this.destruct();
}
});
}
}
soundManager.url = 'swf/';
soundManager.flashVersion = 8;
var soundManagerLoaded = false;
soundManager.onload = function() {
soundManagerLoaded = true;
playStartupSound();
};
$('a.dont').on('click', function(e) {
myWindow1=window.open('','','width=200,height=100');
myWindow1.document.write("<h1>HAHA!</h1>");
shake(myWindow1, 5);
e.preventDefault();
});
function shake(win, n) {
if (win.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
win.moveBy(-i,0);
win.moveBy(0,-i);
win.moveBy(-i,0);
win.moveBy(0,i);
win.moveBy(i,0);
win.moveBy(0,-i);
win.moveBy(-i,0);
win.moveBy(0,i);
win.moveBy(i,0);
win.moveBy(0,-i);
win.moveBy(-i,0);
win.moveBy(0,-i);
win.moveBy(i,0);
win.moveBy(0,i);
win.moveBy(i,0);
win.moveBy(0,i);
}
}
}
}
$(function() {
var width = $(window).width();
var height = $(window).height();
$('body').append('<canvas id="canvas" width="' + width + '" height="' + height + '"></canvas>');
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext("2d");
var img = new Image();
img.src = 'error.gif';
img.onload = function() {
canvas.addEventListener('mousemove', function(event) {
ctx.drawImage(img, event.clientX, event.clientY);
playErrorSound();
}, false);
}
randError = function() {
ctx.drawImage(img, _.random(width), _.random(height));
playErrorSound();
setTimeout(randError, _.random(400, 800));
}
setTimeout(function() {
setTimeout(randError, _.random(400, 800));
}, 3000);
window.onbeforeunload = function (e) {
var message = "I want to make this page as annoying as possible.",
e = e || window.event;
// For IE and Firefox
if (e) {
e.returnValue = message;
}
// For Safari
return message;
};
});
</script>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/all.js#xfbml=1&appId=515587071790188";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</html>