1/* Start Comparison Table Style JS */ 2(function( $ ) { 3 "use strict"; 4 $(window).on('elementor/frontend/init', function () { 5 var AdvancedCompareTable = function ($scope, $) { 6 $($scope.find(".ct-product-heading")[0]).addClass("active"); 7 $scope.find("ul").on("click", "li", function () { 8 var pos = $(this).index() + 2; 9 $scope.find("tr").find('td:not(:eq(0))').hide(); 10 $scope.find('td:nth-child(' + pos + ')').css('display', 'table-cell'); 11 $scope.find("tr").find('th:not(:eq(0))').hide(); 12 $scope.find('li').removeClass('active'); 13 $(this).addClass('active'); 14 }); 15 16 $($scope.find(".ct-product-heading")[0]).addClass("active"); 17 $scope.find('td#ct_price').css('display', 'none'); 18 $scope.find('td#ct_price:nth-child(1)').css('display', 'table-cell'); 19 $scope.find("ul").on("click", "li", function () { 20 var pos = $(this).index() + 1; 21 $scope.find('td#ct_price').css('display', 'none'); 22 $scope.find('td#ct_price:nth-child(' + pos + ')').css('display', 'table-cell'); 23 $scope.find("tr.ct-price-header").find('th:not(:eq(0))').hide(); 24 $scope.find('li').removeClass('active'); 25 $(this).addClass('active'); 26 }); 27 }; 28 elementorFrontend.hooks.addAction('frontend/element_ready/advanced-comparison-table.default', AdvancedCompareTable); 29 }); 30 31})(jQuery); 32/* End Comparison Table Style JS */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.