PageSourceSearch

https://ylioppilaslehti.fi/wp-content/themes/yolehti2024/dist/main.js?ver=1790839906

js ylioppilaslehti.fi collected 2026-10-02 06:45:54 UTC 1,798 bytes, 1 lines download raw bytes

1(()=>{$=jQuery;function r(o,s){return o=Math.ceil(o),s=Math.floor(s),Math.floor(Math.random()*(s-o+1))+o}$(window).on("load",function(){let o=$("#burger");o.on("click",function(){$("body").toggleClass("nav-open"),$("#burger").attr("aria-pressed")=="false"?o.attr("aria-pressed",!0):o.attr("aria-pressed",!1)}),$("body").hasClass("home")&&$(window).on("scroll",function(){$(this).scrollTop()>$("#large-logo").outerHeight()?$(".header").addClass("sticky-header"):$(this).scrollTop()<=$("#large-logo").outerHeight()&&$(".header").removeClass("sticky-header")});function s(){let e=$(".articles .half-block");e.show(),e.size()%2!=0&&e.last().hide()}if($("body").hasClass("home")&&s(),$(".iso-otsikko a").each(function(e){$(this).html().search(/(\&shy;|­|&#173;)/gi)>=0&&$(this).addClass("custom-hyphen")}),$(".entry-summary h1").each(function(e){$(this).html().search(/(\&shy;|­|&#173;)/gi)>=0&&$(this).addClass("custom-hyphen")}),Hyphenopoly.config({require:{fi:"FORCEHYPHENOPOLY"},setup:{dontHyphenateClass:"custom-hyphen",selectors:{".iso-otsikko a":{minWordLength:12,leftmin:4,rightmin:4},".entry-summary h1":{minWordLength:12,leftmin:4,rightmin:4}}},handleEvent:{error:function(e){e.preventDefault()}}}),$("body").hasClass("home")){let e=$(".plug-container"),i=[],t=window.content_loader.length;for(console.log("Content: "+t),console.log("Fields: "+e.size());i.length<t;){let n=r(0,t-1);i.includes(n)===!1&&i.push(n)}t>0&&e.size()>0&&e.each(function(n){let a=window.content_loader[i[n]].link,l=window.content_loader[i[n]].image;console.log(a),console.log(l),l===null||l===""?($(this).parent(".plug-block").hide(),console.log("Not found")):($(this).find("a").attr("href",a),$(this).find("img").attr("src",l))}),e.size()>t&&t===0&&e.each(function(n){$(this).parent(".plug-block").hide()})}});})();

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.