PageSourceSearch

https://screenprintingmag.com/wp-content/cache/min/1/wp-content/pl…/js/viewportchecker.js?ver=1790115571

js screenprintingmag.com collected 2026-10-02 03:27:04 UTC 1,068 bytes, 3 lines download raw bytes

1(function($){$.fn.edsViewportChecker=function(useroptions){var options={classToRemove:'eds-scroll-hidden',classToAdd:'eds-scroll-visible',offset:75,callbackFunction:function(elem){}};$.extend(options,useroptions);var $elem=this;this.checkElements=function(){var windowHeight=$(window).height(),viewportTop=$(document).scrollTop(),viewportBottom=(viewportTop+windowHeight);$elem.each(function(){var $obj=$(this);var scroll_offset=$obj.attr('eds_scroll_offset');if($obj.hasClass(options.classToAdd)){return}
2var elemTop='';if(scroll_offset!=null&&scroll_offset!=''){elemTop=Math.round($obj.offset().top)+Math.round(Number(scroll_offset)*$obj.height()*0.01),elemBottom=elemTop+($obj.height())}else{elemTop=Math.round($obj.offset().top)+Math.round(options.offset*$obj.height()*0.01),elemBottom=elemTop+($obj.height())}
3if((elemTop<viewportBottom)&&(elemBottom>viewportTop)){$obj.addClass(options.classToAdd);$obj.removeClass(options.classToRemove);options.callbackFunction($obj)}})};$(window).on("scroll",$.throttle(250,this.checkElements));this.checkElements()}})(jQuery)

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.