MediaWiki:Vector-2022.js: Difference between revisions

mNo edit summary
Tag: Reverted
m Protected "MediaWiki:Vector-2022.js" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(One intermediate revision by the same user not shown)
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');
     }
     }
});
});