Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/backup/msckey.com/wp-content/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').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('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('wdProductMoreDescriptionOpen', [$this.parents('.wd-hover-with-fade')]); }); }; $(document).ready(function() { woodmartThemeModule.productMoreDescription(); }); })(jQuery);