PageSourceSearch

https://margarethsignorelli.com.br/app/themes/g4landing/javascript/functions.v4.min.js?ver=2.4.7

js margarethsignorelli.com.br collected 2026-10-10 00:40:12 UTC 8,839 bytes, 1 lines download raw bytes

1"use strict";function updateBreakpoints(){window.isXS=window.innerWidth<=639,window.isSM=window.innerWidth>=640&&window.innerWidth<=991,window.isMD=window.innerWidth>=992&&window.innerWidth<=1199,window.isLG=window.innerWidth>=1200}function getUrlParameter(e){return new URLSearchParams(window.location.search).get(e)||""}function toggleMenu(){var e=document.getElementById("sideMenu");e&&(e.classList.toggle("side-menu-open"),document.body.classList.toggle("side-nav-on"))}function copyLink(){var e=window.location.href;navigator.clipboard.writeText(e).then(function(){console.log("URL copiada com sucesso!")}).catch(function(e){console.error("Erro ao copiar URL: ",e)})}function matchHeight(){function e(e){const t=document.querySelectorAll("."+e);if(0===t.length)return;if(t.forEach(e=>e.style.minHeight=""),window.isXS)return;const n=Math.max(...Array.from(t).map(e=>e.getBoundingClientRect().height));t.forEach(e=>e.style.minHeight=n+"px")}const t=[];for(let e=1;e<=6;e++)t.push("min-line-"+e);t.forEach(t=>{e(t)})}function maskPhone(e){let t=e.value.replace(/\D/g,"");0!==t.length?(t=t.slice(0,11),t.length>10?e.value=t.replace(/^(\d{2})(\d{5})(\d{4})$/,"($1) $2-$3"):t.length>6?e.value=t.replace(/^(\d{2})(\d{4})(\d{0,4})$/,"($1) $2-$3"):t.length>2?e.value=t.replace(/^(\d{2})(\d{0,4})$/,"($1) $2"):e.value=t.replace(/^(\d{0,2})$/,"($1")):e.value=""}function startConfig(){window.htmx&&(htmx.config.includeIndicatorStyles=!1,htmx.config.viewTransitions=!0)}const isNativeApp="undefined"!=typeof CheckApp,isiPhoneiPad=/iPhone|iPad|iPod/i.test(navigator.userAgent);startConfig(),window.addEventListener("resize",function(){updateBreakpoints(),setTimeout(function(){matchHeight()},300)}),window.addEventListener("scroll",function(){var e=document.querySelector(".scroll-top-arrow");if(e){var t=window.scrollY;t>150?(e.classList.add("d-inline"),e.classList.remove("d-none")):(e.classList.add("d-none"),e.classList.remove("d-inline"))}}),document.addEventListener("DOMContentLoaded",function(){updateBreakpoints(),matchHeight();var e=document.querySelector("header"),t=document.querySelector("nav.navbar-main");if(e&&"brx-header"!==e.id&&t){var n=t.offsetHeight,o=0;window.addEventListener("scroll",function(){var t=window.pageYOffset;t>o&&t>n?(e.classList.remove("scroll-up"),e.classList.add("fixy")):t<=n?e.classList.remove("fixy","scroll-up"):e.classList.add("scroll-up"),o=t<=0?0:t})}var i=document.querySelectorAll('.menu-item a[href*="#"]');i.forEach(function(e){e.addEventListener("click",function(e){var t=this.getAttribute("href"),n=t.indexOf("#");if(-1!==n){var o=t.substring(n+1),i=document.getElementById(o);i&&(e.preventDefault(),document.body.classList.contains("side-nav-on")&&toggleMenu(),window.scrollTo({top:i.offsetTop,behavior:"smooth"}))}})});var s=document.querySelectorAll('.section-link[href*="#"]');s.forEach(function(e){e.addEventListener("click",function(e){var t=this.getAttribute("href"),n=t.indexOf("#");if(-1!==n){var o=t.substring(n+1),i=document.getElementById(o);i&&(e.preventDefault(),window.scrollTo({top:i.offsetTop,behavior:"smooth"}))}})});var l=document.querySelector(".scroll-top-arrow");l&&l.addEventListener("click",function(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})});var r=document.getElementById("showSideMenu"),a=document.getElementById("sideMenuClose"),c=document.getElementById("site-mask");r&&a&&c&&(r.onclick=toggleMenu,a.onclick=toggleMenu,c.onclick=toggleMenu);var d=document.querySelectorAll(".vertical-nav-inner .arrow-menu");d.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=e.target.closest(".menu-item-has-children");t&&t.classList.toggle("show-sub-menu")})});var u=document.getElementById("accordion-main");if(u){var m=document.querySelectorAll(".accordion-v1 .panel-heading");m.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=this.nextElementSibling;m.forEach(function(e){var n=e.nextElementSibling;n!==t&&n.classList.contains("panel-open")&&(n.classList.remove("panel-open"),e.classList.remove("panel-open"))}),t.classList.contains("panel-open")?(t.classList.remove("panel-open"),this.classList.remove("panel-open")):(t.classList.add("panel-open"),this.classList.add("panel-open"))})})}var v=document.getElementById("toggle-main");if(v){var p=document.querySelectorAll(".toggles-v1 .panel-heading");p.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=this.nextElementSibling;t.classList.contains("panel-open")?(t.classList.remove("panel-open"),this.classList.remove("panel-open")):(t.classList.add("panel-open"),this.classList.add("panel-open"))})})}var f=document.getElementById("wow-numbers");if(f){const e=window.counterUp.default,t=document.querySelectorAll(".animated-number"),n=n=>
1{n.forEach(n=>{const o=n.target;if(n.isIntersecting&&!o.classList.contains("is-visible")){for(const n of t)e(n,{duration:3e3,delay:16});o.classList.add("is-visible")}})},o=new IntersectionObserver(n,{threshold:1});o.observe(f)}var g=document.querySelector(".tooltip-whatsapp");if(g){var h=document.querySelector(".scroll-message");g.addEventListener("click",function(){g.classList.add("tooltip-trigger"),h&&document.querySelector(".scroll-message").classList.add("d-none")})}var y=document.querySelector(".tooltip-chat");if(y){h=document.querySelector(".scroll-message");y.addEventListener("click",function(){y.classList.add("tooltip-trigger"),h&&document.querySelector(".scroll-message").classList.add("d-none")})}var L=document.querySelectorAll(".infusion-form");L.forEach(function(e){e.addEventListener("submit",function(t){e.querySelector(".infusion-submit").classList.add("btn-load"),e.querySelector("button[type='submit']").setAttribute("disabled",!0)})});var w=document.getElementById("inf_field_Send");w&&w.addEventListener("click",function(e){const t=document.querySelector(".error-email"),n=document.getElementById("inf_field_email"),o=n.value.trim(),i=/^[a-zA-Z0-9]+([._+-][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([.-][a-zA-Z0-9]+)*\.[a-zA-Z]{2,}$/;i.test(o)?(n.classList.remove("error-border"),t.style.display="none"):(n.classList.add("error-border"),t.style.display="block",e.preventDefault())});const E=document.querySelectorAll("section[data-bg]");if("IntersectionObserver"in window){const e=new IntersectionObserver((t,n)=>{t.forEach(t=>{if(t.isIntersecting){const n=t.target;n.style.backgroundImage=`url(${n.getAttribute("data-bg")})`,n.removeAttribute("data-bg"),e.unobserve(n)}})});E.forEach(t=>{e.observe(t)})}var S=document.getElementById("copylink");S&&S.addEventListener("click",function(e){e.preventDefault(),copyLink();var t=document.querySelector("#copylink i");t&&(t.classList.remove("iccon-link-3"),t.classList.add("iccon-check-1"))});var b=document.getElementById("lgpd");b&&("yes"!==localStorage.getItem("lgpd")&&(b.classList.remove("d-none"),b.classList.add("animated")),b.querySelector(".lgpd-btn").addEventListener("click",function(){localStorage.setItem("lgpd","yes"),b.classList.remove("animated"),b.classList.add("d-none")}));const k=(e,t)=>{let n=[];const o=()=>{t.innerHTML=e.scrollSnapList().map(()=>'<button class="slide__dot" type="button" aria-label="Alternar"></button>').join("");const o=t=>{e.scrollTo(t)};
1n=Array.from(t.querySelectorAll(".slide__dot")),n.forEach((e,t)=>{e.addEventListener("click",()=>o(t),!1)})},i=()=>{const t=e.previousScrollSnap(),o=e.selectedScrollSnap();n[t].classList.remove("slide__dot--selected"),n[o].classList.add("slide__dot--selected")};return e.on("init",o).on("reInit",o).on("init",i).on("reInit",i).on("select",i),()=>{t.innerHTML=""}};var q=document.getElementById("sld_banner");if(q){const e={loop:!0,slidesToScroll:"auto",watchDrag:!1},t=q.querySelector(".slide__viewport"),n=[EmblaCarouselAutoScroll({speed:.5})];EmblaCarousel(t,e,n)}var _=document.getElementById("sld_flix");if(_){const e={loop:!0,slidesToScroll:"auto",skipSnaps:!0},t=_.querySelector(".slide__viewport"),n=[EmblaCarouselClassNames()],o=_.querySelector(".slide__prev"),i=_.querySelector(".slide__next"),s=EmblaCarousel(t,e,n);o.addEventListener("click",s.scrollPrev,!1),i.addEventListener("click",s.scrollNext,!1)}var I=document.getElementById("sld_consel");if(I){const e={loop:!0,align:"start",slidesToScroll:"auto",skipSnaps:!0},t=I.querySelector(".slide__viewport"),n=[EmblaCarouselClassNames()],o=I.querySelector(".slide__dots"),i=EmblaCarousel(t,e,n),s=k(i,o);i.on("destroy",s)}var A=document.getElementById("sld_depo");if(A){const e={loop:!0,slidesToScroll:"auto",skipSnaps:!0},t=A.querySelector(".slide__viewport"),n=[EmblaCarouselClassNames()],o=A.querySelector(".slide__dots"),i=EmblaCarousel(t,e,n),s=k(i,o);i.on("destroy",s)}var B=document.getElementById("hand-talk");B&&("yes"===Cookies.get("handTalk")&&B.click(),B.addEventListener("click",function(){Cookies.set("handTalk","yes",{expires:365,path:"/"})}))});

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.