User:Ultimate Dark Carnage/advancedui.js

if (mw.config.get('skin') == 'oasis' || mw.config.get('skin') == 'wikia'){ var _advancedui = {}; _advancedui.openMenu = function(heading, id, config){ if (!heading || !id || !config){ return; }           else { var menuHTML = '' + '' + ' ' + heading + ' ' + '' + '' + '' + ' ' +                       ' ' + config.content + ' ' + '' + ' ' + config.footer + ' ' + ' ' +                   ' ';                $('.WikiaSiteWrapper').append($(' ', { "class": "AdvancedUIMenuBlackout advanced-ui-menu-blackout", "id": id, "data-name": heading, html: menuHTML }));           }        };        _advancedui.radio = function(title, name){ var radio = '' + ' ' +                       ' ' + title + ' ' + ' ' +                   ' ' +                ' ';            return radio; };       _advancedui.createRadio = function(name, options){ var t;           for (var i = 0; i < options.length; i++){ var opt = options[i]; var id = opt.id, radio_title = opt.title; t = '' + title + ' ' + ''; $('.advanced-ui-content .radio-buttons[data-name="' + name + '"]').append(t); }       };        _advancedui.button = function(title, config){ var button; var id = Object.keys(config)[0]; button = '' + title + ''; return button; };   $('.advanced-ui-close-button').on('click', function{        $('.advanced-ui-menu').remove;    }); }