initial setup of framework code
[cacert-mgr.git] / manager / public / js / positionUserInfo.js
1 function setUserInfoPos() {
2 var x = window.innerWidth;
3 var ui;
4
5 x = x - 18; // maybe scroll bar
6
7 ui = document.getElementById('userinfo');
8 if (ui != null) {
9 ui.style.right = "3px";
10 // document.getElementById('userinfo').style.bottom = "3px";
11 ui.style.bottom = 3 - window.pageYOffset + "px";
12 }
13 }
14
15 window.onload = setUserInfoPos;
16 window.onresize = setUserInfoPos;
17 window.onscroll = setUserInfoPos;