PageSourceSearch

https://www.merit.ee/wp-content/cache/min/1/wp-content/themes/neway/src/util/appear.js?ver=1790688646

js merit.ee collected 2026-10-02 20:40:28 UTC 1,959 bytes, 12 lines download raw bytes

1jQuery(document).ready(function(){var $=jQuery;var win=$(window);var $body=$("body");var winHeight=win.height();var loaded=!1;var winScrollTop=win.scrollTop();var appearOffset=winHeight*0.1;const pageHeight=()=>$body.height();const winScrollEnd=(offset)=>(pageHeight()-(offset?offset:0)<=(winScrollTop+winHeight));$("[data-text-appear] *").each(function(){$this=$(this)
2$this.parents("[data-text-appear]").removeAttr("data-text-appear")
3$this.attr("data-appear","").removeAttr("data-text-appear")
4if($this.is("h1, h2")){Splitting({target:$this[0],by:'words'})
5$this.find('.word').attr('data-appear','')}else if($this.is("p")){$this.attr("data-appear",'')}});let appearElems=[];function cacheAppear(){$("[data-appear]").each(function(){$this=$(this);var tempObj={top:$this.offset().top,elem:$this,animated:!1,};appearElems.push(tempObj)})}
6cacheAppear();function animAppear(){if(loaded){let filtered=appearElems.filter(elem=>(!elem.animated&&elem.top<(winHeight+winScrollTop-appearOffset)||!elem.animated&&winScrollEnd(100)));let len=filtered.length;let max=0.8;filtered.forEach((elem,i)=>{elem.animated=!0;let $this=elem.elem;let delay=max/len;$this.css({'animation-delay':(delay<0.06?delay:0.06)*i+'s','transition-delay':(delay<0.06?delay:0.06)*i+'s'})
7$this.addClass('appeared');$this.one('transitionend webkitTransitionEnd webkitAnimationEnd animationend',function(){$(this).css({'animation-delay':'','transition-delay':''}).removeClass('appeared').off('transitionend webkitTransitionEnd webkitAnimationEnd animationend');$(this)[0].removeAttribute('data-appear')})})}}
8window.pageLoad=function(){$body.addClass("loaded");cacheAppear();setTimeout(function(){loaded=!0;animAppear()},100)}
9setTimeout(()=>window.pageLoad(),500)
10win.scroll(function(){winScrollTop=win.scrollTop();animAppear()})
11win.resize(function(){cacheAppear();animAppear()});jQuery(window).on("load",function(){window.pageLoad()})})
12jQuery(window).on("load",function(){window.pageLoad()})

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.