MediaWiki:Common.js
(Difference between revisions)
| Line 14: | Line 14: | ||
var c = this.firstChild.nodeValue, | var c = this.firstChild.nodeValue, | ||
d = c.substring(0,c.length-1); | d = c.substring(0,c.length-1); | ||
| − | this.innerHTML = c. | + | this.innerHTML = c.charCodeAt(c.length-1) === 9654 ? d+'\u25BC' : d+'\u25B6'; |
$('#arch').slideToggle('slow'); | $('#arch').slideToggle('slow'); | ||
}); | }); | ||
Revision as of 01:55, 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');
});
