Jump to content

MediaWiki:Mobile.js: Difference between revisions

From Rejoice in Saint Joan of Arc
Created page with "All JavaScript here will be loaded for users of the mobile site: $(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'); } });"
 
No edit summary
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() {
$(document).ready(function() {
     if (mw.config.get('skin') === 'minerva') { // Minerva is the default mobile skin
     if (mw.config.get('skin') === 'minerva') { // Minerva is the default mobile skin

Revision as of 23:43, 7 February 2025

/* 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');
    }
});