1/*************************************************** 2==================== JS INDEX ====================== 3**************************************************** 401. PreLoader Js 502. Mobile Menu Js 603. Sidebar Js 704. Cart Toggle Js 805. Search Js 906. Sticky Header Js 1007. Data Background Js 1108. Testimonial Slider Js 1209. Slider Js (Home 3) 1310. Brand Js 1411. Tesimonial Js 1512. Course Slider Js 1613. Masonary Js 1714. Wow Js 1815. Data width Js 1916. Cart Quantity Js 2017. Show Login Toggle Js 2118. Show Coupon Toggle Js 2219. Create An Account Toggle Js 2320. Shipping Box Toggle Js 2421. Counter Js 2522. Parallax Js 2623. InHover Active Js 27 28****************************************************/ 29 30(function ($) { 31"use strict"; 32 33 var windowOn = $(window); 34 //////////////////////////////////////////////////// 35 // 01. PreLoader Js 36 windowOn.on('load',function() { 37 $("#loading").fadeOut(500); 38 }); 39 40 //////////////////////////////////////////////////// 41 // 02. Mobile Menu Js 42 $('#mobile-menu').meanmenu({ 43 meanMenuContainer: '.mobile-menu', 44 meanScreenWidth: "1199", 45 meanExpand: ['<i class="fal fa-plus"></i>'], 46 }); 47 48 49 //////////////////////////////////////////////////// 50 // 03. Sidebar Js 51 $("#sidebar-toggle").on("click", function () { 52 $(".sidebar__area").addClass("sidebar-opened"); 53 $(".body-overlay").addClass("opened"); 54 }); 55 $(".sidebar__close-btn").on("click", function () { 56 $(".sidebar__area").removeClass("sidebar-opened"); 57 $(".body-overlay").removeClass("opened"); 58 }); 59 60 61 //////////////////////////////////////////////////// 62 // 04. Cart Toggle Js 63 $(".cart-toggle-btn").on("click", function () { 64 $(".cartmini__wrapper").addClass("opened"); 65 $(".body-overlay").addClass("opened"); 66 }); 67 $(".cartmini__close-btn").on("click", function () { 68 $(".cartmini__wrapper").removeClass("opened"); 69 $(".body-overlay").removeClass("opened"); 70 }); 71 $(".body-overlay").on("click", function () { 72 $(".cartmini__wrapper").removeClass("opened"); 73 $(".sidebar__area").removeClass("sidebar-opened"); 74 $(".header__search-3").removeClass("search-opened"); 75 $(".body-overlay").removeClass("opened"); 76 }); 77 78 79 //////////////////////////////////////////////////// 80 // 05. Search Js 81 $(".search-toggle").on("click", function () { 82 $(".header__search-3").addClass("search-opened"); 83 $(".body-overlay").addClass("opened"); 84 }); 85 $(".header__search-3-btn-close").on("click", function () { 86 $(".header__search-3").removeClass("search-opened"); 87 $(".body-overlay").removeClass("opened"); 88 }); 89 90 91 //////////////////////////////////////////////////// 92 // 06. Sticky Header Js 93 windowOn.on('scroll', function () { 94 var scroll = $(window).scrollTop(); 95 if (scroll < 100) { 96 $("#header-sticky").removeClass("sticky"); 97 } else { 98 $("#header-sticky").addClass("sticky"); 99 } 100 }); 101 102 //////////////////////////////////////////////////// 103 // 07. Data Background Js 104 $("[data-background").each(function () { 105 $(this).css("background-image", "url( " + $(this).attr("data-background") + " )"); 106 }); 107 108 109 //////////////////////////////////////////////////// 110 // 08. Testimonial Slider Js 111 var swiper = new Swiper('.testimonial__slider', { 112 navigation: { 113 nextEl: '.swiper-button-next', 114 prevEl: '.swiper-button-prev', 115 }, 116 }); 117 118 119 120 //////////////////////////////////////////////////// 121 // 09. Slider Js (Home 3) 122 var galleryThumbs = new Swiper('.slider__nav', { 123 spaceBetween: 0, 124 slidesPerView: 4, 125 freeMode: true, 126 watchSlidesVisibility: true, 127 watchSlidesProgress: true, 128 129 }); 130 var galleryTop = new Swiper('.slider__wrapper', { 131 spaceBetween: 0, 132 effect: 'fade', 133 loop: true, 134 navigation: { 135 nextEl: '.swiper-button-next', 136 prevEl: '.swiper-button-prev', 137 }, 138 thumbs: { 139 swiper: galleryThumbs 140 } 141 }); 142 143 144 //////////////////////////////////////////////////// 145 // 10. Brand Js 146 var swiper = new Swiper('.brand__slider', { 147 slidesPerView: 6, 148 spaceBetween: 30, 149 loop: true, 150 pagination: { 151 el: '.swiper-pagination', 152 clickable: true, 153 }, 154 breakpoints: { 155 '1200': { 156 slidesPerView: 6, 157 }, 158 '992': { 159 slidesPerView: 5, 160 }, 161 '768': { 162 slidesPerView: 3, 163 }, 164 '576': { 165 slidesPerView: 2, 166 }, 167 '0': { 168 slidesPerView: 1, 169 }, 170 }, 171 navigation: { 172 nextEl: '.swiper-button-next', 173 prevEl: '.swiper-button-prev', 174 }, 175 }); 176 177 178 //////////////////////////////////////////////////// 179 // 11. Tesimonial Js 180 var tesimonialThumb = new Swiper('.testimonial-nav', { 181 spaceBetween: 20, 182 slidesPerView: 3, 183 loop: true, 184 freeMode: true, 185 loopedSlides: 3, //looped slides should be the same 186 watchSlidesVisibility: true, 187 watchSlidesProgress: true, 188 centeredSlides: true, 189 pagination: { 190 el: ".swiper-pagination", 191 clickable: true, 192 }, 193 }); 194 var testimonialText = new Swiper('.testimonial-text', { 195 spaceBetween: 0, 196 loop: true, 197 loopedSlides: 5, //looped slides should be the same 198 navigation: { 199 nextEl: '.swiper-button-next', 200 prevEl: '.swiper-button-prev', 201 }, 202 thumbs: { 203 swiper: tesimonialThumb, 204 }, 205 }); 206 207 //////////////////////////////////////////////////// 208 // 12. Course Slider Js 209 var swiper = new Swiper('.course__slider', { 210 spaceBetween: 30, 211 slidesPerView: 4, 212 breakpoints: { 213 '768': { 214 slidesPerView: 4, 215 }, 216 '576': { 217 slidesPerView: 1, 218 }, 219 '0': { 220 slidesPerView: 1, 221 }, 222 }, 223 pagination: { 224 el: '.swiper-pagination',
225 clickable: true, 226 }, 227 }); 228 229 //////////////////////////////////////////////////// 230 // 13. Masonary Js 231 $('.grid').imagesLoaded( function() { 232 // init Isotope 233 var $grid = $('.grid').isotope({ 234 itemSelector: '.grid-item', 235 percentPosition: true, 236 masonry: { 237 // use outer width of grid-sizer for columnWidth 238 columnWidth: '.grid-item', 239 } 240 }); 241 242 243 // filter items on button click 244 $('.masonary-menu').on( 'click', 'button', function() { 245 var filterValue = $(this).attr('data-filter'); 246 $grid.isotope({ filter: filterValue }); 247 }); 248 249 //for menu active class 250 $('.masonary-menu button').on('click', function(event) { 251 $(this).siblings('.active').removeClass('active'); 252 $(this).addClass('active'); 253 event.preventDefault(); 254 }); 255 256 }); 257 258 259 //////////////////////////////////////////////////// 260 // 14. Wow Js 261 new WOW().init(); 262 263 //////////////////////////////////////////////////// 264 // 15. Data width Js 265 $("[data-width]").each(function () { 266 $(this).css("width", $(this).attr("data-width")); 267 }); 268 269 270 //////////////////////////////////////////////////// 271 // 16. Cart Quantity Js 272 $('.cart-minus').click(function () { 273 var $input = $(this).parent().find('input'); 274 var count = parseInt($input.val()) - 1; 275 count = count < 1 ? 1 : count; 276 $input.val(count); 277 $input.change(); 278 return false; 279 }); 280 $('.cart-plus').click(function () { 281 var $input = $(this).parent().find('input'); 282 $input.val(parseInt($input.val()) + 1); 283 $input.change(); 284 return false; 285 }); 286 287 288 289 290 //////////////////////////////////////////////////// 291 // 17. Show Login Toggle Js 292 $('#showlogin').on('click', function () { 293 $('#checkout-login').slideToggle(900); 294 }); 295 296 //////////////////////////////////////////////////// 297 // 18. Show Coupon Toggle Js 298 $('#showcoupon').on('click', function () { 299 $('#checkout_coupon').slideToggle(900); 300 }); 301 302 //////////////////////////////////////////////////// 303 // 19. Create An Account Toggle Js 304 $('#cbox').on('click', function () { 305 $('#cbox_info').slideToggle(900); 306 }); 307 308 //////////////////////////////////////////////////// 309 // 20. Shipping Box Toggle Js 310 $('#ship-box').on('click', function () { 311 $('#ship-box-info').slideToggle(1000); 312 }); 313 314 //////////////////////////////////////////////////// 315 // 21. Counter Js 316 new PureCounter(); 317 new PureCounter({ 318 filesizing: true, 319 selector: ".filesizecount", 320 pulse: 2, 321 }); 322 323 //////////////////////////////////////////////////// 324 // 22. Parallax Js 325 if ($('.scene').length > 0 ) { 326 $('.scene').parallax({ 327 scalarX: 10.0, 328 scalarY: 15.0, 329 }); 330 }; 331 332 //////////////////////////////////////////////////// 333 // 23. InHover Active Js 334 $('.hover__active').on('mouseenter', function () { 335 $(this).addClass('active').parent().siblings().find('.hover__active').removeClass('active'); 336 }); 337 338})(jQuery);
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.