MediaWiki:Common.js
(відмінності між версіями)
Bogdan (Обговорення • внесок) (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...") |
Bogdan (Обговорення • внесок) |
||
| Рядок 11: | Рядок 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'); | ||
| + | }); | ||
Версія за 02:03, 27 січня 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');
});
