MediaWiki:Common.js: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(update AJAX RC)
m (oops)
Line 259: Line 259:
function ajaxRC() {
function ajaxRC() {
appTo = $(".firstHeading");
appTo = $(".firstHeading");
appTo.append('&nbsp;<span style="font-size: xx-small; border-bottom: 1px dotted; cursor:help;" title="Automatically refresh the current page every ' + Math.floor(rcRefresh/1000) + ' seconds">Auto-refresh:</span><input type="checkbox" id="autoRefreshToggle"><span style="position:relative; top:5px; left:5px;" id="autoRefreshProgress"><img src="/images/loader.gif" border="0" alt="AJAX operation in progress" /></span>');
appTo.append('&nbsp;<span style="font-size: xx-small; border-bottom: 1px dotted; cursor:help;" title="Automatically refresh the current page every ' + Math.floor(rcRefresh/1000) + ' seconds">AUTO-REFRESH:</span><input type="checkbox" id="autoRefreshToggle"><span style="position:relative; top:5px; left:5px;" id="autoRefreshProgress"><img src="/images/loader.gif" border="0" alt="AJAX operation in progress" /></span>');
$("#autoRefreshToggle").click(function() {
$("#autoRefreshToggle").click(function() {
setCookie("ajaxRC", $("#autoRefreshToggle").is(":checked") ? "on" : "off")
setCookie("ajaxRC", $("#autoRefreshToggle").is(":checked") ? "on" : "off")
Line 286: Line 286:




==================================================
/* ==================================================
   $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $
   $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $
   tabber.js by Patrick Fitzgerald pat@barelyfitz.com
   tabber.js by Patrick Fitzgerald pat@barelyfitz.com