MediaWiki:Mobile.js: Difference between revisions

From Linguifex
Jump to navigation Jump to search
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) );

Revision as of 00:06, 12 July 2025

/* esversion: 6*/

if (mw.config.get('skin') === 'minerva') {
    document.querySelectorAll('.inflection-table-collapsed').forEach(el => {
        el.classList.remove('inflection-table-collapsed');
    });
}