forked from devleague/gee-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex
148 lines (127 loc) · 6.58 KB
/
index
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
<html>
<head>
<script src="js/mail-generator.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<title>Geemail</title>
<script> window.onload = function(){
var i = 0, viewMessageMenuItem = document.getElementById('menuitems'), inboxCounter = document.getElementById('inboxcounter'), cake, messageBody = document.getElementById('messagebody'), ratMan, gladOS, forms_FORM_29827281_12;
cake = {
init: function() {
cake.drawMenuBorder();
cake.drawMessageBorder();
},
drawMenuBorder: function() {
var verttext = '';
for (x = 0; x < 32; x++) {
verttext += '|<br />';
}
var horiztext = '';
for (x = 0; x < 47; x++) {
horiztext += '-';
}
var left = document.getElementById('menuleft');
left.innerHTML = verttext;
var top = document.getElementById('menutop');
top.innerHTML = horiztext;
var right = document.getElementById('menuright');
right.innerHTML = verttext;
var bottom = document.getElementById('menubottom');
bottom.innerHTML = horiztext;
},
drawMessageBorder: function() {
var verttext = '';
for (x = 0; x < 20; x++) {
verttext += '|<br />';
}
var horiztext = '';
for (x = 0; x < 47; x++) {
horiztext += '-';
}
var left = document.getElementById('messageleft');
left.innerHTML = verttext;
var top = document.getElementById('messagetop');
top.innerHTML = horiztext;
var right = document.getElementById('messageright');
right.innerHTML = verttext;
var bottom = document.getElementById('messagebottom');
bottom.innerHTML = horiztext;
}
};
function lies() {
messageBody.innerHTML = "LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!</br>LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!LIES!";
forms_FORM_29827281_12 = document.createElement('audio');
forms_FORM_29827281_12.setAttribute('prebuffer', 'auto');
forms_FORM_29827281_12.setAttribute('src', 'Still Alive.ogg');
forms_FORM_29827281_12.play();
};
function displayMessage() {
messageBody.innerHTML = this.body;
};
function loadMessages() {
if (window.geemails.length === i) {
window.geemails.push(getNewMessage());
inboxCounter.innerHTML = 'Inbox('+i+')';
} else {
window.geemails[i].displayMessage = displayMessage;
viewMessageMenuItem.innerHTML+= '<tr><td>'+window.geemails[i].date+'</td><td>'+window.geemails[i].sender+'</td><td onclick="window.geemails['+i+'].displayMessage()">'+window.geemails[i].subject+'</td></tr>';
++i;
inboxCounter.innerHTML = 'Inbox('+i+')';
}
};
ratMan = document.getElementById('cake');
ratMan.onclick = lies;
gladOS = document.getElementById('messagebody')
gladOS.innerHTML = "Hello and, again, welcome to the Aperture Science computer-aided enrichment center.</br>Your specimen has been processed and we are now ready to begin the test proper."
cake.init()
window.setInterval (loadMessages, 1000)
}
// ALL OF YOUR JAVASCRIPT CODE SHOULD GO HERE.
// We have to use window.onload so your JavaScript doesn't execute until the page has loaded and all HTML has been downloaded to your browser
</script>
</head>
<body>
<div id="menu">
<div id="menuleft"></div>
<div id="menutop"></div>
<div id="menuright"></div>
<div id="menubottom"></div>
<div id="menutext"><table><thead><tr><th>Date</th><th>Sender</th><th>Subject</th></tr></thead><tbody><tr>
<td colspan="3"><div class="scrollbar"><table id="menuitems"></table></div></td></tbody></div>
</div>
<div id="message">
<div id="messageleft"></div>
<div id="messagetop"></div>
<div id="messageright"></div>
<div id="messagebottom"></div>
<div id="messagetext"><button id="inboxcounter">Inbox(0)</button><button>Reply</button><button>Delete</button><button id="cake">Cake</button><p id="messagebody">Message goes here</p></div>
</div>
<div id="picture">
<div id="pictureleft"></div>
<div id="picturetop"></div>
<div id="pictureright"></div>
<div id="picturebottom"></div>
<div id="picturetext"><pre>
.,-:;//;:=,
. :H@@@MM@M#H/.,+%;,
,/X+ +M@@M@MM%=,-%HMMM@X/,
-+@MM; $M@@MH+-,;XMMMM@MMMM@+-
;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
,%MM@@MH ,@%= .---=-=:=,.
=@#@@@MX., -%HX$$%%%:;
=-./@M@M$ .;@MMMM@MM:
X@/ -$MM/ . +MM@@@M$
,@M@H: :@: . =X#@@@@-
,@@@MMX, . /H- ;@M@M=
.H@@@@M@+, %MM+..%#$.
/MMMM@MMH/. XM@MH; =;
/%+%$XHH@$= , .H@@@@MX,
.=--------. -%H.,@@@@@MX,
.%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.
=XMMM@MM@MM#H;,-+HMM@M+ /MMMX=
=%@M@M#@$-.=$@MM@@@M; %M%=
,:+$+-,/H#MMMMMMM@= =,
=++%%%%+/:-.
</pre></div>
</div>
</body>
</html>