BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
CTR
/
wp-content
/
plugins
/
porto-functionality
/
shortcodes
/
assets
/
js
📤 Upload
📝 New File
📁 New Folder
Close
Editing: pg-hv-overlay.min.js
jQuery(document).ready((function(e){function o(e,o=!0){var t=e.find("[data-hoverlay-image]"),i=e.closest(".porto-posts-grid");if(t.length){var a=i.find("#himg-"+t.data("hoverlay-id"));o?(a.addClass("active"),i.addClass("active")):(a.removeClass("active"),i.removeClass("active"))}}e.extend(theme,{InsertHoverImage:function(t){var i=t.data("hoverlay-image"),a=t.closest(".porto-posts-grid"),s=t.closest(".posts-wrap");a.append('<div class="thumb-info-full" style="background-image: url('+i.src+"); --porto-himg-height:"+s.innerHeight()+'px;" id="himg-'+i.id+'"></div>'),a.addClass("image-hover-overlay"),s.hasClass("owl-carousel")?s.on("refreshed.owl.carousel resized.owl.carousel",(function(){a.find(".thumb-info-full").css("--porto-himg-height",s.innerHeight()+"px")})):e(window).on("resize",(function(){a.find(".thumb-info-full").css("--porto-himg-height",s.innerHeight()+"px")})),e(".image-hover-overlay").on("mouseenter touchstart",".porto-tb-item",(function(t){o(e(this))})),e(".image-hover-overlay").on("mouseleave touchend",".porto-tb-item",(function(t){o(e(this),!1)}))}}),e(".porto-posts-grid [data-hoverlay-image]").each((function(){theme.InsertHoverImage(e(this))}))}));
Save
Cancel