cacert-testmgr/manager/public/js/center.js

11 lines
281 B
JavaScript
Raw Normal View History

function setCSS() {
2015-08-09 17:12:51 +00:00
var x = window.innerWidth;
2015-08-09 17:12:51 +00:00
x = x - 18; // maybe scroll bar
document.getElementById('center').style.width = x + "px";
document.getElementById('center').style.marginLeft = "-" + x/2 + "px";
}
window.onload = setCSS;
window.onresize = setCSS;