summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/eula/oem.js
blob: e142911e2eef58d7a6a70f5e15b4c7cf06ebe2c0 (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
function setInnerFrame() {
  var inner_frame = window.dialogArguments;
  if (inner_frame) {
    document.getElementById('ifr').src = inner_frame;
  }
}

function checkAccept(f) {
  if (f.accept.checked) {
    window.returnValue = 6;
  } else {
    window.returnValue = 1;
  }
  window.close();
}

function resize() {
  var ifr = document.getElementById('ifr');
  var footer = document.getElementById('footer');
  
  ifr.height = footer.offsetTop - ifr.offsetTop;
  setInnerFrame();
}

window.onresize = resize;
window.onload = resize;