Home | History | Annotate | Download | only in chromeos
      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/load_time_data.js"></script>
     30 
     31 <script>
     32 
     33 function sendCommand(cmd) {
     34   window.domAutomationController.setAutomationId(1);
     35   window.domAutomationController.send(cmd);
     36 }
     37 
     38 // Show the interstitial page.
     39 function showPage() {
     40   document.body.style.visibility = 'visible';
     41 }
     42 
     43 // Show the interstitial page.
     44 function forceLoad() {
     45   sendCommand('proceed');
     46 }
     47 
     48 document.addEventListener('DOMContentLoaded', function() {
     49   var showDelayTime = loadTimeData.getString('show_delay_time');
     50   var totalWaitTime = loadTimeData.getString('total_wait_time');
     51   window.setTimeout(showPage, showDelayTime);
     52   window.setTimeout(forceLoad, totalWaitTime);
     53 });
     54 </script>
     55 
     56 <body oncontextmenu="return false;">
     57   <div class="header" i18n-content="heading" id="mgs">
     58   </div>
     59 </body>
     60 </html>
     61