1jQuery(document).ready(function($){ 2 jQuery(".search-btn").click(function(event){ 3 event.preventDefault(); // Prevent default button action if needed 4 jQuery(".search-container").slideToggle(300); 5 }); 6 7 // Click outside to close 8 jQuery(document).click(function(event) { 9 if (!jQuery(event.target).closest(".ss-search-box, .search-container").length) { 10 jQuery(".search-container").slideUp(300); 11 } 12 }); 13}); 14 15jQuery(document).ready(function () { 16 17 jQuery("#home-slider-one").owlCarousel({ 18 loop: true, 19 margin: 20, 20 autoplay: true, 21 autoplayTimeout: 5000, 22 nav: true, 23 dots: false, 24 autoplaySpeed: 500, 25 navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], 26 responsive: { 27 0: { 28 items: 1, 29 nav: false, 30 }, 31 640: { 32 items: 2, 33 }, 34 991: { 35 items: 3, 36 }, 37 1200: { 38 items: 4, 39 } 40 } 41 }); 42 43 jQuery("#home-slider-two").owlCarousel({ 44 loop: true, 45 margin: 20, 46 autoplay: true, 47 autoplayTimeout: 5000, 48 nav: true, 49 dots: false, 50 autoplaySpeed: 500, 51 navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], 52 responsive: { 53 0: { 54 items: 1, 55 nav: false, 56 }, 57 640: { 58 items: 2, 59 }, 60 991: { 61 items: 2, 62 }, 63 1200: { 64 items: 3, 65 } 66 } 67 }); 68 69 jQuery("#slider-three").owlCarousel({ 70 loop: true, 71 margin: 20, 72 autoplay: true, 73 autoplayTimeout: 5000, 74 nav: true, 75 dots: false, 76 autoplaySpeed: 500, 77 navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], 78 responsive: { 79 0: { 80 items: 1, 81 nav: false, 82 }, 83 640: { 84 items: 2, 85 }, 86 991: { 87 items: 3, 88 }, 89 1200: { 90 items: 4, 91 } 92 } 93 }); 94 95 jQuery("#slider-four").owlCarousel({ 96 loop: true, 97 margin: 20, 98 autoplay: true, 99 autoplayTimeout: 5000, 100 nav: true, 101 dots: false, 102 autoplaySpeed: 500, 103 navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], 104 responsive: { 105 0: { 106 items: 1, 107 nav: false, 108 }, 109 640: { 110 items: 1, 111 }, 112 991: { 113 items: 1, 114 }, 115 1200: { 116 items: 1, 117 } 118 } 119 }); 120 121 122 123 // jQuery(".dropdown-toggle").parent().append("<span class='togglemobiler'></span>"); 124 125 // jQuery(document).on("click", ".togglemobiler", function () { 126 // // Toggle a class or perform an action on the parent or another element 127 // jQuery(this).parent().toggleClass("open"); // Example: toggles the 'active' class on the parent element 128 // }); 129 130jQuery(document).ready(function () { 131 // Append .toggle-drop after .menu-item-has-children 132 jQuery(".menu-item-has-children > a").after('<span class="toggle-drop"><i class="fa-solid fa-angle-down"></i></span>'); 133 134 // Toggle dropdown menu on .toggle-drop click 135 jQuery(".toggle-drop").click(function (e) { 136 e.preventDefault(); 137 138 var $clickedMenu = jQuery(this).closest(".menu-item-has-children").find("> .dropdown-menu"); 139 140 // If the clicked menu is visible, slide up only that menu 141 if ($clickedMenu.is(":visible")) { 142 $clickedMenu.slideUp(); 143 } else { 144 // Close only sibling menus, not nested ones 145 jQuery(this).closest("ul").find("> .menu-item-has-children > .dropdown-menu").not($clickedMenu).slideUp(); 146 147 // Open the clicked menu 148 $clickedMenu.slideDown(); 149 } 150 }); 151}); 152 153 154 155 jQuery(document).ready(function () { 156 jQuery(".checkout_coupon").hide(); 157 jQuery(".showcoupon").on("click", function () { 158 jQuery(".checkout_coupon").toggle(); // Toggle the visibility of the div 159 }); 160 161 if (jQuery("#ship-to-different-address-checkbox").is(":checked")) { 162 jQuery(".shipping_address").addClass("active"); // Add class if checked 163 } else { 164 jQuery(".shipping_address").removeClass("active"); // Remove class if not checked 165 } 166 167 168 jQuery("#ship-to-different-address-checkbox").on("change", function () { 169 if ($(this).is(":checked")) { 170 jQuery(".shipping_address").addClass("active"); // Add class if checked 171 } else { 172 jQuery(".shipping_address").removeClass("active"); // Remove class if unchecked 173 } 174 }); 175 }); 176}); 177 178
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.