MediaWiki:Vector-2022.js: Difference between revisions

From The Reed and Rite
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Manual revert
Line 3: Line 3:
     var titlebar = document.querySelector('.vector-page-titlebar');
     var titlebar = document.querySelector('.vector-page-titlebar');
     if (indicators && titlebar) {
     if (indicators && titlebar) {
        // Add class to hide the indicators while moving
        indicators.classList.add('hidden');
       
        // Move the indicators
         titlebar.appendChild(indicators);
         titlebar.appendChild(indicators);
       
        // Remove the hidden class after moving
        indicators.classList.remove('hidden');
     }
     }
});
});

Revision as of 06:59, 10 May 2025

$(function () {
    var indicators = document.querySelector('.mw-indicators');
    var titlebar = document.querySelector('.vector-page-titlebar');
    if (indicators && titlebar) {
        titlebar.appendChild(indicators);
    }
});