PageSourceSearch

https://www.bonarea.com/rsc/bundles/jsgeneral?v=aez3vhAdFhIEeLLENul4Ij6BShDiKtNmhyI-aFJUbnY1

js bonarea.com collected 2026-10-02 12:24:17 UTC 6,758 bytes, 1 lines download raw bytes

1function checkUrlPosition(){if(document.location.hash!=""){let n=document.location.hash.split("#")[1];tagsUrl[n]!==undefined&&(Object.values(sostenible_tags).includes(n)?Object.keys(sostenible_tags).forEach(t=>sostenible_tags[t]==n?clickSostenibleOption(t):null):$("#"+tagsUrl[n]).modal("show"),setTimeout(function(){document.getElementById(sections[n]).scrollIntoView()},800))}}function clickSostenibleOption(n){setTimeout(function(){$(".list-circle.b-bottom a.i-"+n).click()},300)}function setSostenibleUrl(n){window.history.pushState(null,"",document.location.origin+""+document.location.pathname+"#"+sostenible_tags[n])}const tagsUrl={projects:"modal-projectes",fundations:"modal-fundacions",impulse:"modal-impuls",colaboration:"modal-collaboracions",waste:"modal-eficiencia-sostenibilitat",integrity:"modal-eficiencia-sostenibilitat",sustainable:"modal-eficiencia-sostenibilitat",fight:"modal-eficiencia-sostenibilitat",autoconsum:"modal-eficiencia-sostenible",weather:"modal-eficiencia-sostenible"},sections={projects:"section-02",fundations:"section-02",impulse:"section-02",colaboration:"section-02",waste:"section-01",integrity:"section-01",sustainable:"section-01",fight:"section-01",autoconsum:"section-01",weather:"section-01"},sostenible_tags={residus:"waste",integracio:"integrity",sostenible:"sustainable",lluita:"fight",autoconsum:"autoconsum",clima:"weather"};$(function(){function n(){$("body").addClass("back-video-modal");$(".backdrop").addClass("modal-backdrop-video")}function t(){$("body").removeClass("back-video-modal");$(".backdrop").removeClass("modal-backdrop-video");$(".modal-video").removeClass("show")}function i(){$(".iframe-caja").each(function(){return $(this).attr("src",$(this).attr("src")),!1});$(".iframe-llavor").each(function(){return $(this).attr("src",$(this).attr("src")),!1});$(".iframe-sostenible").each(function(){return $(this).attr("src",$(this).attr("src")),!1})}checkUrlPosition();$('a.box[href^="#"]').click(function(){var n=$(this.hash);return n.length===0&&(n=$('a.option[name="'+this.hash.substr(1)+'"]')),n.length===0&&(n=$("html")),$("html, body").animate({scrollTop:n.offset().top},1e3),!1});$(".list-circle.modal-text-menu").on("click","a",function(){Object.keys(sostenible_tags).forEach(n=>$(this).hasClass("i-"+n)?setSostenibleUrl(n):null)});$(".video-caja").click(function(){n();$(".modal-video-caja").addClass("show")});$(".video-sostenibilitat").click(function(){n();$(".modal-video-sostenibilitat").addClass("show")});$(".video-llavor").click(function(){n();$(".modal-video-llavor").addClass("show")});$(".close-video").click(function(){i();t()});$(".modal-video").click(function(){i();t()});$("#menu").click(function(){$("#menu").toggleClass("btn-close");$("body").toggleClass("side-menu-visible");$(".side-menu").toggleClass("show");$("#webs-mobile").removeClass("show")});$(".side-menu .box").click(function(){$("body").hasClass("side-menu-visible")&&($("#menu").removeClass("btn-close"),$("body").removeClass("side-menu-visible"),$(".side-menu").removeClass("show"))});$(window).scroll(function(){$(this).scrollTop()>100?$(".btn-scroll-top").fadeIn("slow"):$(".btn-scroll-top").fadeOut("slow")});$(".btn-scroll-top").click(function(n){n.preventDefault();$("html, body").animate({scrollTop:0},800)});$("#modal-projectes").on("show.bs.modal",function(){window.history.pushState(null,"",document.location.origin+""+document.location.pathname+"#projects")});$("#modal-impuls").on("show.bs.modal",function(){window.history.pushState(null,"",document.location.origin+""+document.location.pathname+"#impulse")});$("#modal-collaboracions").on("show.bs.modal",function(){window.history.pushState(null,"",document.location.origin+""+document.location.pathname+"#colaboration")});$("#modal-eficiencia-sostenibilitat").on("show.bs.modal",function(n){let t=n.relatedTarget.className.substring(2);window.history.pushState(null,"",document.location.origin+""+document.location.pathname+"#"+sostenible_tags[t])});$(document).on("hide.bs.modal",function(){window.history.length>1&&document.referrer.indexOf(window.location.host)!==-1?window.history.back():window.history.pushState(null,"",document.location.origin+""+document.location.pathname)})}),function(){jQuery("#websDelGrup").hover(function(){jQuery(this).find(".dropdown-menu").css("display","block").stop(!0,!0).delay(200).fadeIn()},function(){jQuery(this).find(".dropdown-menu").stop(!0,!0).delay(300).fadeOut()});$(".dropdown-submenu").click(function(n){n.stopPropagation();$(".dropdown-submenu").removeClass("show");$(".dropdown-submenu").find("ul.dropdown-menu.web-agrupa-mobil").removeClass("show");$(this).parents(".dropdown-submenu").addClass("show");$(this).find("ul.dropdown-menu.web-agrupa-mobil").toggleClass("show");$(this).toggleClass("show")})}(jQuery);$(function(){function u(){var n=$(this).scrollTop();Math.abs(t-n)<=r||(n>i+100?($("header").addClass("no-m-t"),$("header").removeClass("header-height")):($("header").removeClass("no-m-t"),$("header").addClass("header-height"),$("header").removeClass("nav-down")),n>t&&n>i+50?$("header").removeClass("nav-down").addClass("nav-up"):n+$(window).height()<$(document).height()&&$("header").removeClass("nav-up").addClass("nav-down"),t=n)}var n,t=0,r=50,i=$("header").outerHeight();$(window).scroll(function(){n=!0});setInterval(function(){n&&(u(),n=!1)},250)});var controller=new ScrollMagic.Controller,sceneMain=new ScrollMagic.Scene({triggerElement:".scroll-magic-main",offset:0}).setClassToggle(".scroll-magic-main","show").addTo(controller),scene=new ScrollMagic.Scene({triggerElement:".scroll-magic-01",offset:-100}
1).setClassToggle(".scroll-magic-01","show").addTo(controller),scene2=new ScrollMagic.Scene({triggerElement:".scroll-magic-02",offset:-480}).setClassToggle(".scroll-magic-02","show").addTo(controller),scene3=new ScrollMagic.Scene({triggerElement:".scroll-magic-03",offset:-300}).setClassToggle(".scroll-magic-03","show").addTo(controller),scene4=new ScrollMagic.Scene({triggerElement:".scroll-magic-04",offset:-400}).setClassToggle(".scroll-magic-04","show").addTo(controller),scene5=new ScrollMagic.Scene({triggerElement:".scroll-magic-05",offset:-300}).setClassToggle(".scroll-magic-05","show").addTo(controller),scene6=new ScrollMagic.Scene({triggerElement:".scroll-magic-06",offset:-300}).setClassToggle(".scroll-magic-06","show").addTo(controller),scene7=new ScrollMagic.Scene({triggerElement:".scroll-magic-07",offset:-500}).setClassToggle(".scroll-magic-07","show").addTo(controller),scene8=new ScrollMagic.Scene({triggerElement:".scroll-magic-08",offset:-400}).setClassToggle(".scroll-magic-08","show").addTo(controller),scene9=new ScrollMagic.Scene({triggerElement:".scroll-magic-09",offset:-420}).setClassToggle(".scroll-magic-09","show").addTo(controller)

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.