summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/merge_session_load.html
blob: b2b308977c708600184dab1be5a3a1254e0f8354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html i18n-values="dir:textdirection;lang:language">
<head>
<title i18n-content="title">
</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<style>
html {
  height: 100%;
}
body {
  -webkit-user-select: none;
  background: white;
  color: #000;
  display: -webkit-box;
  height: 100%;
  margin: 0;
  padding: 0;
  visibility: hidden;
  width: 100%;
}

.header {
  padding: 3px;
  width: 80%;
}
</style>

<script>

function sendCommand(cmd) {
  window.domAutomationController.setAutomationId(1);
  window.domAutomationController.send(cmd);
}

// Show the interstitial page.
function showPage() {
  document.body.style.visibility = 'visible';
}

// Show the interstitial page.
function forceLoad() {
  sendCommand('proceed');
}

document.addEventListener('DOMContentLoaded', function() {
  var showDelayTime = loadTimeData.getString('show_delay_time');
  var totalWaitTime = loadTimeData.getString('total_wait_time');
  window.setTimeout(showPage, showDelayTime);
  window.setTimeout(forceLoad, totalWaitTime);
});
</script>

<body oncontextmenu="return false;">
  <div class="header" i18n-content="heading" id="mgs">
  </div>
</body>
</html>