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, 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; };   $('.advanced-ui-menu-blackout').css({        "width": (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) + "px",        "height": (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight) + "px"    }); $('.advanced-ui-close-button').on('click', function{       $('.advanced-ui-menu').remove;    }); }