1(function ($) { 2 $.fn.displayPlugin = function (method) { 3 var container = this; 4 var methods = { 5 init: function (options) { 6 // merge options with settings 7 if ('undefined' !== typeof options) { 8 this.displayPlugin.itens = $.extend({}, this.displayPlugin.itens, options); 9 } 10 this.displayPlugin.settings.displayThemeObj = new DisplayTheme(this.displayPlugin.itens); 11 this.displayPlugin.settings.displayThemeObj.parse.display(container); 12 uiPages.execute_display(this.displayPlugin.settings.displayThemeObj); 13 } 14 }; 15 // if a method as the given argument exists 16 if (methods[method]) { 17 return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); 18 } else if (typeof method === 'object' || !method) { 19 return methods.init.apply(this, arguments); 20 } else { 21 $.error('Method "' + method + '" does not exist in webcup!'); 22 } 23 } 24 ; 25 26 // Defaults 27 $.fn.displayPlugin.itens = {}; 28 29 $.fn.displayPlugin.settings = { 30 displayThemeObj: null 31 }; 32})(jQuery); 33 34var displayPluginAutomated = function () { 35 this.push = function () { 36 $('#loading-league').show(); 37 for (var i = 0; i < arguments.length; i++) { 38 if ('undefined' !== typeof (arguments[i].container)) { 39 $('#' + arguments[i].container).displayPlugin(arguments[i]); 40 } 41 } 42 $('#loading-league').hide(); 43 }; 44}; 45var _old_displayOpt = window._displayOpt; 46window._displayOpt = new displayPluginAutomated(); 47window._displayOpt.push.apply(window._displayOpt, _old_displayOpt);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.