/* Source and licensing information for the line(s) below can be found at https://mpogazprom.ru/sites/all/modules/views_infinite_scroll/views-infinite-scroll.js. */ (function($){"use strict";var $window=$(window),vis_index=0;$.fn.infiniteScrollInsertView=function($new_view){var $existing_view=this,$existing_content=$existing_view.find('.view-content').children();$new_view.find('.view-content').prepend($existing_content);$existing_view.replaceWith($new_view);$(document).trigger('infiniteScrollComplete',[$new_view,$existing_content])};Drupal.behaviors.views_infinite_scroll_automatic={attach:function(context,settings){var settings=settings.views_infinite_scroll,loadingImg='
loading...
';$('.pager--infinite-scroll.pager--infinite-scroll-auto',context).once().each(function(){var $pager=$(this);$pager.find('.pager__item').hide();if($pager.find('.pager__item a').length)$pager.append(loadingImg);$window.bind('scroll.views_infinite_scroll_'+vis_index,function(){if(window.innerHeight+window.pageYOffset>$pager.offset().top-settings.scroll_threshold){$pager.find('.pager__item a').click();$window.unbind('scroll.views_infinite_scroll_'+vis_index)}});vis_index++})}}})(jQuery);; /* Source and licensing information for the above line(s) can be found at https://mpogazprom.ru/sites/all/modules/views_infinite_scroll/views-infinite-scroll.js. */ ;/*})'"*/