"); //$("body").css("position", "relative"); /* $(".loading-overlay").css("top", "0"); $(".loading-overlay").css("left", "0"); $(".loading-overlay").css("pointer-events", "none"); $(".loading-overlay").css("width", "100vw"); $(".loading-overlay").css("height", "100vh"); $(".loading-overlay").css("background-color", "white"); $(".loading-overlay").css("opacity", ".3"); $(".loading-overlay").css("z-index", "999999999999");*/ $(".body-overlay").css("position", "fixed"); if ($(".body-overlay").hasClass("hidden")) { $(".body-overlay").removeClass("hidden"); } $(".body-overlay").css("pointer-events", "none"); } else{ //console.log("localStorage null →", localStorage.getItem("currentScroll")) } if(evt.persisted){ localStorage.setItem('forceReload',true); setTimeout(function(){ //console.log("window.location.reload();"); window.location.reload(); },10); } }, false); /*var changeScroll = function() { console.log("function changeScroll"); //var totalScrolly = $(document).height() - (500 + $("#wrapper-prefooter").height() + $("#wrapper-newsletter").height() + $("#wrapper-footer").height()); window.scrollTo(0, localStorage.getItem('currentScroll')); return true; };*/ function changeScroll() { //console.log("function changeScroll"); window.scrollTo(0, localStorage.getItem('currentScroll')); } /*window.onbeforeunload = function () { console.log("scrollTo"); window.scrollTo(0, totalScrolly); }*/ let $grid = ""; function loadMasonry(){ var masonryOptions = { columnWidth: '.search-filter-result-item', itemSelector: '.search-filter-result-item', percentPosition: true, transitionDuration: 0 }; $grid = $('.search-filter-results-list').masonry( masonryOptions ); $grid.masonry('reloadItems') $grid.masonry('layout'); //$(".search-filter-results").append("

loadMasonry

"); } /* function updateMasory(){ $grid.masonry('reloadItems') $grid.masonry('layout'); } */ //if you need to call on page load etc... loadMasonry(); //then also call it after ajax event $(document).on("sf:ajaxfinish", ".searchandfilter", function () { //console.log("ajax complete"); //$(".search-filter-results").append("

ajax complete

"); //updateMasory(); loadMasonry(); //$('.link-scroll').bind('click',function(e){ //var $anchor = $(this); //$('html, body').stop().animate({scrollTop: $($anchor.attr('href')).offset().top}, //1500,'easeInOutExpo'); //e.preventDefault(); //}); }); $( ".open-popup-gallery" ).click(function() { event.preventDefault(); // console.log("open-popup-gallery btn click"); $(".popup-gallery, .bg-overlay-gallery").addClass('visible'); $("body").addClass("overflow-y-h"); }); $(".close-popup-gallery, .bg-overlay-gallery").click(function() { // console.log("close-popup-gallery"); $(".popup-gallery, .bg-overlay-gallery").removeClass('visible'); $("body").removeClass("overflow-y-h"); }); });
Community Keep Evolving.
Never Stop Improving.

Stay tuned for updates and new features.

Newsletter Exclusive Contents and Creative Topics?
Sign up to our Botcha 3D Newsletter.



    YesI want to subscribe to the newsletter