1var $=jQuery.noConflict();jQuery(function($){$(document).on('touchstart click','#load-more-post',function(e){e.preventDefault();var cat_id=$('#load-more-post').data('id');var postsOffset=$('#post-listing .post-list').length;var ajax_url=post_ajax_params.ajaxurl;$.ajax({url:ajax_url,data:{'action':'post_infinitescroll_action','query':post_ajax_params.posts,'page':post_ajax_params.current_page,'offset':postsOffset,'cat_id':cat_id,},type:'POST',dataType:'json',beforeSend:function(){$('#scroll-post-Loader').fadeIn();},success:function(posts){if(posts){$('#post-listing').append(posts.content);post_ajax_params.current_page++;if(post_ajax_params.current_page==posts.max_page) 2$('#load-more-post').fadeOut();}else{$('#load-more-post').fadeOut();} 3$('#scroll-post-Loader').fadeOut();AOS.init({once:true,});}}) 4return false;});});jQuery(window).on('load',function(){!function($){'use strict' 5var Class=function(el,cb){this.$el=jQuery(el);this.cb=cb;this.watch();return this;};Class.prototype={isIn:function isIn(){var _self=this;var $win=$(window);var elementTop=_self.$el.offset().top;var elementBottom=elementTop+_self.$el.outerHeight();var viewportTop=$win.scrollTop();var viewportBottom=viewportTop+$win.height();return elementBottom>viewportTop&&elementTop<viewportBottom;},watch:function(){var _self=this;var _isIn=false;jQuery(window).on('resize scroll load',function(){if(_self.isIn()&&_isIn===false){_self.cb.call(_self.$el,'entered');_isIn=true;} 6if(_isIn===true&&!_self.isIn()){_self.cb.call(_self.$el,'leaved');_isIn=false;}})}};$.fn.isInViewport=function(cb){return this.each(function(){var $element=$(this);var data=$element.data('isInViewport');if(!data){$element.data('isInViewport',(new Class(this,cb)));}})}}(window.jQuery);jQuery("#load-more-post").isInViewport(function(status,event){if(status==='entered'){jQuery("#load-more-post")[0].click()}})})
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.