summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/eula/oem.js
blob: 5831b340ea70ef4587c8c158999fa549433a3dca (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 regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?");
  var results = regex.exec(window.location.href);
  if(results && results[1])
    document.getElementById('ifr').src = results[1];
}

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;