Premium

    Premium

    Premium

    Premium

    Premium

    Premium

    Premium

    Premium

    Premium

    Premium

' + pagUrl ); // loading block add above pagination now if(!$('#main').find('.inf-loader').length) { $(loadingBlock).insertBefore($('.loadmore')); } if(!$('#main').length || !$('.vehiculs-content').length || !$('.loadmore').length || !$('a.searchPaginationSelected').length) { infCheckBlocks(); } else if(position > threshold && isLoading == false && pagUrl != oldUrl && pagUrl != '' && pagUrl != '#') { isLoading = true; $('#main').addClass('loading'); $(".btn-lg").css("display","none"); $.ajax({ url: pagUrl, type: "GET", success: function(response){ var length = response.length; var data = $(response).contents().find('.vehiculs-content').html(); var pagBlock = $(response).contents().find('.loadmore'); var currItemCount = $(response).contents().find('').text(); oldUrl = pagUrl; $('.loadmore').html(pagBlock); $('.vehiculs-content').append(data); if($('').length) { $('').text(currItemCount); } // lazy load if exists if(typeof $.fn.Lazy !== 'undefined') { $('.vehiculs-content').find('img.lazy').Lazy({ appendScroll: window, scrollDirection: 'both', effect: 'fadeIn', effectTime: 300, afterLoad: function(element) { setTimeout(function() { element.css('transition', '0.2s'); }, 300); } }); } isLoading = false; currentPag = currentPag + 1; $('#main').removeClass('loading'); $('.f-carousel').each(function(i, e){ var id = document.getElementById("myCarousel"); $(e).attr('id', id+i); var selectord = '#'+id+i; var options = { Dots: true, breakpoints: { "(max-width: 768px)": { Dots: false, }, }, Thumbs: false, Thumbs: { //type: 'classic', type: "modern", }, Navigation: false, Autoplay : { timeout : 2000, showProgress: false, pauseOnHover: true, autoStart: true, } }; new Carousel(id, options, { Autoplay }); $('[data-fancybox="images"]', e).attr('rel', 'gallery' + i).fancybox({ buttons: [ 'slideShow', 'share', 'zoom', 'download', 'fullScreen', //'thumbs', 'close'], /* media : { youtube : { params : { autoplay : 0 } } } */ arrows: false, media: {}, animationEffect: "circular", preload: false, protect:false, keyboard: true, toolbar : true, infobar: true, touch: { vertical: true, momentum: true }, fullScreen: { autoStart: true }, slideShow : { autoStart : false, speed : 4000 }, thumbs: { autoStart : true, // Display thumbnails on opening hideOnClose : true, // Hide thumbnail grid when closing animation starts //parentEl : '.fancybox-container', // Container is injected into this element axis : 'x' // Vertical (y) or horizontal (x) scrolling } }); //# sourceURL=pen.js }); }, error: function(response){ hasPag = false; $('#main').removeClass('loading'); response = response.responseText; console.log(response); console.log(data); } }); } }); }); function infCheckBlocks() { } --> -->