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
|
<!DOCTYPE html>
<html id="template_root" i18n-values="dir:textdirection">
<head>
<title i18n-content="title">
</title>
<style>
html {
height: 100%;
}
body {
color: #000;
font-family: Helvetica, Arial, sans-serif;
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(236,244,255)),
color-stop(0.50, rgb(255,255,255))
);
height: 100%;
padding: 0px;
margin: 0px;
display: -webkit-box;
-webkit-box-orient: horizontal;
}
#spacer {
-webkit-box-flex: 0.5;
}
#error {
margin-top: 150px;
font-size: 24px;
-webkit-box-flex: 1;
display: -webkit-box;
-webkit-box-orient: horizontal;
max-width : 800px;
width: 80%;
}
#error img {
margin-right: 10px;
vertical-align: middle;
-webkit-box-flex: 0;
}
#error #msg_box {
vertical-align: middle;
-webkit-box-flex: 1;
}
#heading {
font-weight: bold;
}
#msg {
font-size: 16px;
}
#msg_box a {
font-size: 16px;
}
</style>
<script>
function sendCommand(cmd) {
window.domAutomationController.setAutomationId(1);
window.domAutomationController.send(cmd);
}
// Show the offline page.
function showPage() {
document.body.style.visibility = 'visible';
}
// Start the timer to show the page.
function startTimer(time) {
// wait 2.5 seconds before showing 'load now', 'go back' button.
setTimeout('showPage()', time);
}
</script>
</head>
<body oncontextmenu="return false;" jsvalues="onload:on_load">
<div id="spacer"> </div>
<div id="error" jsvalues=".title:url">
<img i18n-values=".src:icon;.style.display:display_icon"
width="96" height="96">
<div id="msg_box">
<div id="headling" i18n-values=".innerText:heading"></div>
<div id="msg" i18n-values=".innerHTML:msg"></div>
<button id="continue_button" i18n-content="load_button"
onclick="sendCommand('proceed')">
</button>
<button id="cancel_button" i18n-content="cancel_button"
i18n-values=".style.display:display_cancel"
onclick="sendCommand('dontproceed')">
</button>
<a href="chrome://settings/internet"
onclick="sendCommand('open_network_settings')"
i18n-content="network_settings">
</a>
</div>
</div>
<div id="spacer"> </div>
</body>
</html>
|