|
Can't help to enhance it.
changes:
1. move up the logo, I use better gmail, so the logo now won't cover the expand/collapse gmail links.
2. widen the navigation a to 20ex, orginally 16.6ex, better for long label name or chat buddy name.
3. because of 2, the arrow has to be shifted to the right to 200px.
Cheers!
function fixLogo() {
var ds = document.getElementById('ds_inbox');
if (ds != null){
ds.style.position = "fixed";
ds.style.paddingTop = 0;
}else{
setTimeout(fixLogo, 500);
}
}
function fixMenu() {
var cont = document.getElementById('co');
var menu = document.getElementById('nav');
if (cont != null && menu != null){
cont.style.marginLeft = "20ex";
menu.style.position = "fixed";
menu.style.overflow = "scroll";
menu.style.height = document.body.clientHeight - 59;
menu.style.width = "20ex";
}else{
setTimeout(fixMenu, 500);
}
}
function fixArrow() {
var arrow = document.getElementById('ar');
if (arrow != null) {
arrow.style.left = "200px";
arrow.style.top = "140px";
} else {
setTimeout(fixArrow, 500);
}
}
fixLogo();
fixMenu();
fixArrow();
|