PageSourceSearch

https://statics.3cat.cat/js/modul-twig-top10.min.js?v=7.2609.5

js 3cat.cat collected 2026-09-24 09:01:22 UTC 2,416 bytes, 1 lines download raw bytes

1!function(t){"use strict";t.add({name:"top10",className:"M-top10",charcount_vp_desktop:138,charcount_vp_tablet:98,initialize:function(){var t=this;this.$el.find(".F-primaryTabs .mixtab").click(function(s){s.preventDefault(),t.updateAriaTabs(this),t.updatePanell("primary",$(this).attr("data-href"))}),this.$el.find(".F-secondaryTabs .mixtab").click(function(s){s.preventDefault(),t.updateAriaTabs(this),t.updatePanell("secondary",$(this).attr("data-href"))}),this.applyContentResponsiveVisibility()},updateAriaTabs:function(t){$(t).parents(".F-primaryTabs").length?$(t).closest(".F-primaryTabs").find(".mixtab_func").removeAttr("aria-selected"):$(t).closest(".F-secondaryTabs").find(".mixtab_func").removeAttr("aria-selected"),$(t).closest(".mixtab_func").attr("aria-selected","true")},updatePanell:function(t,s){var a,e,i,n;for(s=s.substr(1),a=this.el.className.split(/\s+/),n=0;n<a.length;n+=1)"V"===a[n].charAt(0)&&(e=a[n],this.$el.removeClass(e));n=e.lastIndexOf("-"),"primary"===t?i="V-"+s+(e=e.slice(n)):("V-mes-escoltat"===(e=e.slice(0,n))&&"tv3"===s&&(e="V-mes-vist",this.$el.find(".F-primaryTabs .rehook-escoltat-tv3 .mixtab").tab("show"),this.updateAriaTabs(this.$el.find(".F-primaryTabs .rehook-escoltat-tv3 .mixtab"))),i=e+"-"+s),this.$el.addClass(i)},applyContentResponsiveVisibility:function(){var t,s,a,e,i,n,l;t=this,a=new RegExp("[ \\,\\.\\;\"\\'\\:\\-\\‘\\’ ]","i"),this.$el.find(".M-llistatcontinguts .R-elementLlistat .titol a").each(function(p){s=$(this).text().trim(),n="",l="",s.length>t.charcount_vp_desktop&&(i=a.test(s.substring(t.charcount_vp_desktop-1,t.charcount_vp_desktop)),n="<span class='hidden-tablet hidden-desktop'>"+s.substring(i?t.charcount_vp_desktop-1:t.charcount_vp_desktop,s.length)+"</span>",s=s.slice(0,s.lastIndexOf(s.substring(i?t.charcount_vp_desktop-1:t.charcount_vp_desktop,s.length)))),s.length>t.charcount_vp_tablet&&(e=a.test(s.substring(t.charcount_vp_tablet-1,t.charcount_vp_tablet)),l="<span class='hidden-tablet'>"+s.substring(e?t.charcount_vp_tablet-1:t.charcount_vp_tablet,s.length)+"</span>",s=s.slice(0,s.lastIndexOf(s.substring(e?t.charcount_vp_tablet-1:t.charcount_vp_tablet,s.length)))),""==l&&""==n||($(this).empty(),$(this).append(s),""!=l&&$(this).append(l),""!=n&&$(this).append(n),""!=l&&$(this).append("<span class='ellipsis visible-tablet'></span>"),""!=n&&$(this).append("<span class='ellipsis visible-desktop'></span>"))})}})}(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.