PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/polo-family.com/wp-content/plugins/woo-photo-reviews/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/polo-family.com/wp-content/plugins/woo-photo-reviews/js/masonry.min.js |
jQuery(document).ready((function(e){var t,i=-1;let n=0;function r(r){if(n=0,i=r,r>=t.length&&(i=0),r<0&&(i=t.length-1),e("#reviews-content-left-modal").html(""),e("#reviews-content-left-main").html(""),0==e(".wcpr-grid").find(".wcpr-grid-item").eq(i).find(".reviews-images-container").length)e("#reviews-content-left").addClass("wcpr-no-images");else{e("#reviews-content-left-modal").html(e(".wcpr-grid").find(".wcpr-grid-item").eq(i).find(".reviews-images-wrap-left").html());let t=e(".wcpr-grid").find(".wcpr-grid-item").eq(i).find(".reviews-images-wrap-right").html();t&&(e("#reviews-content-left").removeClass("wcpr-no-images"),e("#reviews-content-left-main").html(t)),e("#reviews-content-left-modal").find(".reviews-images").parent().on("click",(function(){return n=e(this).data().image_index,e("#reviews-content-left-main").find(".reviews-images").attr("src",e(this).attr("href")),e("#reviews-content-left-main").find(".wcpr-review-image-caption").html(e(this).data().image_caption),!1}))}e("#reviews-content-right .reviews-content-right-meta").html(e(".wcpr-grid").find(".wcpr-grid-item").eq(i).find(".review-content-container").html()),e(".wcpr-modal-light-box").fadeIn(200)}function c(){let t=parseInt(e("html").css("top"));e("html").removeClass("wcpr-noscroll"),e("html,body").scrollTop(-t)}e(".wcpr-grid-item")&&(t=e(".wcpr-grid-item")),e(".wcpr-close").on("click",(function(){c(),e(".wcpr-modal-light-box").fadeOut(200),i=-1})),e(".wcpr-modal-light-box .wcpr-overlay").on("click",(function(){c(),e(".wcpr-modal-light-box").fadeOut(200),i=-1})),e("#reviews-content-left-main").on("click",".reviews-images",(function(){let t=e(this),i=[];e("#reviews-content-left-modal").find("a").map((function(){let t=e(this).find(".reviews-images"),n=e(this).data().image_src?e(this).data().image_src:t.attr("src"),r=e(this).data().image_caption?e(this).data().image_caption:parseInt(e(this).data().image_index)+1+"/"+e("#reviews-content-left-modal").find("a").length;i.push({href:n,title:r})})),0==i.length&&i.push({href:t.data().original_src?t.data().original_src:t.attr("src"),title:t.parent().find(".wcpr-review-image-caption").html()}),e.swipebox(i,{hideBarsDelay:1e5,initialIndexOnArray:n})})),e(document).keydown((function(t){e.swipebox.isOpen||"none"!=e(".wcpr-modal-light-box").css("display")&&(27==t.keyCode&&(c(),e(".wcpr-modal-light-box").fadeOut(200),i=-1),-1!=i&&(37==t.keyCode&&r(i-=1),39==t.keyCode&&r(i+=1)))})),e("body").on("click",".wcpr-grid-item",(function(){let i=(t=e(".wcpr-grid-item")).index(e(this));i>=0&&(r(i),function(){if(e(document).height()>e(window).height()){let t=e("html").scrollTop()?e("html").scrollTop():e("body").scrollTop();e("html").addClass("wcpr-noscroll").css("top",-t)}}())})),e("body").on("click",".wcpr-next",(function(){r(i+=1)})),e("body").on("click",".wcpr-prev",(function(){r(i-=1)}))}));