1(function($){ 2 "use strict"; 3 jQuery(document).on('ready', function () { 4 5 // Mean Menu 6 $('.mean-menu').meanmenu({ 7 meanScreenWidth: "991" 8 }); 9 10 // Header Sticky 11 $(window).on('scroll',function() { 12 if ($(this).scrollTop() > 120){ 13 $('.navbar-area').addClass("is-sticky"); 14 } 15 else{ 16 $('.navbar-area').removeClass("is-sticky"); 17 } 18 }); 19 20 // Others Option For Responsive JS 21 $(".others-option-for-responsive .dot-menu").on("click", function(){ 22 $(".others-option-for-responsive .container .container").toggleClass("active"); 23 }); 24 25 // Search Menu JS 26 $(".others-option .search-icon i").on("click", function(){ 27 $(".search-overlay").toggleClass("search-overlay-active"); 28 }); 29 $(".search-overlay-close").on("click", function(){ 30 $(".search-overlay").removeClass("search-overlay-active"); 31 }); 32 33 // Odometer JS 34 $('.odometer').appear(function(e) { 35 var odo = $(".odometer"); 36 odo.each(function() { 37 var countNumber = $(this).attr("data-count"); 38 $(this).html(countNumber); 39 }); 40 }); 41 42 // Popup Image 43 $('.popup-image').magnificPopup({ 44 type: 'image', 45 gallery:{ 46 enabled:true 47 } 48 }); 49 50 // Popup Video 51 $('.popup-video').magnificPopup({ 52 disableOn: 320, 53 type: 'iframe', 54 mainClass: 'mfp-fade', 55 removalDelay: 160, 56 preloader: false, 57 fixedContentPos: false 58 }); 59 60 // Country Select 61 $("#country_selector, #country_selector2").countrySelect({ 62 preferredCountries: ['ca', 'gb', 'us'] 63 }); 64 65 // TweenMax JS 66 $('.main-banner-area').mousemove(function(e){ 67 var wx = $(window).width(); 68 var wy = $(window).height(); 69 var x = e.pageX - this.offsetLeft; 70 var y = e.pageY - this.offsetTop; 71 var newx = x - wx/2; 72 var newy = y - wy/2; 73 $('.main-banner-image').each(function(){ 74 var speed = $(this).attr('data-speed'); 75 if($(this).attr('data-revert')) speed *= -.4; 76 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 77 }); 78 }); 79 80 // Product +/- 81 $(".plus-btn").on('click', function() { 82 var input = $(this).prev('input.qty'); 83 var val = parseInt(input.val()); 84 var step = input.attr('step'); 85 step = 'undefined' !== typeof(step) ? parseInt(step) : 1; 86 input.val( val + step ).change(); 87 }); 88 89 $(".minus-btn").on('click', function() { 90 var input = $(this).next('input.qty'); 91 var val = parseInt(input.val()); 92 var step = input.attr('step'); 93 step = 'undefined' !== typeof(step) ? parseInt(step) : 1; 94 if (val > 0) { 95 input.val( val - step ).change(); 96 } 97 }); 98 99 // Products Details Image Slides 100 $('.products-details-thumbs-image-slides').slick({ 101 dots: true, 102 speed: 500, 103 fade: false, 104 slide: 'li', 105 slidesToShow: 1, 106 autoplay: true, 107 autoplaySpeed: 4000,
108 prevArrow: false, 109 nextArrow: false, 110 responsive: [{ 111 breakpoint: 800, 112 settings: { 113 arrows: false, 114 centerMode: false, 115 centerPadding: '30px', 116 variableWidth: false, 117 slidesToShow: 1, 118 dots: true 119 }, 120 breakpoint: 1200, 121 settings: { 122 arrows: false, 123 centerMode: false, 124 centerPadding: '30px', 125 variableWidth: false, 126 slidesToShow: 1, 127 dots: true 128 } 129 }], 130 customPaging: function (slider, i) { 131 return '<button class="tab">' + $('.slick-thumbs li:nth-child(' + (i + 1) + ')').html() + '</button>'; 132 } 133 }); 134 135 // Go to Top 136 $(function(){ 137 // Scroll Event 138 $(window).on('scroll', function(){ 139 var scrolled = $(window).scrollTop(); 140 if (scrolled > 600) $('.go-top').addClass('active'); 141 if (scrolled < 600) $('.go-top').removeClass('active'); 142 }); 143 // Click Event 144 $('.go-top').on('click', function() { 145 $("html, body").animate({ scrollTop: "0" }, 500); 146 }); 147 }); 148 149 // partner-carousel 150 var partnerOwl = $('.partner-carousel'); 151 partnerOwl.owlCarousel({ 152 loop: true, 153 margin: 20, 154 nav: false, 155 dots: false, 156 animateIn: 'fadeIn', 157 animateOut: 'fadeOut', 158 autoplay: true, 159 autoplayTimeout: 3000, 160 smartSpeed: 1500, 161 responsive:{ 162 0: { 163 items: 2 164 }, 165 600: { 166 items: 2 167 }, 168 768: { 169 items: 3 170 }, 171 1000: { 172 items: 4 173 } 174 } 175 }); 176 }); 177 178 $( window ).on( 'elementor/frontend/init', function() { 179 elementorFrontend.hooks.addAction( 'frontend/element_ready/widget', function( $scope ) { 180 181 // Home Slides 182 $('.home-slides').owlCarousel({ 183 items: 1, 184 margin: 0, 185 nav: false, 186 loop: true, 187 dots: true, 188 autoplay: false, 189 smartSpeed: 1500, 190 autoplayTimeout: 10000, 191 autoplayHoverPause: false, 192 navText: [ 193 "<i class='lni lni-chevron-left'></i>", 194 "<i class='lni lni-chevron-right'></i>", 195 ] 196 }); 197 198 // Feedback Slides 199 $('.feedback-slides').owlCarousel({ 200 nav: false, 201 margin: 25, 202 dots: true, 203 loop: true, 204 autoplay: false, 205 autoplayHoverPause: true, 206 navText: [ 207 "<i class='lni lni-chevron-left'></i>", 208 "<i class='lni lni-chevron-right'></i>", 209 ], 210 responsive: { 211 0: { 212 items: 1 213 }, 214 576: { 215 items: 1 216 }, 217 768: { 218 items: 2 219 }, 220 992: { 221 items: 2 222 }, 223 1200: { 224 items: 3 225 } 226 } 227 }); 228 229 $('.feedback-slides-two').owlCarousel({ 230 nav: false, 231 margin: 25, 232 dots: true, 233 loop: true, 234 autoplay: false, 235 autoplayHoverPause: true, 236 navText: [ 237 "<i class='lni lni-chevron-left'></i>", 238 "<i class='lni lni-chevron-right'></i>", 239 ], 240 responsive: { 241 0: { 242 items: 1 243 }, 244 576: { 245 items: 1 246 }, 247 768: { 248 items: 2 249 }, 250 992: { 251 items: 2 252 }, 253 1200: { 254 items: 2 255 } 256 } 257 }); 258 259 // Services Slides 260 $('.services-slides').owlCarousel({ 261 nav: false, 262 margin: 25, 263 dots: true, 264 loop: true, 265 autoplay: false, 266 autoplayHoverPause: true, 267 navText: [ 268 "<i class='lni lni-chevron-left'></i>", 269 "<i class='lni lni-chevron-right'></i>", 270 ], 271 responsive: { 272 0: { 273 items: 1 274 }, 275 576: { 276 items: 1 277 }, 278 768: { 279 items: 2 280 }, 281 992: { 282 items: 2 283 }, 284 1200: { 285 items: 3 286 } 287 } 288 }); 289 290 // partner-carousel 291 var partnerOwl = $('.partner-carousel'); 292 partnerOwl.owlCarousel({ 293 loop: true, 294 margin: 20, 295 nav: false, 296 dots: false, 297 animateIn: 'fadeIn', 298 animateOut: 'fadeOut', 299 autoplay: true, 300 autoplayTimeout: 3000, 301 smartSpeed: 1500, 302 responsive:{ 303 0: { 304 items: 2 305 }, 306 600: { 307 items: 2 308 }, 309 768: { 310 items: 3 311 }, 312 1000: { 313 items: 4 314 } 315 } 316 }); 317 318 // Resources Slides 319 $('.resources-slides').owlCarousel({ 320 nav: false, 321 dots: true, 322 margin: 25, 323 loop: true, 324 center: true, 325 autoplay: false, 326 autoplayHoverPause: true, 327 navText: [ 328 "<i class='lni lni-chevron-left'></i>", 329 "<i class='lni lni-chevron-right'></i>", 330 ], 331 responsive: { 332 0: { 333 items: 1 334 }, 335 576: { 336 items: 1 337 }, 338 768: { 339 items: 2 340 }, 341 992: { 342 items: 2 343 }, 344 1200: { 345 items: 3 346 } 347 } 348 }); 349 }); 350 }); 351 352 $(document).ready(function(){ 353 $("span").each(function(){ 354 // Get content 355 var 356 content = $(this).text(), 357 // get first word 358 first_w = content.match(/([\w\-]+)/); 359 360 // replace the first word with first word and break 361 var new_cnt = content.replace(first_w[0], first_w[0] + "</br>"); 362 363 // add the css to make it inline-block 364 $(this).css("display", "inline-block").html(new_cnt); 365 }); 366}); 367 368 369 370 $(window).on('scroll', function(){ 371 var scrolled = $(window).scrollTop(); 372 if (scrolled > 300) {
373 $('.scroll-show').css("display", "block"); 374 } 375 else { (scrolled < 300) 376 $('.scroll-show').css("display", "none"); 377 } 378 }); 379 380 381// Preloader 382 383$(window).on('load', function() { // makes sure the whole site is loaded 384 $('#status').fadeOut(); // will first fade out the loading animation 385 $('#preloader').delay(50).fadeOut('slow'); // will fade out the white DIV that covers the website. 386 $('body').delay(350).css({'overflow':'visible'}); 387 388 setTimeout(function () { 389 $('#staticBackdrop').modal('show'); 390 }, 5000); 391}) 392 393 394 395}(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.