Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
$(document).ready(function() {
$(document).ready(function() {
     var discordElement = $(`
     var discordElement = $(`
         <div class="g-discord citizen-header__item citizen-dropdown" style="display: flex; justify-content: center; align-items: center; padding-bottom: 10px;">
         <div class="g-discord citizen-header__item citizen-dropdown" style="display: flex; justify-content: center; align-items: center;">
             <a href="https://discord.gg/gscripts" target="_blank">
             <a href="https://discord.gg/gscripts" target="_blank">
                 <img src="https://wiki.gscripts.co/images/4/4b/Discord_30_30.png" alt="Discord" width="30" height="30">
                 <img src="https://wiki.gscripts.co/images/4/4b/Discord_30_30.png" alt="Discord" width="30" height="30">
Line 13: Line 13:
});
});


 
/* $(document).ready(function() {
$(document).ready(function() {
     var $sections = $('.accordion-section');
     var $sections = $('.accordion-section');


Line 48: Line 47:
         }
         }
     });
     });
});
}); */
 
// Load Citizen.js if using Citizen skin
if (mw.config.get('skin') === 'citizen') {
  mw.loader.load('/index.php?title=MediaWiki:Citizen.js&action=raw&ctype=text/javascript');
}