-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAppCacheInstaller.html
More file actions
89 lines (83 loc) · 3.64 KB
/
AppCacheInstaller.html
File metadata and controls
89 lines (83 loc) · 3.64 KB
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
<!DOCTYPE html>
<html manifest="/manifest/fowl.manifest">
<!-- Mirrored from thegreenspirit.ct8.pl/games/projectchrome11/AppCacheInstaller.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 08 Jun 2024 21:49:45 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head></head>
<body style="background-color: #0f0; margin: 0px;">
ApplicationCacheInstaller.html
<pre id='status'></pre>
<script type="text/javascript">
var appcache = window.applicationCache;
appcache.addEventListener('cached', logEvent, false);
appcache.addEventListener('checking', logEvent, false);
appcache.addEventListener('downloading', logEvent, false);
appcache.addEventListener('error', logEvent, false);
appcache.addEventListener('noupdate', logEvent, false);
appcache.addEventListener('obsolete', logEvent, false);
appcache.addEventListener('progress', logEvent, false);
appcache.addEventListener('updateready', logEvent, false);
if (window.applicationCache !== undefined && window.applicationCache.status == window.applicationCache.IDLE){
changeButtonToInstalled();
}
function setStatus(message) {
window.parent.document.getElementById("tooltip").innerHTML = message;
}
function changeButtonToInstalled() {
window.parent.document.getElementById("installButton").id = "offlineInstalled";
}
function logEvent(e) {
switch (e.type) {
case "progress":
message = "Installing offline version...";
if (e.lengthComputable) {
message += Math.round(e.loaded / e.total * 100) + "%";
}
break;
case "noupdate":
message = "You're running the latest offline capable version.";
changeButtonToInstalled();
break;
case "obsolete":
message = "Offline mode has been uninstalled.";
break;
case "cached":
message = "We're ready to play offline!";
changeButtonToInstalled();
break;
case "checking":
message = "Checking for a new version...";
break;
case "downloading":
message = "Downloading...";
break;
case "updateready":
message = "A new version is ready. Click to <a href='javascript:window.location.reload();' onclick='return confirm(\"This will restart your game. Continue?\");'>upgrade</a>.";
window.parent.appCacheUpdateReady();
break;
case "error":
switch (window.applicationCache.status) {
case window.applicationCache.IDLE:
message = "We're ready to play offline!";
break;
case window.applicationCache.UNCACHED:
message = "Error loading offline version. Please <a href='javascript:window.location.reload();' onclick='return confirm(\"This will restart your game. Continue?\");'>try again</a>.";
break;
case window.applicationCache.CHECKING:
case window.applicationCache.DOWNLOADING:
case window.applicationCache.UPDATEREADY:
case window.applicationCache.OBSOLETE:
default:
message = "Error " + window.applicationCache.status + " loading offline version. Please <a href='javascript:window.location.reload();' onclick='return confirm(\"This will restart your game. Continue?\");'>try again</a>.";
break;
}
break;
default:
message = "[" + e.type + "]";
}
document.getElementById("status").innerHTML += e.type + ": " + message + "\n";
setStatus(message);
}
</script>
</body>
<!-- Mirrored from thegreenspirit.ct8.pl/games/projectchrome11/AppCacheInstaller.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 08 Jun 2024 21:49:45 GMT -->
</html>