User:Manishearth/Scripts/Snippets: Difference between revisions

Content deleted Content added
Line 8:
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/User:"+wgUserName,wgUserName);