[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/legacy/js/ -> tabs-state.min.js (source)

   1  jQuery((function(e){e.urlParam=function(e){new RegExp("=$").exec(e)||(e+="=");var t=new RegExp("[\\?&]("+e+")([^&#]*)").exec(window.location.href);return t?t[1]:null},e.getXpath=function(t){if("string"==typeof t)return document.evaluate(t,document,null,0,null);if(!t||1!=t.nodeType)return"";if(t.id)return"//*[@id='"+t.id+"']";var n=[].filter.call(t.parentNode.children,(function(e){return e.tagName==t.tagName}));return e.getXpath(t.parentNode)+"/"+t.tagName.toLowerCase()+(n.length>1?"["+([].indexOf.call(n,t)+1)+"]":"")},e.findXpath=function(t,n){for(var a,r=[],o=document.evaluate(t,n||document,null,5,null);a=o.iterateNext();)r.push(a);return e(r)};setTimeout((function(){function t(){return window.location.href.toString().split(window.location.host)[1].replace(/&return=[a-zA-Z0-9%]+/,"").split("#")[0]}var n=JSON.parse(sessionStorage.getItem(t())),a=e("a[data-toggle='tab']");if(a.on("click",(function(n){!function(n){if(window.sessionStorage){var a=t(),r=e(n.target).attr("href"),o=e.getXpath(e(n.target).closest(".nav-tabs").first().get(0));if(o&&void 0!==r){var i=o+"|"+r;if(l=JSON.parse(sessionStorage.getItem(a)))!function(e,t){for(var n=0;n<e.length;n++)e[n].indexOf(t)>-1&&e.splice(n,1)}(l,o);else var l=[];l.push(i),sessionStorage.setItem(a,JSON.stringify(l))}}}(n)})),a.parent(".active").removeClass("active"),!n){var r=t().replace(/\&id=[0-9]*|[a-z]\&{1}_id=[0-9]*/,"");n=JSON.parse(sessionStorage.getItem(r)),sessionStorage.removeItem(r)}if(null===n||window.location.hash){var o=[];if(window.location.hash){a.parents("ul").each((function(t,n){var a=e(n).find("a[href='"+window.location.hash+"']");if(a.length){a.selector?o.push(a):o.push(a.first());var r=a.closest(".tab-pane");if(r){var i=r.attr("id");if(i){var l=e(r).find("a[href='#"+i+"']");l&&o.push(l)}}}l=null,a=null,r=null,i=null})),o.reverse();for(var i=0;i<o.length;i++)jQuery(o[i].selector).click();var l,s,c=window.location;"pushState"in history?history.pushState("",document.title,c.pathname+c.search):(l=document.body.scrollTop,s=document.body.scrollLeft,c.hash="",document.body.scrollTop=l,document.body.scrollLeft=s)}else a.parents("ul").each((function(t,n){e(n).find("a").first().click()}))}else e.each(n,(function(t,n){var a=n.split("|");e.findXpath(a[0]).find("a[data-toggle='tab'][href='"+a[1]+"']").click()}))}),100)}));


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer