Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/dist/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/dist/public/js/TableOfContent.min.js
!function o(i,r,c){function l(t,e){if(!r[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=r[t]={exports:{}},i[t][0].call(n.exports,function(e){return l(i[t][1][e]||e)},n,n.exports,o,i,r,c)}return r[t].exports}for(var s="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,n){"use strict";function p(e,t){return{text:e,level:t,id:void 0,parent:2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,children:[]}}function u(e){var s=[],a=0,d=void 0;return e.forEach(function(e,t){var n,o,i,r=e.outerHTML.match(/<h([\d]).*>/)[1],c=e.innerText;switch(a<r){case!0:void 0===d?(d=new p(c,r),s.push(d)):(o=(n=new p(c,r)).level>d.level?d:d.parent,(n.parent=o).children.push(n),d=n);break;case!1:for(var l=new p(c,r);;){if(d.level<l.level){(l.parent=d).children.push(l),d=l;break}if(void 0===(d=d.parent)){s.push(l),d=l;break}}}a=r,""===e.id&&(e.id="dipi-toc-"+(i=(i=c).replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").trim(),(i=(i=/^[a-zA-Z_]/.test(i)?i:"_"+i).replace(/[^a-zA-Z0-9-_]/g,"")).toLowerCase())+t),d.id=e.id}),s}function f(e,t){var l=[1],s=0;return function i(e,r,t){t=t?parseInt(t)+1:1;var c='<ul class="dipi-toc__sublist dipi-toc__sublist--lvl-'.concat(t,'">');return e.forEach(function(e){var t=l.join("."),t=0===s?"0"+t+".":t,n="",t=("on"===r.show_list_numbers&&(n='<span class="dipi-toc__index">'.concat(t,"</span>&nbsp;")),""),o=(r.icon&&(t='<span class="dipi-toc__icon">'.concat(r.icon,"</span>")),"dipi-toc__item--lvl-".concat(e.level));c+='<li id="'.concat(e.id,'_toc_li"><a class="dipi-toc-link ').concat(o,'" href=#').concat(e.id,">").concat(t).concat(n).concat(e.text,"</a></li>"),e.children.length&&(l.push(1),s+=1,c+="".concat(i(e.children,r,e.level))),l[s]+=1}),--s,l.pop(),c+"</ul>"}(e,t)}function h(e){!function o(e){e.forEach(function(e){var t=document.querySelector("#".concat(e.id)),n=new IntersectionObserver(function(e,t){e.forEach(function(e){var t=document.querySelector("li#".concat(e.target.id,"_toc_li"));t&&(e.isIntersecting?t.classList.add("active"):t.classList.remove("active"))})},{root:null,rootMargin:"0px",threshold:0});t?n.observe(t):console.error("Target element not found."),e.children.length&&o(e.children)})}(e)}jQuery(function(d){function e(e){var r=d(e),e=d(e).attr("data-dipi-toc"),c=JSON.parse(atob(e)),o="desktop",i=r.find(".dipi-toc__collapse"),n=i.outerHeight(!0),l=function(e){r.hasClass("open")?(r.removeClass("open"),i.height(0)):(r.addClass("open"),i.height(n))};function t(e){e.stopPropagation(),e.preventDefault();var t,e=d(this).attr("href"),e=document.querySelector(e),n=0;return c.scroll_offset&&(t=c.scroll_offset.split("|"),n="desktop"===o?parseInt(t[0]):"tablet"===o?parseInt(t[1]):parseInt(t[2])),e&&(t=e.getBoundingClientRect().top+window.pageYOffset-n,window.scrollTo({top:t,behavior:"smooth"})),"on"===c.collapsible&&(("on"===(e=c.collapsible_table.split("|"))[0]&&"desktop"===o||"on"===e[1]&&"tablet"===o||"on"===e[2]&&"phone"===o)&&("on"===(n=c.close_on_click.split("|"))[0]&&"desktop"===o||"on"===n[1]&&"tablet"===o||"on"===n[2]&&"phone"===o))&&(r.removeClass("open"),i.height(0)),!1}function s(){var e=null;if("on"===c.generateForWholePage)e=document.querySelector("#main-content");else{if(!c.sectionSelector||!document.querySelector(c.sectionSelector))return;e=document.querySelector(c.sectionSelector)}var n=c.headingTags.split("|"),o=c.exclude_selector||"",i=c.container_exclude_selector||"",t=["h1","h2","h3","h4","h5","h6"].filter(function(e,t){return"on"===n[t]}),e=e.querySelectorAll(t.join(",")),t=u(Array.from(e).filter(function(e){return!(e.closest(".dipi-toc__title")||function(t,e){var n;if(e)return n=!1,e.split(",").forEach(function(e){n=!(!t.closest(e)&&!n)}),n}(e,i)||function(t,e){var n;if(e)return n=!1,e.split(",").forEach(function(e){n=!(!t.matches(e)&&!n)}),n}(e,o)||(t=e,"none"===(t=window.getComputedStyle(t)).display)||"hidden"===t.visibility||e.closest(".swiper-slide-duplicate"));var t})),e=f(t,c);r.find(".dipi-toc__list").html(e),h(t)}function a(){o=window.innerWidth<768?"phone":window.innerWidth<=980&&768<=window.innerWidth?"tablet":"desktop","on"===c.collapsible&&function(e){if(n=i.find(".dipi-toc__list").outerHeight(!0),i.height(n),"on"!==c.collapsible)return;var t=c.collapsible_table.split("|");"on"===t[0]&&"desktop"===o||"on"===t[1]&&"tablet"===o||"on"===t[2]&&"phone"===o?("on"===(t=c.closed_default.split("|"))[0]&&"desktop"===o||"on"===t[1]&&"tablet"===o||"on"===t[2]&&"phone"===o?(e.removeClass("open"),i.height(0)):(e.addClass("open"),i.height(n)),e.find(".dipi-toc__title")[0].removeEventListener("click",l),e.find(".dipi-toc__title")[0].addEventListener("click",l)):(e.find(".dipi-toc__title")[0].removeEventListener("click",l),e.addClass("open"),i.height(n))}(r),d(r).off("click",".dipi-toc-link",t),d(r).on("click",".dipi-toc-link",t)}s(),a(),window.addEventListener("resize",function(){setTimeout(function(){s(),a()},300)})}d(".dipi-toc").each(function(){e(this)})})},{}]},{},[1]);

Hry