×
Home DonnaPantaloni
"); jQuery.ajax({ url: "https://www.antonellarizza.it/ProdottiLoad.php", data: "offset=" + offset + "&selection=100319&nprodotti=6&layout=3&lang=it", type: "POST", success: function(response) { jQuery("#c2i-prodotti-lista").append(response); jQuery("#c2i-prodotti-loader-temp").remove(); loading = 0; jQuery(window).scrollTop(posizione - 500); jQuery(".col-c2i-prodotto").matchHeight(); }, error: function(response) { //alert("ko"); } }); } function caricaAltro() { offset += 6; jQuery("#c2i-prodotti-lista").append("
"); jQuery.ajax({ url: "https://www.antonellarizza.it/ProdottiLoad.php", data: "offset=" + offset + "&selection=100319&nprodotti=6&layout=3&lang=it", type: "POST", dataType: "json", success: function(response) { //console.log(response.debug); //console.log(response.colori); //jQuery("#filterColor").html(response.colori); jQuery("#c2i-prodotti-lista").append(response.content); jQuery("#c2i-prodotti-loader-temp").remove(); loading = 0; jQuery(window).scrollTop(posizione - 500); jQuery(".col-c2i-prodotto").matchHeight(); //alert(response.colori); }, error: function(response) { //alert("ko"); } }); } jQuery(function() { jQuery(".col-c2i-prodotto").matchHeight(); /*var $cache = jQuery(".my-sticky-element"); var vTop = $cache.offset().top - parseFloat($cache.css("margin-top").replace(/auto/, 0)); jQuery(window).scroll(function (event) { var altezzaRender = jQuery(document).height(); var altezzaDiv = jQuery(".my-sticky-element").height(); var limit = jQuery("#main-footer").height(); var y = jQuery(this).scrollTop(); var positionBottom = y + altezzaDiv; if (y >= vTop) { $cache.addClass("stuck"); } else { $cache.removeClass("stuck"); } var differenza = altezzaRender - positionBottom; console.log(differenza + " - " + limit); if (differenza