MediaWiki:Mobile.js: Difference between revisions

Created page with "Any JavaScript here will be loaded for users using the mobile site Any JavaScript here is loaded instead of MediaWiki:Common.js for users using the mobile site: // See: https://en.wikipedia.org/wiki/Help:Collapsing // Restore collapsible elements by loading the jQuery module for them. $( function (mw, $) { 'use strict'; mw.loader.using('jquery.makeCollapsible', function ( ) { $( '.mw-collapsible' ).makeCollapsible ( ); } ); } (mediaWiki, jQuery) );"
 
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for users using the mobile site
/* esversion: 6*/
Any JavaScript here is loaded instead of MediaWiki:Common.js for users using the mobile site */


// See: https://en.wikipedia.org/wiki/Help:Collapsing
if (mw.config.get('skin') === 'minerva') {
// Restore collapsible elements by loading the jQuery module for them.
    document.querySelectorAll('.inflection-table-collapsed').forEach(el => {
 
        el.classList.remove('inflection-table-collapsed');
$( function (mw, $) {
    });
'use strict';
}
 
mw.loader.using('jquery.makeCollapsible', function ( ) {
$( '.mw-collapsible' ).makeCollapsible ( );
} );
} (mediaWiki, jQuery) );