| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html i18n-values="dir:textdirection;lang:language"> | 2 <html i18n-values="dir:textdirection;lang:language"> |
| 3 <head> | 3 <head> |
| 4 <title i18n-content="title"> | 4 <title i18n-content="title"> |
| 5 </title> | 5 </title> |
| 6 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> | 6 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> |
| 7 <style> | 7 <style> |
| 8 html { | 8 html { |
| 9 height: 100%; | 9 height: 100%; |
| 10 } | 10 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 .header { | 23 .header { |
| 24 padding: 3px; | 24 padding: 3px; |
| 25 width: 80%; | 25 width: 80%; |
| 26 } | 26 } |
| 27 </style> | 27 </style> |
| 28 | 28 |
| 29 <script> | 29 <script> |
| 30 | 30 |
| 31 function sendCommand(cmd) { | 31 function sendCommand(cmd) { |
| 32 window.domAutomationController.setAutomationId(1); | |
| 33 window.domAutomationController.send(cmd); | 32 window.domAutomationController.send(cmd); |
| 34 } | 33 } |
| 35 | 34 |
| 36 // Show the interstitial page. | 35 // Show the interstitial page. |
| 37 function showPage() { | 36 function showPage() { |
| 38 document.body.style.visibility = 'visible'; | 37 document.body.style.visibility = 'visible'; |
| 39 } | 38 } |
| 40 | 39 |
| 41 // Show the interstitial page. | 40 // Show the interstitial page. |
| 42 function forceLoad() { | 41 function forceLoad() { |
| 43 sendCommand('proceed'); | 42 sendCommand('proceed'); |
| 44 } | 43 } |
| 45 | 44 |
| 46 document.addEventListener('DOMContentLoaded', function() { | 45 document.addEventListener('DOMContentLoaded', function() { |
| 47 var showDelayTime = loadTimeData.getString('show_delay_time'); | 46 var showDelayTime = loadTimeData.getString('show_delay_time'); |
| 48 var totalWaitTime = loadTimeData.getString('total_wait_time'); | 47 var totalWaitTime = loadTimeData.getString('total_wait_time'); |
| 49 window.setTimeout(showPage, showDelayTime); | 48 window.setTimeout(showPage, showDelayTime); |
| 50 window.setTimeout(forceLoad, totalWaitTime); | 49 window.setTimeout(forceLoad, totalWaitTime); |
| 51 }); | 50 }); |
| 52 </script> | 51 </script> |
| 53 | 52 |
| 54 <body oncontextmenu="return false;"> | 53 <body oncontextmenu="return false;"> |
| 55 <div class="header" i18n-content="heading" id="mgs"> | 54 <div class="header" i18n-content="heading" id="mgs"> |
| 56 </div> | 55 </div> |
| 57 </body> | 56 </body> |
| 58 </html> | 57 </html> |
| OLD | NEW |