MediaWiki:FandomizedWikiFeatures/adaptable.js

/* FandomizedWikiFeatures/adaptable.js * Dependent on FandomizedWikiFeatures. */ // Adaptable Toggles $(function {   var colorButtons = mw.config.get('wgSassParams')['color-buttons'];    var colorLinks = mw.config.get('wgSassParams')['color-links'];    $('.WikiFeatures .features .feature .actions .slider.on').css('background-color', colorButtons);    $('.WikiFeatures .features .feature .actions .slider.on .button').css({'background-color': colorButtons, 'filter':'brightness(150%)'});    $('.WikiFeatures .features .feature .actions .feedback').css({'border-color': colorLinks, 'color': colorLinks}); }); // Header Icons mw.hook('dev.wds').add(function(wds) {       $('.heading-labs').prepend( $(' ', {               'class': 'wds-icon dev-wds-icon',                'id': 'dev-wds-icons-gear'            }) );       wds.render('.heading-labs');        $('.heading-features').prepend( $(' ', {               'class': 'wds-icon dev-wds-icon',                'id': 'dev-wds-icons-controls'            }) );       wds.render('.heading-features');    }); importArticle({ type: 'script', article: 'u:dev:WDSIcons/code.js' });