cacert-testmgr/manager/public/js/positionUserInfo.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

17 lines
426 B
JavaScript

function setUserInfoPos() {
var x = window.innerWidth;
var ui;
x = x - 18; // maybe scroll bar
ui = document.getElementById('userinfo');
if (ui != null) {
ui.style.right = "3px";
// document.getElementById('userinfo').style.bottom = "3px";
ui.style.bottom = 3 - window.pageYOffset + "px";
}
}
window.onload = setUserInfoPos;
window.onresize = setUserInfoPos;
window.onscroll = setUserInfoPos;