blob: c96c0407a20a05aef91e003f14b7258188012f76 (
plain)
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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<title>Backup</title>
<script type="text/javascript">
function parseCookies(){
var cookiestrings = document.cookie.split('; ');
var cookies = {};
for(var i=cookiestrings.length-1; i>=0; i--){
var parts = cookiestrings[i].split('=');
cookies[parts[0]] = parts[1];
}
return cookies;
}
function setCookieAndRun(theme) {
var d = new Date();
d.setTime(d.getTime() + (90*24*60*60*1000));
document.cookie = 'default-theme=' + theme + '; expires=' + d.toUTCString() + '; path=/';
// Make an absolute path redirect, as relative redirects break if the port is non-standard
var path = window.location.pathname;
if (path.lastIndexOf('.html') == path.length - '.html'.length)
path = path.substr(0, path.lastIndexOf('/'));
if (path.lastIndexOf('/') + 1 != path.length)
path = path + '/';
path += theme +'/index.html';
window.location.replace(path);
}
var theme = parseCookies()['default-theme'];
if ((theme || '').trim().length == 0)
theme = 'ngax';
setCookieAndRun(theme); // Refresh
</script>
<script type="text/javascript" src="oem/root/index/oem.js" ></script>
<link rel="stylesheet" type="text/css" href="oem/root/index/oem.css" />
</head>
<body>
</body>
</html>
|