![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-catalog/view/frontend/web/js/ |
/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ define([ 'jquery', 'jquery-ui-modules/widget' ], function ($) { 'use strict'; $.widget('mage.compareList', { /** @inheritdoc */ _create: function () { var elem = this.element, products = $('thead td', elem), headings; if (products.length > this.options.productsInRow) { headings = $('<table></table>') .addClass('comparison headings data table') .insertBefore(elem.closest('.container')); elem.addClass('scroll'); $('th', elem).each(function () { var th = $(this), thCopy = th.clone(); th.animate({ top: '+=0' }, 50, function () { var height = th.height(); thCopy.css('height', height) .appendTo(headings) .wrap('<tr></tr>'); }); }); } $(this.options.windowPrintSelector).on('click', function (e) { e.preventDefault(); window.print(); }); } }); return $.mage.compareList; });