PageSourceSearch

https://statics.3cat.cat/js/modul-esnoticia.min.js?v=7.2609.6

js 3cat.cat collected 2026-10-01 10:35:02 UTC 2,339 bytes, 1 lines download raw bytes

1!function(e){"use strict";e.add({name:"esnoticia",className:"M-esnoticia",autoAmagarFletxes:!0,initialize:function(){var e=this;this.BaseModul.prototype.initialize.apply(this,arguments),this.$el.hasClass("C-destaquem")&&(this.autoAmagarFletxes=!1),(this.$el.hasClass("C-destaquem")||this.$el.hasClass("C-swiper"))&&(this.$el.hasClass("C-groupSwipe")?(this.swiper=new Swiper(this.$el.find(".swiper-container"),{nextButton:this.$el.find(".R-next"),prevButton:this.$el.find(".R-prev"),slidesPerGroup:e.getCurrentSlidesPerGroup(),slidesPerView:"auto",speed:160*e.getCurrentSlidesPerGroup(),loopFillGroupWithBlank:!1,loop:!1,buttonDisabledClass:"esta-desactivat",freeMode:$("html").hasClass("touchevents"),freeModeSticky:!0,simulateTouch:!1}),window.addEventListener("resize",function(){e.updateSlideGroups()},!0),jitdevizr.register(JITPUBLI_TYPE.LARGE_PC,function(){e.updateSlideGroups()}).register(JITPUBLI_TYPE.MEDIUM_PC,function(){e.updateSlideGroups()}).register(JITPUBLI_TYPE.MEDIUM_TABLET,function(){e.updateSlideGroups()}).register(JITPUBLI_TYPE.SMALL_TABLET,function(){e.updateSlideGroups()}).register(JITPUBLI_TYPE.MICRO_MOBILE,function(){e.updateSlideGroups()}).listen(),this.updateSlideGroups()):this.swiper=new Swiper(this.$el.find(".swiper-container"),{nextButton:this.$el.find(".R-next"),prevButton:this.$el.find(".R-prev"),slidesPerView:"auto",buttonDisabledClass:"esta-desactivat",freeMode:!0,simulateTouch:!1}))},events:{},updateSlideGroups:function(){var e,t,i;for(t=this.$el.find(".swiper-container").width(),i=0,e=0;i<this.$el.find(".swiper-slide").length;i+=1)e+=this.$el.find(".swiper-slide").eq(i).outerWidth(!0);t>=e?this.autoAmagarFletxes&&this.amagarFletxes():(this.autoAmagarFletxes&&this.mostrarFletxes(),this.swiper.freeMode=$("html").hasClass("touchevents"),this.swiper.slidesPerGroup=this.getCurrentSlidesPerGroup(),this.swiper.update())},getCurrentSlidesPerGroup:function(){if($("html").hasClass("touchevents"))return 1;var e,t,i;for(t=this.$el.find(".swiper-container").width(),i=0,e=0;i<this.$el.find(".swiper-slide").length;i+=1)e+=this.$el.find(".swiper-slide").eq(i).outerWidth(!0);return Math.floor(t/Math.floor(e/this.$el.find(".swiper-slide").length))},mostrarFletxes:function(){this.$el.find(".scrollbutton").fadeIn()},amagarFletxes:function(){this.$el.find(".scrollbutton").fadeOut()}})}(ModulJitpub);

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.