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 if (!heading || !config || id){ this._closeMenu = function{ $('.advanced-ui-menu#' + id).remove; }           }            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; };       _advancedui.input = function(config, id, autocomplete){ var input = '' + ''; if (config.autocomplete === true){ input += '' + ''; $.ajax({                   type: "GET",                    url: "/api.php?action=parse&text=&format=json",                    dataType: "json",                    success: function(data){                        var code = data.parse.text["*"];                        $('.advanced-ui-autocomplete ul').append(code);                    }                }); }       }; }