#bigVideoCarousel .carousel-indicators .active {
border-color: #777 !important;
}
var $container9af4010fd4b9e12c434a9d40e579354a;
$(function () {
loadInfiniteScrool9af4010fd4b9e12c434a9d40e579354a();
});
/*
*
document.addEventListener('scroll', function (e) {
var scrollPosition = window.pageYOffset;
var windowSize = window.innerHeight;
var bodyHeight = document.body.offsetHeight;
var distance = bodyHeight - (scrollPosition + windowSize);
//console.log('infiniteScroll ', distance, windowSize, distance < windowSize);
if (distance < windowSize) {
$container9af4010fd4b9e12c434a9d40e579354a.infiniteScroll('loadNextPage');
}
});*/
var append_infiniteScroll_timout;
function loadInfiniteScrool9af4010fd4b9e12c434a9d40e579354a() {
if (typeof $('.categoriesContainerItem').infiniteScroll !== 'funciton') {
$container9af4010fd4b9e12c434a9d40e579354a = $('.categoriesContainerItem').infiniteScroll({
path: '.pagination__next9af4010fd4b9e12c434a9d40e579354a',
append: '.categoriesContainerItem',
status: '.scroller-status9af4010fd4b9e12c434a9d40e579354a',
hideNav: '.infiniteScrollPagination9af4010fd4b9e12c434a9d40e579354a',
debug: false,
prefill: true,
history: false,
checkLastPage: false,
button: '#loadInfiniteScrollButton9af4010fd4b9e12c434a9d40e579354a'
});
$container9af4010fd4b9e12c434a9d40e579354a.on('scrollThreshold.infiniteScroll', function (event) {
//console.log('infiniteScroll Scroll at bottom');
});
$container9af4010fd4b9e12c434a9d40e579354a.on('request.infiniteScroll', function (event, path, fetchPromise) {
//console.log(`infiniteScroll Loading page: ${path}`);
});
let infScroll = $container9af4010fd4b9e12c434a9d40e579354a.data('infiniteScroll');
$container9af4010fd4b9e12c434a9d40e579354a.on('load.infiniteScroll', function (event, body, path, response) {
//console.log(`infiniteScroll Loaded: ${path}`, `Status: ${response.status}`, `Current page: ${infScroll.pageIndex}`, `${infScroll.loadCount} pages loaded`);
});
$container9af4010fd4b9e12c434a9d40e579354a.on('append.infiniteScroll', function (event, body, path, items, response) {
//console.log(`infiniteScroll Appended ${items.length} items on ${path}`, body);
clearTimeout(append_infiniteScroll_timout);
append_infiniteScroll_timout = setTimeout(function () {
lazyImage();
avideoSocket();
}, 1000);
});
$container9af4010fd4b9e12c434a9d40e579354a.on('error.infiniteScroll', function (event, error, path, response) {
//console.error(`infiniteScroll Could not load: ${path}. ${error}`);
});
$container9af4010fd4b9e12c434a9d40e579354a.on('last.infiniteScroll', function (event, body, path) {
//console.log(`infiniteScroll Last page hit on ${path}`, body, event);
});
$container9af4010fd4b9e12c434a9d40e579354a.on('history.infiniteScroll', function (event, title, path) {
//console.log(`infiniteScroll History changed to: ${path}`);
});
}
}