/
webpages.js
165 lines (145 loc) · 6.4 KB
/
webpages.js
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
var webpages = {
'very-real-news.www': {
title: 'Very REAL News',
id: 'very-real-news'
},
'cat-tube.www': {
title: 'the CaT TuBe - BEst _CAT_ VidEos ForEvEr',
id: 'cat-tube',
action: function () {
function explode() {
e('explosion').style.display = 'block';
e('explosion').style.marginLeft = Math.floor(Math.random()*800)-400;
if (exploding) {
playSound('chord.wav', .3);
setTimeout(explode, 700);
}
else {
e('explosion').style.display = 'none';
}
}
if (currentMap == house1Map && !flags['steve-funk-destroyed']) {
exploding = true;
setTimeout(function () {
showBubble('Ahhhhhhhh! How did you know my ONLY weakness!!!',
function () {
exploding = false;
playSound('recycle.wav');
flags['steve-funk-destroyed'] = true;
house1Map.characterState = 'smile';
e('bad-funk-toolbar').style.marginTop = -300;
e('bad-funk-toolbar').style.animationName = 'funk-die';
e('bad-funk-toolbar').style.webkitAnimationName = 'funk-die';
}
);
}, 500);
explode();
}
else if (currentMap == hutMap && !flags['sally-funk-destroyed']) {
setTimeout(function () {
var hp = 3;
showBubble('Hah!! Nice try! But you\'ll have to do better than that!');
nextCatCallback = function () {
var message;
hp --;
e('bad-funk-bubble').style.display = 'none';
if (hp == 2) {
message = 'Huh? What are you doing?';
}
else if (hp == 1) {
message = 'Wait... No! Stop!';
}
else if (hp == 0) {
exploding = true;
nextCatCallback = false;
setTimeout(function () {
showBubble('AHHHHHHHHH! I CAN\'T BELIEVE IT! NOT AGAIN!',
function () {
exploding = false;
playSound('recycle.wav');
flags['sally-funk-destroyed'] = true;
hutMap.characterState = 'smile';
e('bad-funk-toolbar').style.marginTop = -300;
e('bad-funk-toolbar').style.animationName = 'funk-die';
e('bad-funk-toolbar').style.webkitAnimationName = 'funk-die';
}
);
explode();
}, 500);
}
if (message) {
setTimeout(function () {
showBubble(message);
}, 500);
}
}
}, 500);
}
else if (currentMap == iglooMap && !flags['slug-funk-destroyed']) {
function moveButton() {
e('next-cat-button').style.marginTop = Math.floor(Math.random()*1000);
}
moveButton();
setTimeout(function () {
var hp = 4;
showBubble('You\'re PATHETIC ! I\'m unstoppable now!');
nextCatCallback = function () {
var message;
hp --;
e('bad-funk-bubble').style.display = 'none';
moveButton();
if (hp == 3) {
message = 'Hmph! You got lucky that time...';
}
else if (hp == 2) {
message = 'Uggg.. No... How could it be ... ';
}
else if (hp == 1) {
message = 'uhhhhggggg .. could you really defeat me .. ?';
}
else if (hp == 0) {
exploding = true;
nextCatCallback = false;
setTimeout(function () {
e('next-cat-button').style.marginTop = '0';
showBubble('BLAAAAARRGHHHHGHGH!!!!! YOU HAVE\'NT SEEN THE LAST OF MEEEEEEEEE!!!',
function () {
exploding = false;
playSound('recycle.wav');
flags['slug-funk-destroyed'] = true;
iglooMap.characterState = 'smile';
e('bad-funk-toolbar').style.marginTop = -300;
e('bad-funk-toolbar').style.animationName = 'funk-die';
e('bad-funk-toolbar').style.webkitAnimationName = 'funk-die';
}
);
explode();
}, 500);
}
if (message) {
setTimeout(function () {
showBubble(message);
}, 500);
}
}
}, 500);
}
e('cat-image').src = 'images/cats/' + (Math.floor(Math.random()*30)+1) + '.gif';
}
},
'zmz.www': {
title: 'ZMZ - B+ cELEBs 25/7',
id: 'zmz'
},
'tek-squeeeze.www': {
title: 'Tek SqueeezE - Your LATEST Digital Desires!',
id: 'tek-squeeeze'
},
'credits.www': {
title: 'Credits',
id: 'credits'
},
'404': {
id: '404'
}
};