cacert-testmgr/manager/public/js/center.js
Markus Warg 4f4c5ce3cc initial setup of framework code
enabled features
* login
* crt login
* top / left menu
* logging
* db layer
2010-03-31 16:43:49 +02:00

10 lines
276 B
JavaScript

function setCSS() {
var x = window.innerWidth;
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;