Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
m |
m |
||
Line 12: | Line 12: | ||
}); | }); | ||
$('#mtoogle').toggle(function () { | $('#mtoogle').toggle(function () { | ||
− | $('#mtoogle').addClass('pause') | + | $('#mtoogle').addClass('pause').document.getElementById('playTune').pause(); |
− | |||
}, function () { | }, function () { | ||
$('#mtoogle').removeClass('pause').document.getElementById('playTune').play(); | $('#mtoogle').removeClass('pause').document.getElementById('playTune').play(); | ||
}); | }); | ||
}); | }); |
Revision as of 10:53, 11 March 2014
/* Any JavaScript here will be loaded for all users on every page load. */ jQuery(document).ready(function ($) { $('.spoiler-body').hide(); $('.spoiler-title').click(function () { $(this).toggleClass('opened').toggleClass('closed').next().slideToggle(); if ($(this).hasClass('opened')) { $(this).html('  '); } else { $(this).html('  '); } }); $('#mtoogle').toggle(function () { $('#mtoogle').addClass('pause').document.getElementById('playTune').pause(); }, function () { $('#mtoogle').removeClass('pause').document.getElementById('playTune').play(); }); });