PageSourceSearch

https://onelivingclinic.com/wp-content/plugins/total-theme-core/assets/js/frontend/toggle.min.js?ver=2.8

js onelivingclinic.com collected 2026-10-04 06:31:58 UTC 3,047 bytes, 1 lines download raw bytes

1"function"!=typeof window.vcexToggle&&(window.vcexToggle=function(e){e&&e.childNodes||(e=document);let t=!1;const o=e=>{e&&"undefined"!=typeof wpex&&"function"==typeof wpex.scrollTo&&(wpex.scrollTo(e,-20),c(e,"open"))},n=(e,t,o)=>{if("function"==typeof VcWaypoint&&VcWaypoint.refreshAll(),"function"==typeof Waypoint&&Waypoint.refreshAll(),o&&"open"===t&&"undefined"!=typeof wpex&&"function"==typeof wpex.scrollTo){let t=e.getBoundingClientRect().top;t-="undefined"!=typeof wpex&&"function"==typeof wpex.getLocalScrollOffset?wpex.getLocalScrollOffset():0,(t<0||t>window.innerHeight)&&wpex.scrollTo(e)}},c=(e,o,c=!1)=>{if(!e)return;const i=e.querySelector(".vcex-toggle__content");if(!i||i.classList.contains("wpex-transitioning"))return;const l=e.querySelector(".vcex-toggle__trigger"),s=e.classList.contains("vcex-toggle--active"),a=e.dataset.animate&&"false"!==e.dataset.animate,r=e.dataset.duration;switch(o){case"open":s?t=!1:(a&&"undefined"!=typeof wpex&&"function"==typeof wpex.slideDown?(t=!0,wpex.slideDown(i,r,(function(){t=!1,n(e,"open",c)}))):n(e,"open",c),e.classList.add("vcex-toggle--active"),l.setAttribute("aria-expanded","true"));break;case"close":s?(a&&"undefined"!=typeof wpex&&"function"==typeof wpex.slideUp?(i.style.display="block",t=!0,wpex.slideUp(i,r,(function(){t=!1,n()}))):n(),e.classList.remove("vcex-toggle--active"),l.setAttribute("aria-expanded","false")):t=!1}};document.querySelectorAll(".vcex-toggle__content").forEach((e=>{e&&e.id&&document.querySelectorAll(`[href="#${e.id}"]`).forEach((t=>{t.classList.contains("vcex-toggle__trigger")||t.addEventListener("click",(t=>{t.preventDefault(),o(e.closest(".vcex-toggle"))}))}))})),document.addEventListener("click",(e=>{const n=e.target;n.closest(".woocommerce-review-link")&&(()=>{const e=document.querySelector("#wpex-woo-product-accordion-section--reviews");if(e){const t=e.closest(".vcex-toggle");if(t)return o(t),!0}})()&&e.preventDefault();const i=n.closest(".vcex-toggle__trigger");if(!i)return;if(e.preventDefault(),t)return;const l=i.closest(".vcex-toggle"),s=l.classList.contains("vcex-toggle--active");let a=l.closest(".vcex-toggle-group"),r=l.getAttribute("data-accordion")??l.getAttribute("data-vcex-accordion");!r&&a&&(r=a.getAttribute("data-vcex-accordion"));let d=!1;(a&&null===r||r&&!["0","false"].includes(r))&&(d=!0),d&&(a||(a=l.closest(".vc_column_container")),a&&a.querySelectorAll(".vcex-toggle--active").forEach((function(e){e.isSameNode(l)||c(e,"close")}))),s?c(l,"close"):c(l,"open",d)})),window.addEventListener("load",(()=>{if("wpex_theme_params"==typeof wpex||"object"!=typeof wpex_theme_params)return;const e=location.hash;if(!e||"undefined"===e||"#"===e)return;const t=document.querySelector(e);if(!t||!t.classList.contains("vcex-toggle__content"))return;const n=t.closest(".vcex-toggle");window.setTimeout((function(){o(n)}),parseInt(wpex_theme_params.scrollToHashTimeout))}))}),"interactive"===document.readyState||"complete"===document.readyState?setTimeout(vcexToggle,0):document.addEventListener("DOMContentLoaded",vcexToggle,!1);

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.