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