Content deleted Content added
Manishearth (talk | contribs) |
Manishearth (talk | contribs) |
||
Line 14:
}
}
//Floating faithful search bar
addOnloadHook(function(){
document.getElementById(
document.getElementById("searchInput2").onkeyup=function (){document.getElementById("searchInput2Suggest").style.position="fixed"}
//And some nice little links (requires User:Manishearth/toolbox.js -- specifically the toggle() function)
document.getElementById('floatcont').innerHTML+='<div id="p-personal2"><span><a onclick="toggle(\'xtraportlet\');this.innerHTML=(this.innerHTML==\'+\')?\'-\':\'+\';" style="cursor:pointer">+</a></span><ul lang="en" xml:lang="en" id="xtraportlet" style="display:none"></ul></div>'
addPortletLink("p-personal2",wgServer+"/wiki/Special:
addPortletLink("p-personal2",wgServer+"/wiki/
addPortletLink("p-personal2",wgServer+"/wiki/User:Manishearth/Mylinks","My links");
addPortletLink("p-personal2",wgServer+"/wiki/User:Manishearth/IRC","IRC");
addPortletLink("p-personal2",wgServer+"/wiki/User:"+wgUserName,wgUserName);
addPortletLink("p-personal2",wgServer+"/wiki/User_talk:"+wgUserName,"Talk");
▲addPortletLink("p-personal2",wgServer+"/wiki/Special:Watchlist","Watchlist");
addPortletLink("p-personal2",wgServer+"/wiki/Special:Preferences","Preferences");
addPortletLink("p-personal2",wgServer+"/wiki/Special:Contributions/"+wgUserName,"My contribs");
▲addPortletLink("p-personal2",wgServer+"/wiki/User:Manishearth/Mylinks","My links");
});
▲ }
▲ }
</source>
One bug (minor) If you have already scrolled down, the first letter typed into the box will cause the suggestion menu to pop up elsewhere, but this is fixed by typing another letter.
|