PageSourceSearch

https://tribunademinas.com.br/wp-content/litespeed/js/fc82e4740412cad3ffe0a95fee076121.js?ver=92be2

js tribunademinas.com.br collected 2026-09-24 09:51:35 UTC 5,830 bytes, 13 lines download raw bytes

1$(document).ready(function(){$(".promocode a").click(function(e){e.preventDefault();navigator.clipboard.writeText($(this).data("promocode"));$(this).html("Copiado")});$(".category-card").click(function(e){e.preventDefault();const filter=$(this).data("filter");const cards=$(".coupon-card-container");cards.each(function(){var letter=$(this).data("name").slice(0,1);if(filter.includes(letter)){$(this).show()}else{$(this).hide()}})});var basicParams={loop:!1,margin:0,responsiveClass:!0,responsive:{0:{items:1,nav:!1},600:{items:3,nav:!1},},};var basicParams2={loop:!1,margin:0,responsiveClass:!0,responsive:{0:{items:1,nav:!1},600:{items:4,nav:!1},},};var owlThridFold=$(".owl-third-fold");var owlVideo=$(".owl-video");var owlFeatured=$(".owl-featured");var owlSeventhFold=$(".owl-seventh-fold");var owlFifthFold=$(".owl-fifth-fold");var owlSixthFold=$(".owl-sixth-fold");var owlAgenda=$(".owl-agenda");window.onresize=function(event){owlThridFold.owlCarousel(basicParams);owlVideo.owlCarousel(basicParams2);owlFeatured.owlCarousel(basicParams);owlSeventhFold.owlCarousel(basicParams);owlFifthFold.owlCarousel(basicParams);owlSixthFold.owlCarousel(basicParams);owlAgenda.owlCarousel(basicParams2);if(!window.mobilecheck()){owlFeatured.trigger("destroy.owl.carousel").removeClass("owl-carousel owl-loaded");owlFeatured.find(".owl-stage-outer").children().unwrap();owlThridFold.trigger("destroy.owl.carousel").removeClass("owl-carousel owl-loaded");owlThridFold.find(".owl-stage-outer").children().unwrap();owlVideo.trigger("destroy.owl.carousel").removeClass("owl-carousel owl-loaded");owlVideo.find(".owl-stage-outer").children().unwrap();owlAgenda.trigger("destroy.owl.carousel").removeClass("owl-carousel owl-loaded");owlAgenda.find(".owl-stage-outer").children().unwrap()}};if(window.mobilecheck()){if(owlThridFold.length>0){owlThridFold.owlCarousel(basicParams);owlVideo.owlCarousel(basicParams2);owlFeatured.owlCarousel(basicParams);owlSeventhFold.owlCarousel(basicParams);owlFifthFold.owlCarousel(basicParams);owlSixthFold.owlCarousel(basicParams)}}
2var home=document.querySelector("main#home");if(home){}
3var lis=document.querySelectorAll(".first-column-mobile > li");for(var x=0;x<lis.length;x++){var li=lis[x];var a=li.querySelector("a");if(a.classList.contains("has-children")){a.addEventListener("click",function(event){event.preventDefault();var ul=this.parentNode.querySelector("ul");ul.classList.toggle("hide")})}}
4var menuContainer=document.querySelector(".menu");var menuIcon=document.querySelector("#menuIcon");if(menuContainer){var submenuContainer=menuContainer.querySelector(".submenu");var parentItensContainer=menuContainer.querySelector(".first-column");var parentItens=menuContainer.querySelectorAll(".first-column a");var submenuItens=menuContainer.querySelectorAll(".submenu li");var parentItensHeight=parentItensContainer?parentItensContainer.offsetHeight:0;var menuMobileContainer=document.querySelector(".menu-mobile");var toggleMenuButton=document.querySelector("#toggleMenuButton");if(toggleMenuButton)toggleMenuButton.addEventListener("click",function(){if(window.mobilecheck()){if(menuIcon.classList.contains("fa-bars")){menuIcon.classList.remove("fa-bars");menuIcon.classList.add("fa-times")}else{menuIcon.classList.add("fa-bars");menuIcon.classList.remove("fa-times")}
5menuMobileContainer.classList.toggle("hide")}else{if(menuContainer.classList.contains("hide")){menuContainer.classList.remove("hide");menuIcon.classList.remove("fa-bars");menuIcon.classList.add("fa-times");parentItensHeight=parentItensContainer.offsetHeight;calculateSubmenuHeight(parentItensContainer,submenuItens,submenuContainer)}else{menuContainer.classList.add("hide");menuIcon.classList.add("fa-bars");menuIcon.classList.remove("fa-times")}}});for(var i=0;i<parentItens.length;i++){var parentItem=parentItens[i];parentItem.addEventListener("mouseover",function(){if(this.classList.contains("has-children")){var menuId=this.dataset.menuId;deactiveAllSubmenus(submenuItens);var activeSubmenu=document.querySelector('li[data-menu-id="'+menuId+'"]');if(activeSubmenu){activeSubmenu.classList.remove("hide");deactiveAllMenus(parentItens);this.classList.add("active");var subitemHeight=activeSubmenu.offsetHeight+40;if(subitemHeight<parentItensHeight){subitemHeight=parentItensHeight}
6submenuContainer.style.height=subitemHeight+"px"}}else{deactiveAllSubmenus(submenuItens);deactiveAllMenus(parentItens);this.classList.add("active")}})}}});function deactiveAllSubmenus(submenuItens){for(var i=0;i<submenuItens.length;i++){var submenuItem=submenuItens[i];submenuItem.classList.add("hide")}}
7function deactiveAllMenus(parentItens){for(var i=0;i<parentItens.length;i++){var parentItem=parentItens[i];parentItem.classList.remove("active")}}
8function calculateSubmenuHeight(parentContainer,submenuItens,submenuContainer){var subitemHeight=0;var parentItensHeight=parentContainer.offsetHeight;for(var j=0;j<submenuItens.length;j++){var submenuItem=submenuItens[j];var height=submenuItem.offsetHeight;if(height>subitemHeight){subitemHeight=height}}
9subitemHeight+=40;if(subitemHeight<parentItensHeight){subitemHeight=parentItensHeight}
10submenuContainer.style.height=subitemHeight+"px"}
11function loadFold(foldContainer,foldUrl){var xhr=new XMLHttpRequest();xhr.open("GET","/wp-json/homepage/v1/homepage/"+foldUrl);xhr.addEventListener("load",function(event){if(event.target.status==200){var text=event.target.responseText;foldContainer.innerHTML=text.substr(0,text.length-2);if(foldUrl=="foldAgenda"){var basicParams4={loop:!1,margin:0,responsiveClass:!0,responsive:{0:{items:1,nav:!1},600:{items:4,nav:!1},},};$(".owl-agenda").owlCarousel(basicParams4)}else if(foldUrl=="fold5"){if(typeof horoscope_load_listener=="function"){horoscope_load_listener()}}}});xhr.send(null)}
12document.addEventListener("DOMContentLoaded",function(){})
13;

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.