1jQuery(document).ready(function ($) { 2 if (jQuery(document.body).find("#sliders-container")) { 3 if ( 4 !jQuery("#sliders-container") 5 .find("div") 6 .hasClass("fusion-slider-container") 7 ) { 8 jQuery("header.fusion-header-wrapper").addClass("normal-header"); 9 } 10 } else { 11 jQuery("header.fusion-header-wrapper").addClass("normal-header"); 12 } 13 14 function headerToplogoSlick() { 15 let windowWidht = jQuery(window).width(); 16 if (windowWidht < 600) { 17 jQuery(".fu-tb-header-logos").slick({ 18 slidesToShow: 1, 19 arrows: false, 20 dots: false, 21 infinite: false, 22 autoplay: true, 23 autoplaySpeed: 2000, 24 }); 25 } 26 } 27 28 function headerToplogoSlickReinit() { 29 if (jQuery(".fu-tb-header-logos").hasClass("slick-initialized")) { 30 jQuery(".fu-tb-header-logos").slick("destroy"); 31 } 32 } 33 function headerToplogRezie() { 34 let windowWidht = jQuery(window).width(); 35 var tbHeaderFirstSlide = jQuery( 36 ".fu-tb-header-logos .fu-tb-header-logo.co-md-none" 37 ).html(); 38 var tbHeaderFirstSlideCover = 39 '<div class="fu-tb-header-logo active co-md-none">' + 40 tbHeaderFirstSlide + 41 "</div>"; 42 if (windowWidht < 600) { 43 jQuery(".fu-tb-header-logos .fu-tb-header-logo.co-md-none").remove(); 44 } /*else{ 45 console.log(tbHeaderFirstSlideCover); 46 jQuery('.fu-tb-header-logos .fu-tb-header-logo.co-md-none').remove(); 47 jQuery('.fu-tb-header-logos').prepend(tbHeaderFirstSlideCover); 48 }*/ 49 } 50 51 // $('.fu-tb-header-logos').on('init', function(event, slick){ 52 // headerToplogSlick(); 53 // }); 54 55 jQuery(window).resize(function () { 56 let windowWidht = jQuery(window).width(); 57 headerToplogoSlickReinit(); 58 headerToplogRezie(); 59 headerToplogoSlick(); 60 }); 61 62 // Top header sticky scroll 63 64 // Get the header element 65 var header = jQuery(".fusion-tb-header"); 66 // Get the initial position of the header 67 var headerOffset = header.offset().top; 68 // Function to check if the user has scrolled past the header 69 function checkSticky() { 70 if (jQuery(window).scrollTop() > headerOffset) { 71 // Add a CSS class to make the header sticky 72 header.addClass("sticky"); 73 } else { 74 // Remove the CSS class if the user scrolls back up 75 header.removeClass("sticky"); 76 } 77 } 78 79 // Call the checkSticky function when the page loads 80 checkSticky(); 81 82 // Call the checkSticky function when the user scrolls 83 jQuery(window).scroll(function () { 84 checkSticky(); 85 }); 86 87 $(document).on("click", ".custom-tab-btn", function (e) { 88 e.preventDefault(); 89 $(".custom-tab-btn").removeClass("active"); 90 $(this).addClass("active"); 91 var tabtarget = $(this).attr("href"); 92 var targetclass = tabtarget.replace("#", ""); 93 $(".custom-tab-content") 94 .not("." + targetclass) 95 .removeClass("active"); 96 $("." + targetclass).addClass("active"); 97 window.history.replaceState(null, null, window.location.pathname); 98 return false; 99 }); 100 101 jQuery(document).ready(function () { 102 const $nextButton = jQuery("#scrollLeftButton"); 103 const $prevButton = jQuery("#scrollRightButton"); 104 const $tableContainer = jQuery(".product-listing-resposive-ui1"); 105 106 let scrollAmount = 100; // The amount to scroll, adjust as needed 107 108 $nextButton.on("click", function () { 109 $tableContainer.animate( 110 { 111 scrollLeft: $tableContainer.scrollLeft() + scrollAmount, 112 }, 113 300 114 ); // 300ms animation speed 115 }); 116 117 $prevButton.on("click", function () { 118 $tableContainer.animate( 119 { 120 scrollLeft: $tableContainer.scrollLeft() - scrollAmount, 121 }, 122 300 123 ); 124 }); 125 }); 126 127 jQuery(window).scroll(function () { 128 const header = jQuery(".fusion-tb-header"); 129 const section2 = jQuery(".product-listing-resposive-ui1"); 130 const section2Top = section2.offset().top; 131 const section2Bottom = section2Top + section2.outerHeight(); 132 133 if ( 134 jQuery(window).scrollTop() > section2Top && 135 jQuery(window).scrollTop() < section2Bottom 136 ) { 137 jQuery(".next-pre-table-btn .fusion-column-wrapper").addClass("sticky"); 138 } else { 139 jQuery(".next-pre-table-btn .fusion-column-wrapper").removeClass( 140 "sticky" 141 ); // Default color 142 } 143 }); 144 145 jQuery(".stop-flip .fusion-flip-box-wrapper").append( 146 '<a href="javascript:void(0);" class="stop-flip-tag"></a>' 147 ); 148 jQuery("body > div").each(function () { 149 var styleVal = jQuery(this).attr("style"); 150 if (typeof styleVal !== "undefined" && styleVal != "") { 151 jQuery(this).remove(); 152 } 153 }); 154}); 155 156jQuery(document).on("click", ".stop-flip-tag", function () { 157 let pagelink = jQuery(this) 158 .closest(".fusion-flip-box-wrapper") 159 .find(".fusion-flip-box .fulllink") 160 .attr("href"); 161 window.location.replace(pagelink); 162});
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.