OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html id="template_root" i18n-values="dir:textdirection"> | 2 <html id="template_root" i18n-values="dir:textdirection"> |
3 <head> | 3 <head> |
4 <title i18n-content="title"> | 4 <title i18n-content="title"> |
5 </title> | 5 </title> |
6 <style> | 6 <style> |
7 html { | 7 html { |
8 height: 100%; | 8 height: 100%; |
9 } | 9 } |
10 body { | 10 body { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 window.domAutomationController.setAutomationId(1); | 110 window.domAutomationController.setAutomationId(1); |
111 window.domAutomationController.send(cmd); | 111 window.domAutomationController.send(cmd); |
112 } | 112 } |
113 | 113 |
114 // Show the offline page. | 114 // Show the offline page. |
115 function showPage() { | 115 function showPage() { |
116 document.body.style.visibility = 'visible'; | 116 document.body.style.visibility = 'visible'; |
117 } | 117 } |
118 | 118 |
119 document.addEventListener('DOMContentLoaded', function() { | 119 document.addEventListener('DOMContentLoaded', function() { |
120 var time_to_wait = localStrings.getString('time_to_wait'); | 120 var timeToWait = localStrings.getString('time_to_wait'); |
121 var show_activation = localStrings.getString('show_activation') == 'true'; | 121 var showActivation = localStrings.getString('show_activation') == 'true'; |
122 window.setTimeout(showPage, time_to_wait); | 122 window.setTimeout(showPage, timeToWait); |
123 var lower = document.getElementById('lower'); | 123 var lower = document.getElementById('lower'); |
124 if (show_activation) | 124 if (showActivation) |
125 lower.style.display = 'block'; | 125 lower.style.display = 'block'; |
126 }); | 126 }); |
127 </script> | 127 </script> |
128 | 128 |
129 <body oncontextmenu="return false;"> | 129 <body oncontextmenu="return false;"> |
130 <div class="upper" i18n-values=".title:url"> | 130 <div class="upper" i18n-values=".title:url"> |
131 <div class="offline_message"> | 131 <div class="offline_message"> |
132 <div class="icon" i18n-values=".src:icon;.style.display:display_icon"></di
v> | 132 <div class="icon" i18n-values=".src:icon;.style.display:display_icon"></di
v> |
133 <h3 i18n-content="heading"></h3> | 133 <h3 i18n-content="heading"></h3> |
134 <div class="message" i18n-values=".innerHTML:msg"></div> | 134 <div class="message" i18n-values=".innerHTML:msg"></div> |
135 <div class="link"><a href="chrome://settings/internet" | 135 <div class="link"><a href="chrome://settings/internet" |
136 onclick="sendCommand('proceed')" | 136 onclick="sendCommand('proceed')" |
137 i18n-content="try_loading"></a> | 137 i18n-content="try_loading"></a> |
138 </div> | 138 </div> |
139 <div class="link"><a href="chrome://settings/internet" | 139 <div class="link"><a href="chrome://settings/internet" |
140 onclick="sendCommand('open_network_settings')" | 140 onclick="sendCommand('open_network_settings')" |
141 i18n-content="network_settings"></a> | 141 i18n-content="network_settings"></a> |
142 </div> | 142 </div> |
143 </div> | 143 </div> |
144 </div> | 144 </div> |
145 <div id="lower" class="hidden"> | 145 <div id="lower" class="hidden"> |
146 <div class="activation_message"> | 146 <div class="activation_message"> |
147 <div class="splitter"></div> | 147 <div class="splitter"></div> |
148 <iframe src="chrome-extension://iadeocfgjdjdmpenejdbfeaocpbikmab/activatio
n_in_offline.html" | 148 <iframe src="chrome-extension://iadeocfgjdjdmpenejdbfeaocpbikmab/activatio
n_in_offline.html" |
149 id="carrierPage" frameborder="0"></iframe> | 149 id="carrierPage" frameborder="0"></iframe> |
150 </div> | 150 </div> |
151 </div> | 151 </div> |
152 </body> | 152 </body> |
153 </html> | 153 </html> |
OLD | NEW |