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
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
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 */
$(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 */