MediaWiki:Common.js

(Difference between revisions)
Jump to: navigation, search
(Created page with "- Any JavaScript here will be loaded for all users on every page load.: if(mw.config.get('wgArticleId') == 1736) { $( document ).ready( function() { var sli = $("#photoGro...")
 
Line 11: Line 11:
 
});
 
});
 
})};
 
})};
 +
$('.xpand a').click(function() {
 +
var c = this.firstChild.nodeValue,
 +
d = c.substring(0,c.length-1);
 +
this.innerHTML = c.charAt(c.length-1) == 'V' ? d+'\u0245' : d+'V';
 +
$('#arch').slideToggle('slow');
 +
});

Revision as of 02:03, 27 January 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.charAt(c.length-1) == 'V' ? d+'\u0245' : d+'V';
	$('#arch').slideToggle('slow');
});
Personal tools
Navigation
societies
additional
Views
Namespaces
Variants
Toolbox
Actions