/
index.html
executable file
·193 lines (162 loc) · 10.1 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
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CyberEDU</title>
<link rel="shortcut icon" href ="/favicon.ico"/>
<!-- This code centers the canvas and the videos on the screen. -->
<style>
canvas {
display: block;
margin-left: auto;
margin-right: auto;
background-color: #ffffff;
}
video {
display: block;
margin-left: auto;
margin-right: auto;
}
body {
background-color: #e0e0e0;
}
</style>
</head>
<!-- On certain browsers (Firefox/Chrome), there seems to be a chance that the script runs before the images load, resulting in a blank screen.
By calling redrawAll() when the body is finished, those images will be re-drawn. -->
<body onload="redrawAll()">
<!-- The primary canvas element, used to display the game graphics -->
<canvas id="view" width="1280" height="630" style="border:1px solid #000000; position:relative;" onclick="click_position(event)" onmousemove="rollover_position(event)"></canvas>
<!-- A one row table which is the page footer, containing various items displayed below the canvas. -->
<!-- Empty td elements are a hack to increase the spacing between elements. TODO: find CSS code to accomplish that task -->
<table id="footer"> <tr>
<td> <input id="open_settings_button" type="button" value="Settings" onclick="displaySettingsPage()"></input> </td>
<td> </td>
<td> <a href="/leaderboard.html" target="leaderboard">Leaderboard</a> </td>
<td> </td>
<td> <a href="/help.html" target="help">Help</a> </td>
</tr> </table>
<p id="text"> </p>
<!-- Settings page -->
<table id="settings" style="display:none;">
<tr>
<td> Music Volume (0 - 100): </td>
<td> <input id="settings/music_volume" type="range" name="Music Volume" min="0" max="100" value="50" onchange="setMusicVolume()"/> </td>
</tr> <tr>
<td colspan="2"> <input type="button" value="Return To Game" onclick="exitSettingsPage()"/> </td>
</tr> <tr>
<td colspan="2"> <input type="button" value="Reset Save File" onclick="hardReset()" /> </td>
</tr>
</table>
<!-- The entire CyberEdu logo (the favicon is only the C) -->
<img id="logo" src="/images/cyberEduLogo.png" width="0" height="0"/>
<!-- Video content. Videos are hidden by declaring the size as 0, until they are needed -->
<video id="video/malware" width="0" height="0" controls>
<source src="/video/malware.mp4" type="video/mp4"/>
</video>
<video id="video/wifiSniffing" width="0" height="0" controls>
<source src="/video/wifisniff.mp4" type="video/mp4"/>
</video>
<video id="video/piracy" width="0" height="0" controls>
<source src="/video/Piracy1.0.mp4" type="video/mp4"/>
</video>
<video id="video/wifiConfig" width="0" height="0" controls>
<source src="/video/WiFi.mp4" type="video/mp4"/>
</video>
<video id="video/appSecurity" width="0" height="0" controls>
<source src="/video/AppSecurity.mp4" type="video/mp4"/>
</video>
<video id="video/backups" width="0" height="0" controls>
<source src="/video/BackupandRestore.mp4" type="video/mp4"/>
</video>
<video id="video/passwords" width="0" height="0" controls>
<source src="/video/Passwords.mp4" type="video/mp4"/>
</video>
<video id="video/mfa" width="0" height="0" controls>
<source src="/video/mfa.mp4" type="video/mp4"/>
</video>
<video id="video/phishing" width="0" height="0" controls>
<source src="/video/Phishing.mp4" type="video/mp4"/>
</video>
<!-- Game images. Hidden from view by declaring the size as 0 -->
<img id="image/404" src="/images/404.png" width="0" height="0"/>
<img id="image/browser/blank" src="/images/browser.jpg" width="0" height="0"/>
<img id="image/phone" src="/images/phone.png" width="0" height="0"/>
<img id="image/phone/screen/off" src="/images/phone_screen_off.gif" width="0" height="0"/>
<img id="image/phone/screen/on" src="/images/phone_screen_on.gif" width="0" height="0"/>
<img id="image/phone/screen/map" src="/images/Map-no-icons-resized-2.png" width="0" height="0"/>
<img id="image/filesystem/blank" src="/images/computer_file_system.png" width="0" height="0"/>
<img id="image/emailinbox" src="/images/emailinbox.png" width="0" height="0"/>
<img id="image/introemail" src="/images/introemail.png" width="0" height="0"/>
<img id="image/emailbody" src="/images/email_body-01.png" width="0" height="0"/>
<img id="image/bademail" src="/images/bademail.png" width="0" height="0"/>
<img id="image/coffeeshop" src="/images/Cafe[nomouse].png" width="0" height="0"/>
<img id="image/electronics-01" src="/images/Electronics-01.png" width="0" height="0"/>
<img id="image/electronics-02" src="/images/Electronics-02.png" width="0" height="0"/>
<img id="image/electronics-03" src="/images/Electronics-03.png" width="0" height="0"/>
<img id="image/library" src="/images/Library.jpg" width="0" height="0"/>
<img id="image/librarian" src="/images/Librarian.jpg" width="0" height="0"/>
<img id="image/comp1" src="/images/Zoom1.jpg" width="0" height="0"/>
<img id="image/comp2" src="/images/Zoom2.jpg" width="0" height="0"/>
<img id="image/comp3" src="/images/Zoom3.jpg" width="0" height="0"/>
<img id="image/infected" src="/images/bluescreen.png" width="0" height="0"/>
<img id="image/infected2" src="/images/freephonesoftware.jpg" width="0" height="0"/>
<img id="image/sunshine" src="/images/Sunshine_the_cat.png" width="0" height="0" />
<img id="image/hallway" src="/images/Hallway.jpg" width="0" height="0"/>
<img id="image/billya" src="/images/BillyBedroom.jpg" width="0" height="0"/>
<img id="image/jacoba" src="/images/JacobBedroom.jpg" width="0" height="0"/>
<img id="image/emilya" src="/images/EmilyBedroom.jpg" width="0" height="0"/>
<img id="image/madelinea" src="/images/MadelineBedroom.jpg" width="0" height="0"/>
<img id="image/history" src="/images/history.png" width="0" height="0"/>
<img id="image/jacobNetworks" src="/images/jacobNetworks.png" width="0" height="0"/>
<img id="image/mission/complete" src="/images/mission_complete.jpg" width="0" height="0" />
<img id="image/mission/failed" src="/images/mission_failed.jpg" width="0" height="0" />
<img id="image/mallexterior" src="/images/Mall_exterior.jpg" width="0" height="0"/>
<img id="image/mallinterior" src="/images/Mall_interior.jpg" width="0" height="0"/>
<img id="image/productivity" src="/images/3-Productivity-v02.jpg" width="0" height="0"/>
<img id="image/navigation" src="/images/4-Navigation_v02.jpg" width="0" height="0"/>
<img id="image/social" src="/images/2-Social.jpg" width="0" height="0"/>
<img id="image/dorm_room" src="/images/dorm_room.jpg" width="0" height="0" />
<img id="image/dorm_room/computer" src="/images/dorm_room_computer_edited.jpg" width="0" height="0"/>
<img id="image/email_spoof" src="/images/emailspoofr2.png" width="0" height="0" />
<img id="image/phone/icon/email" src="/images/Email.png" width="0" height="0"/>
<img id="image/phone/icon/email_2" src="/images/phone_app_icon_mail.gif" width="0" height="0" />
<img id="image/phone/icon/map" src="/images/MAPS.png" width="0" height="0" />
<img id="image/phone/icon/map_emma" src="/images/phone_app_icon_map.gif" width="0" height="0" />
<img id="image/phone/icon/todo" src="/images/To-DoList.png" width="0" height="0" />
<img id="image/phone/icon/settings" src="/images/Settings.png" width="0" height="0" />
<img id="image/phone/icon/camera" src="/images/Camera.png" width="0" height="0" />
<img id="image/phone/icon/discover_daily" src="/images/Discover_Daily.png" width="0" height="0" />
<img id="image/phone/icon/do_something" src="/images/Do_Something.png" width="0" height="0" />
<img id="image/phone/icon/final_countdown" src="/images/Final_Countdown.png" width="0" height="0" />
<img id="image/phone/icon/iRead" src="/images/iRead.png" width="0" height="0" />
<img id="image/phone/icon/iShout" src="/images/iShout.png" width="0" height="0" />
<img id="image/phone/icon/iUmbrella" src="/images/iUmbrella.png" width="0" height="0" />
<img id="image/phone/icon/quick_shop" src="/images/Quick_Shop.png" width="0" height="0" />
<img id="image/phone/icon/throw_me" src="/images/Throw_Me.png" width="0" height="0" />
<img id="image/phone/icon/2spooky" src="/images/2Spooky.png" width="0" height="0"/>
<img id="image/phone/icon/map/mall" src="/images/Mall.png" width="0" height="0"/>
<img id="image/phone/icon/map/coffee_shop" src="/images/coffee-shop.png" width="0" height="0"/>
<img id="image/phone/icon/map/library" src="/images/Library.png" width="0" height="0"/>
<img id="image/phone/icon/map/apartment" src="/images/apartments.png" width="0" height="0"/>
<img id="image/phone/icon/map/police_station" src="/images/Police-Station.png" width="0" height="0"/>
<img id="image/phone/icon/map/dorm_room" src="/images/dorm.png" width="0" height="0"/>
<img id="image/police_station/office_lobby" src="/images/Lobby_v02.2.jpg" width="0" height="0" />
<img id="image/police_station/office_lobby/glass_wall" src="/images/Lobby-1_2.png" width="0" height="0" />
<img id="image/police_station/other_office" src="/images/office.png" width="0" height="0" />
<img id="image/police_station/ads" src="/images/ADS-03.png" width="0" height="0"/>
<img id="image/police_station/player_office" src="/images/Office_1.png" width="0" height="0"/>
<img id="image/police_station/player_office_victim" src="/images/Office_1_v02.jpg" width="0" height="0"/>
<img id="image/police_station/office_lobby_no_victim" src="/images/Lobby-2_2.jpg" width="0" height="0"/>
<img id="image/final_room" src="/images/Dorm-Module.jpg" width="0" height="0"/>
<img id="image/final_router" src="/images/Dorm-Router.png" width="0" height="0"/>
<img id="image/final_computer_screen/backup_required" src="/images/computer-01.png" width="0" height="0"/>
<img id="image/final_computer_screen/no_backup_warning" src="/images/computer-02.png" width="0" height="0"/>
<img id="image/final_cpu_system" src="/images/computer_file_system.png" width="0" height="0"/>
<img id="image/credits" src="/images/credits.jpg" width="0" height="0"/>
<script src="/responsivevoice/responsivevoice.js"></script>
<script src="/gifParser.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="/index.js"></script>
</body>
</html>