| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/.trash/wp-content.1/themes/woodmart/js/scripts/wc/ |
Upload File : |
/* global woodmart_settings */
(function($) {
woodmartThemeModule.$document.on('wdShopPageInit wdLoadMoreLoadProducts wdArrowsLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdUpdateWishlist wdRecentlyViewedProductLoaded', function () {
woodmartThemeModule.productMoreDescription();
});
$.each([
'frontend/element_ready/wd_products.default',
'frontend/element_ready/wd_products_tabs.default'
], function(index, value) {
woodmartThemeModule.wdElementorAddAction(value, function() {
woodmartThemeModule.productMoreDescription();
});
});
woodmartThemeModule.productMoreDescription = function() {
$('.wd-hover-with-fade, .wd-image-hotspot.hotspot-type-product, .wd-spot:has(.wd-spot-product)').on('mouseenter touchstart', function() {
var $content = $(this).find('.wd-more-desc');
var $inner = $content.find('.wd-more-desc-inner');
var $moreBtn = $content.find('.wd-more-desc-btn');
if ($content.hasClass('wd-more-desc-calculated')) {
return;
}
var contentHeight = $content.outerHeight();
var innerHeight = $inner.outerHeight();
var delta = innerHeight - contentHeight;
if (delta > 30) {
$moreBtn.addClass('wd-shown');
} else if (delta > 0) {
$content.css('max-height', contentHeight + delta);
}
$content.addClass('wd-more-desc-calculated');
});
woodmartThemeModule.$body.on('click', '.wd-more-desc-btn', function(e) {
e.preventDefault();
var $this = $(this);
$this.parent().addClass('wd-more-desc-full');
woodmartThemeModule.$document.trigger('wdProductHoverContentRecalc', [$this.parents('.wd-hover-with-fade')]);
});
};
$(document).ready(function() {
woodmartThemeModule.productMoreDescription();
});
})(jQuery);