');
$('.bs-posts__load-more-btn-base_2_post_blocks_674aa26e5ab01').hide();
}
$('.bs-post-loading-icon').hide();
$("#bs-posts__normal-grid-base_2_post_blocks_674aa26e5ab01").removeClass('loading');
},
error: function(errorThrown) {
console.log(errorThrown);
}
});
window.onpopstate = function(event) {
var url = document.location.pathname;
var url_paged = url.split("/").slice(-1)[0];
var paged = parseInt($('#paged_base_2_post_blocks_674aa26e5ab01').val());
var url_paged_val;
if (url_paged === "") {
url_paged_val = 0;
} else {
url_paged_val = parseInt(url_paged);
}
if (url_paged_val < paged) {
// history back
$('.bs-posts__normal-grid-base_2_post_blocks_674aa26e5ab01 .bs-posts__normal-row > div')
.slice(-1)
.remove();
$('#paged_base_2_post_blocks_674aa26e5ab01').val(paged - 1);
checkLoadMoreButton_base_2_post_blocks_674aa26e5ab01();
} else {
// history fwd
if (url_paged_val === 0) {
$('.bs-posts__normal-grid-base_2_post_blocks_674aa26e5ab01 .bs-posts__normal-row > div')
.slice(-1)
.remove();
} else {
getPostBlocksData_base_2_post_blocks_674aa26e5ab01('click', 'load');
}
}
};
}
})(jQuery, window, document); // or even jQuery.noConflict()