Контакты

Наше местонахождение


Форма обратной связи

'); $('#endless').on('click', function(e) { var lastProduct = $('.pagination').parent().parent().parent().find('.product-layout:last-child'); var nextPage = $('ul.pagination li.active').next().find('a:first-child'); $.ajax({ url: $(nextPage).attr('href'), beforeSend: function(){ $('#endless .fa-refresh').addClass('fa-spin'); }, success: function(data){ var products = $(data).find('.product-list'); lastProduct.after(products); if (localStorage.getItem('display') == 'grid') { cols = $('#column-right, #column-left').length; if (cols == 2) { $(products).attr('class', 'product-layout product-grid col-lg-6 col-md-6 col-sm-6 col-xs-6'); } else if (cols == 1) { $(products).attr('class', 'product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-6'); } else { $(products).attr('class', 'product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-6'); } } $('.pagination').html($(data).find('.pagination > *')); nextPage = $('ul.pagination li.active').next().find('a:first-child'); if (nextPage.length == 0) { $('#endless').remove(); } else { $('#endless .fa-refresh').removeClass('fa-spin'); } autoscroller.loading = 0; } }); return false; }); } } function inWindow(el){ if($(el).length) { var scrollTop = $(window).scrollTop(); var windowHeight = $(window).height(); var offset = $(el).offset(); if(scrollTop