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, options){ var option; for (var i = 0; i < options.length; i++){ var opt = options[i]; var x = Object.keys(opt); for (var j = 0; j < x.length; j++){ option = '' + opt[x[j]] + ' ' + ''; }           }            var radio = '' + ' ' +                       ' ' + title + ' ' + ' ' +                   ' ' + option + ' ' + ' ';           return radio; };       _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;    }); }