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 }));               $('.advanced-ui-menu-blackout').css({                    "width": (window.innerWidth || document.body.clientWidth) + "px",                    "height": (window.innerHeight || document.body.clientHeight) + "px"                }); $('.advanced-ui-close-button').click(function{                   $('.advanced-ui-menu-blackout').remove;                }); }       };        _advancedui.radio = function(title, name, content){ var radio = '' + ' ' +                       ' ' + title + ' ' + ' ' +                   ' ' + content + ' ' + ' ';           return radio; };       _advancedui.createRadio = function(name, option){ var rad = '' + option.title + ' ' + ''; return rad; };       _advancedui.button = function(title, config){ var button; var id = Object.keys(config)[0]; button = '' + title + ''; return button; }; }