OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html i18n-values="dir:textdirection"> | 2 <html 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 { |
11 -webkit-user-select: none; | 11 -webkit-user-select: none; |
12 background: white; | 12 background: white; |
13 color: #000; | 13 color: #000; |
14 display: -webkit-box; | 14 display: -webkit-box; |
15 font-family: arial, sans-serif; | 15 font-family: arial, sans-serif; |
16 height: 100%; | 16 height: 100%; |
17 margin: 0; | 17 margin: 0; |
18 padding: 0; | 18 padding: 0; |
19 visibility: hidden; | 19 visibility: hidden; |
20 width: 100%; | 20 width: 100%; |
21 } | 21 } |
22 | 22 |
23 .header { | 23 .header { |
24 font-family: Sans-serif; | 24 font-family: Sans-serif; |
25 padding: 3px; | 25 padding: 3px; |
26 width: 80%; | 26 width: 80%; |
27 } | 27 } |
28 </style> | 28 </style> |
29 <script src="../../../../ui/webui/resources/js/local_strings.js"></script> | 29 <script src="../../../../ui/webui/resources/js/load_time_data.js"></script> |
30 | 30 |
31 <script> | 31 <script> |
32 var localStrings = new LocalStrings(); | |
33 | 32 |
34 function sendCommand(cmd) { | 33 function sendCommand(cmd) { |
35 window.domAutomationController.setAutomationId(1); | 34 window.domAutomationController.setAutomationId(1); |
36 window.domAutomationController.send(cmd); | 35 window.domAutomationController.send(cmd); |
37 } | 36 } |
38 | 37 |
39 // Show the interstitial page. | 38 // Show the interstitial page. |
40 function showPage() { | 39 function showPage() { |
41 document.body.style.visibility = 'visible'; | 40 document.body.style.visibility = 'visible'; |
42 } | 41 } |
43 | 42 |
44 // Show the interstitial page. | 43 // Show the interstitial page. |
45 function forceLoad() { | 44 function forceLoad() { |
46 sendCommand('proceed'); | 45 sendCommand('proceed'); |
47 } | 46 } |
48 | 47 |
49 document.addEventListener('DOMContentLoaded', function() { | 48 document.addEventListener('DOMContentLoaded', function() { |
50 var showDelayTime = localStrings.getString('show_delay_time'); | 49 var showDelayTime = loadTimeData.getString('show_delay_time'); |
51 var totalWaitTime = localStrings.getString('total_wait_time'); | 50 var totalWaitTime = loadTimeData.getString('total_wait_time'); |
52 window.setTimeout(showPage, showDelayTime); | 51 window.setTimeout(showPage, showDelayTime); |
53 window.setTimeout(forceLoad, totalWaitTime); | 52 window.setTimeout(forceLoad, totalWaitTime); |
54 }); | 53 }); |
55 </script> | 54 </script> |
56 | 55 |
57 <body oncontextmenu="return false;"> | 56 <body oncontextmenu="return false;"> |
58 <div class="header" i18n-content="heading" id="mgs"> | 57 <div class="header" i18n-content="heading" id="mgs"> |
59 </div> | 58 </div> |
60 </body> | 59 </body> |
61 </html> | 60 </html> |
OLD | NEW |