MediaWiki:Minerva.js: Difference between revisions

From WikiLegend
Jump to navigation Jump to search
Created page with "All JavaScript here will be loaded for users of the MinervaNeue skin: $(document).ready(function() { var logo = $('.mw-wiki-logo'); if (logo.length) { // Remove existing inline images if any logo.find('img').remove(); // Force reapply background image (in case CSS didn't apply) logo.css({ 'background-image': 'url(/images/phonr.png)', 'background-size': 'contain', 'background-repeat': 'no-r..."
 
No edit summary
Tags: Mobile edit Mobile web edit
 
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the MinervaNeue skin */
/* All JavaScript here will be loaded for users of the MinervaNeue skin */
$(document).ready(function() {
    var logo = $('.mw-wiki-logo');
    if (logo.length) {
        // Remove existing inline images if any
        logo.find('img').remove();
        // Force reapply background image (in case CSS didn't apply)
        logo.css({
            'background-image': 'url(/images/phonr.png)',
            'background-size': 'contain',
            'background-repeat': 'no-repeat',
            'background-position': 'center',
            'width': '120px',
            'height': '40px',
            'text-indent': '-9999px'
        });
    }
});

Latest revision as of 14:51, 4 June 2025

/* All JavaScript here will be loaded for users of the MinervaNeue skin */