MediaWiki:Common.js
(Difference between revisions)
Line 16: | Line 16: | ||
this.innerHTML = c.charCodeAt(c.length-1) === 9654 ? d+'\u25BC' : d+'\u25B6'; | this.innerHTML = c.charCodeAt(c.length-1) === 9654 ? d+'\u25BC' : d+'\u25B6'; | ||
$('#arch').slideToggle('slow'); | $('#arch').slideToggle('slow'); | ||
+ | return false; | ||
}); | }); |
Revision as of 02:00, 22 November 2013
/* Any JavaScript here will be loaded for all users on every page load. */ if(mw.config.get('wgArticleId') == 1736) { $( document ).ready( function() { var sli = $("#photoGroups .holder ul")[0]; sli.parentNode.style.height = "200px"; $("#photoGroups p").each(function(i) { $(this).mouseenter(function() { $(sli).stop(); $(sli).animate({marginTop:"-"+(200+i*200)+"px"}); }); }); })}; $('.xpand a').click(function() { var c = this.firstChild.nodeValue, d = c.substring(0,c.length-1); this.innerHTML = c.charCodeAt(c.length-1) === 9654 ? d+'\u25BC' : d+'\u25B6'; $('#arch').slideToggle('slow'); return false; });