Jump to content

MediaWiki:Mobile.js: Difference between revisions

From Rejoice in Saint Joan of Arc
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit
 
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the mobile site */
/* All JavaScript here will be loaded for users of the mobile site */
/* load message on mobile */
$(document).ready(function() {
    if (mw.config.get('skin') === 'minerva') { // Minerva is the default mobile skin
        $('<div class="mobile-banner">📢 Special message for mobile users!</div>')
            .prependTo('.mw-body');
    }
});

Latest revision as of 23:47, 7 February 2025

/* All JavaScript here will be loaded for users of the mobile site */