TechSupport, Bureaucrats, Administrators
1,205
edits
Welcome to Square Enix Wiki! Be sure to check out our To-Do List to see what work we need done!
SilverCrono (talk | contribs) m (maybe this'll make it work?) |
|||
Line 534: | Line 534: | ||
addOnloadHook(Projectlinks); | addOnloadHook(Projectlinks); | ||
/************ | /************/ | ||
// addOnloadHook( createNavigationBarToggleButton ); | |||
// Code courtesy of pcj of WoWWiki. | // Code courtesy of pcj of WoWWiki. | ||
// This is a modified version of the WoWWiki site version, in that it is designed for global.js use. | // This is a modified version of the WoWWiki site version, in that it is designed for global.js use. | ||
Line 580: | Line 581: | ||
s = 0; | s = 0; | ||
ajaxRCCookie = getCookie("ajaxRC")=="on" ? true:false; | ajaxRCCookie = getCookie("ajaxRC")=="on" ? true:false; | ||
document.getElementsByTagName("h1")[s].innerHTML += ' <span style="font-size: xx-small; border-bottom: 1px dotted; cursor:help;" title="Enable auto-refreshing recent changes"> | document.getElementsByTagName("h1")[s].innerHTML += ' <span style="font-size: xx-small; border-bottom: 1px dotted; cursor:help;" title="Enable auto-refreshing recent changes">AUTO-REFRESH:</span><input type="checkbox" id="ajaxRCtoggle" onClick="toggleRC();">'; | ||
document.getElementById("ajaxRCtoggle").checked = ajaxRCCookie; | document.getElementById("ajaxRCtoggle").checked = ajaxRCCookie; | ||
if (getCookie("ajaxRC")=="on") loadRCData(); | if (getCookie("ajaxRC")=="on") loadRCData(); | ||
Line 597: | Line 598: | ||
function loadRCData() { | function loadRCData() { | ||
if (getRCDataRO.readyState == 4 || getRCDataRO.readyState == 0) { | if (getRCDataRO.readyState == 4 || getRCDataRO.readyState == 0) { | ||
if (location.href.indexOf(" | if (location.href.indexOf("/")) { | ||
rcURL = "http://" + location.hostname + " | rcURL = "http://" + location.hostname + "/Special:RecentChanges" + location.search; | ||
} else { | } else { | ||
rcURL = "http://" + location.hostname + "/Special:RecentChanges" + location.search; | rcURL = "http://" + location.hostname + "/Special:RecentChanges" + location.search; |