Difference between revisions of "MediaWiki:Common.js"
A fragment of the Garden of Remembering
(...?) |
(Maybe this does still work...) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
/* Collapsibility from uncyc */ | /* Collapsibility from uncyc */ |
Latest revision as of 16:39, 18 November 2020
/* Any JavaScript here will be loaded for all users on every page load. */
/* Collapsibility from uncyc */
$j( function() {
$j( '.collapsed > *' ).next().hide();
$j( '.expanded > *, .collapsed > *' ).click( function() {
var $t = $j( this );
$t.next().toggle();
$t.parent().toggleClass( 'expanded collapsed' );
} );
} );