PageSourceSearch

https://www.favensis.com/js/base.js

js favensis.com collected 2026-10-08 03:28:21 UTC 4,876 bytes, 1 lines download raw bytes

1(()=>{const t={fixedButtonsLastHeight:0},r=()=>{a(),f(),e(),o(),n(),i(),s()},u=()=>{const t=$(".go-top"),n=$(".buttons--fixed");window.scrollY>1920?(t.css("display","flex"),n.length>0&&$(window).innerWidth()<1024&&n.css("bottom","60px")):(t.hide(),n.length>0&&$(window).innerWidth()<1024&&n.css("bottom","4px"))},f=()=>{const t=$(".header--fixed"),i=$(".header--sticky"),n=window.location.pathname;(n==="/aviso-legal.aspx"||n==="/politica-privacidad-cookies.aspx"||n==="/declaracion-accesibilidad.aspx")&&(t.removeClass("header--fixed"),i.removeClass("header--sticky"))},e=()=>{if($(".gallery-light").each((n,t)=>{lightGallery(t,{plugins:[lgZoom,lgThumbnail],download:!1,mobileSettings:{showCloseIcon:!0,controls:!1}});const i=window.innerWidth>=600?+t.dataset.itemsShowPc:+t.dataset.itemsShowMv;if(isNaN(i)||i===0)return!0;const r=$(t).children("li").length;$(t).children("li").each((n,t)=>{if(n===i-1){$(t).append(`<span title="Ver más imágenes" class="gallery-light__more">ver más (${r-i})</span>`);$(t).children(".gallery-light__more").on("click",n=>{n.stopPropagation(),$(t).next().trigger("click")})}else n>i-1&&$(t).hide()})}),!$(".video-gallery").length||lightGallery($("#video").get(0),{plugins:[lgThumbnail,lgVideo],mobileSettings:{showCloseIcon:!0}}),!!$(".minivideo").length)$(".minivideo").on("click",function(){$(this).find(".minivideo__inner").hide();var n=$(this).find("iframe").prop("src");n+="&autoplay=1";$(this).find("iframe").prop("src",n);$(this).find(".minivideo__iframe").fadeIn()})},o=()=>{$(".galeria-portada.sw").length&&new Swiper(".galeria-portada.sw .swiper-container",{spaceBetween:0,loop:!0,effect:"slide",autoplay:{delay:4e3},navigation:{nextEl:".galeria-portada .swiper-button-next",prevEl:".galeria-portada .swiper-button-prev"},pagination:{el:".galeria-portada .swiper-pagination",dynamicBullets:!0},grabCursor:!0})},n=()=>{setTimeout(()=>{const n=document.documentElement;n.style.setProperty("--app-height",`${window.innerHeight}px`);n.style.setProperty("--header-height",`${$(".header").innerHeight()}px`)},200)},s=()=>
1{if(!!$(".language").length){const t=document.querySelectorAll(".language__modal-list a"),n=document.documentElement.lang;t.forEach(t=>{if(t.dataset.lang==="es"){let i=!0;document.querySelector('link[hreflang^="es"]')!==null?t.href=document.querySelector('link[hreflang^="es"]').href:i=!1;t.dataset.lang===n?t.closest("li").classList.add("selected"):i===!1&&(t.parentNode.style.display="none")}else if(t.dataset.lang==="gl"){let i=!0;document.querySelector('link[hreflang^="gl"]')!==null?t.href=document.querySelector('link[hreflang^="gl"]').href:i=!1;t.dataset.lang===n?t.closest("li").classList.add("selected"):i===!1&&(t.parentNode.style.display="none")}else t.dataset.lang==="en"?(document.querySelector('link[hreflang^="en"]')!==null?t.href=document.querySelector('link[hreflang^="en"]').href:existHreflang=!1,t.dataset.lang===n?t.closest("li").classList.add("selected"):existHreflang===!1&&(t.parentNode.style.display="none")):t.dataset.lang==="pt"&&(document.querySelector('link[hreflang^="pt"]')!==null?t.href=document.querySelector('link[hreflang^="pt"]').href:existHreflang=!1,t.dataset.lang===n?t.closest("li").classList.add("selected"):existHreflang===!1&&(t.parentNode.style.display="none"))})}},h=n=>$(n).toggleClass("modal--active"),c=()=>$(".modal").removeClass("modal--active").removeClass("desaparece"),i=()=>{const n=document.querySelectorAll(".animate--scroll"),t=(n,t)=>{n.forEach(n=>{n.isIntersecting&&(n.target.classList.add("animate--is-animated"),t.unobserve(n.target))})},i=new IntersectionObserver(t,{root:null,rootMargin:"0px",threshold:.25});n.length&&n.forEach(n=>{i.observe(n)})},l=()=>{const r=$(".landing"),n=$(".buttons--fixed"),i=$(".btnScroll");if((!r.length||!n.length)&&(!r.length||!i.length))!n.length&&!i.length||($(".footer__info2").css("padding-bottom","60px"),window.scrollY>200?(n.fadeIn(300).css("display","flex"),i.fadeIn(300)):(n.fadeOut(),i.fadeOut()));else{$(".footer__info2").css("padding-bottom","60px");const u=$(this).scrollTop(),f=r.outerHeight();u>t.fixedButtonsLastHeight?window.scrollY>=f&&(n.fadeIn(300).css("display","flex"),i.fadeIn(300).css("display","flex")):window.scrollY<=f&&(n.fadeOut(),i.fadeOut());t.fixedButtonsLastHeight=u}},a=()=>{const t=$(window),r=$(window).width();t.on("load",()=>n());t.on("resize",()=>{$(this).width()!==r&&n()});t.on("scroll",()=>{u(),l()});t.on("scroll",i);$(".go-top").on("click",()=>$("body, html").animate({scrollTop:0},800));$(".language").on("click",n=>{n.preventDefault(),$(".language__modal").addClass("language__modal--active")});$(".language__modal-close").on("click",n=>{n.preventDefault(),$(".language__modal").removeClass("language__modal--active")});$(".modal .modal__close").on("click",()=>c());$(".open-modal").on("click",n=>{n.preventDefault();let t=$(n.currentTarget).attr("href");h(t)})};$(()=>r())})()

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.