PageSourceSearch

https://phphack.ru/js/bs/fsp/core.min.js?_v=389f094b

js phphack.ru collected 2026-10-04 14:58:32 UTC 4,779 bytes, 10 lines download raw bytes

1jQuery.expr[":"].regex=function(d,f,c){f=c[3].split(",");var a=/^(data|css):/;c=f[0].match(a)?f[0].split(":")[0]:"attr";a=f.shift().replace(a,"");return(new RegExp(f.join("").replace(/^\s+|\s+$/g,""),"ig")).test(jQuery(d)[c](a))};
2!function(d,f,c){XF.FSP=XF.Element.newHandler({options:{updateInterval:15,updateLink:"index.php?statistic-pro/tab"},groups:[],prevTypeWindow:"",isActiveWindow:!0,init:function(){var a=this;this.$target.find(".tabGroup").each(function(){a.groups.push(new XF.FSPGroup(a,d(this)))});this.$target.find(".refreshButton").click(XF.proxy(this,"update"));0!==this.options.updateInterval&&(this.updateInterval=setInterval(XF.proxy(this,"update"),1E3*this.options.updateInterval))},update:function(){c.hasFocus()&&
3d.each(this.groups,function(a,b){b.updateLock||(b.updateLock=!0,b.tabs.selectedTab.loadData(function(){b.updateLock=!1}))})}});XF.FSPGroup=XF.create({options:{groupId:""},fsp:null,tabs:null,$target:null,ajaxData:{},updateLock:!1,__construct:function(a,b,e){this.options=XF.applyDataOptions(this.options,b.data(),e);this.fsp=a;this.$target=b;this.$content=b.find(".tabGroup-content");this.tabs=new XF.FSPTabs(a,this,b.find("ul.tabs"));d(c).on("fsp_ajax_extend-"+this.options.groupId,XF.proxy(this,"extendAjaxData"));
4XF.Cookie.get("fsp_ajax_"+this.options.groupId)&&(this.ajaxData=XF.Cookie.get("fsp_ajax_"+this.options.groupId))},loading:function(){this.replaceContent(this.getLoadingSpinner())},replaceContent:function(a,b){0<a.html().replace(" ","").length?(this.$content.find("*:regex(data-xf-init, [a-zA-z]*tooltip)").trigger("tooltip:hide"),this.$content=this.$content.html(a),XF.activate(this.$content),"function"==typeof b&&b.call(null,!0)):"function"==typeof b&&b.call(null,!1)},getLoadingSpinner:function(){return d('<div class="loader-block"><div class="loader"><div></div><div></div></div></div>')},
5extendAjaxData:function(a,b){var e=this;this.ajaxData=d.extend(!0,this.ajaxData,b);XF.Cookie.set("fsp_ajax_"+this.options.groupId,JSON.stringify(b));this.updateLock=!0;this.tabs.selectedTab.loadData(function(){e.updateLock=!1})}});XF.FSPTabs=XF.create({options:{isMenu:!1},fsp:null,group:null,$target:null,tabList:[],selectedTab:null,$menuTab:null,__c
5onstruct:function(a,b,e,g){"undefined"===typeof g&&(g={});this.options=XF.applyDataOptions(this.options,e.data(),g);this.tabList=[];var c=this;this.fsp=
6a;this.group=b;this.$target=e;e.find(".tab:not(.menu-open)").each(function(){c.tabList.push(new XF.FSPTab(c.fsp,c,d(this)))});this.options.isMenu&&(this.$menuTab=e.find(".tab.menu-open"));this.selectedTab||this.firstTab().select()},remove:function(a){if(a=-1!==this.tabList.indexOf(a))this.tabList[a].$target.remove(400),this.tabList.splice(a,1),this.firstTab().select()},firstTab:function(){return this.tabList[0]}});XF.FSPTab=XF.create({options:{tabId:""},fsp:null,tabs:null,$target:null,selected:!1,
7cache:{},__construct:function(a,b,e,c){"undefined"===typeof c&&(c={});this.options=XF.applyDataOptions(this.options,e.data(),c);this.fsp=a;this.tabs=b;this.$target=e.click(XF.proxy(this,"select"));e.is(".is-selected")&&(this.selected=!0,this.tabs.selectedTab=this,this.cache={content:d(this.tabs.group.$content.html())})},loadData:function(a){var b=this,c=d.extend(!0,this.tabs.group.ajaxData,{tab_id:this.options.tabId}),f=this.cache;XF.ajax("GET",this.fsp.options.updateLink,c,function(c){c.html&&c.html.content&&
8XF.setupHtmlInsert(c.html,function(a){d.isEmptyObject(f)?b.cache={content:a}:f.content=a;b.tabs.group.replaceContent(a,function(a){a||b.tabs.remove(this)})});"function"===typeof a&&a.call(null)},{global:!1})},select:function(){if(this.tabs.group.updateLock)return this;var a=this,b=this.tabs.selectedTab;if(b){if(b===this)return this;b.deselect()}this.tabs.group.updateLock=!0;this.tabs.options.isMenu&&this.tabs.$menuTab.find(".title").text(a.$target.find(".title").text());this.$target.addClass("is-selected");
9this.selected=!0;this.tabs.selectedTab=this;XF.Cookie.set("fsp_group_"+this.tabs.group.options.groupId+"_selected_tab",this.options.tabId);d.isEmptyObject(this.cache)?this.tabs.group.loading():this.tabs.group.replaceContent(this.cache.content);this.loadData(function(){a.tabs.group.updateLock=!1});return this},deselect:function(){this.$target.removeClass("is-selected")},isSelected:function(){return this.selected}});XF.FSPAjaxDataReplacerClick=XF.Click.newHandler({eventNameSpace:"XFFSPAjaxDataReplacerClick",
10options:{name:"",val:"",groupId:""},init:function(){},click:function(){if(this.options.groupId&&this.options.name&&this.options.val){var a={};a[this.options.name]=this.options.val;d(c).trigger("fsp_ajax_extend-"+this.options.groupId,[a])}}});XF.Element.register("fsp","XF.FSP");XF.Click.register("fsp-ajax-data-replacer","XF.FSPAjaxDataReplacerClick")}(window.jQuery,window,document);

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.