1 2 3(function ($) { 4 "use strict"; 5 6 $(document).ready(function () { 7 8 //>> Mobile Menu Js Start <<// 9 $('#mobile-menu').meanmenu({ 10 meanMenuContainer: '.mobile-menu', 11 meanScreenWidth: "991", 12 meanExpand: ['<i class="far fa-plus"></i>'], 13 }); 14 15 //>> Sidebar Toggle Js Start <<// 16 $(".offcanvas__close,.offcanvas__overlay").on("click", function () { 17 $(".offcanvas__info").removeClass("info-open"); 18 $(".offcanvas__overlay").removeClass("overlay-open"); 19 }); 20 $(".sidebar__toggle").on("click", function () { 21 $(".offcanvas__info").addClass("info-open"); 22 $(".offcanvas__overlay").addClass("overlay-open"); 23 }); 24 25 //>> Body Overlay Js Start <<// 26 $(".body-overlay").on("click", function () { 27 $(".offcanvas__area").removeClass("offcanvas-opened"); 28 $(".df-search-area").removeClass("opened");; 29 $(".body-overlay").removeClass("opened"); 30 }); 31 32 //>> Sticky Header Js Start <<// 33 34 $(window).scroll(function () { 35 if ($(this).scrollTop() > 250) { 36 $("#header-sticky").addClass("sticky"); 37 } else { 38 $("#header-sticky").removeClass("sticky"); 39 } 40 }); 41 42 43 //>> Text Animation Gsap Js Start <<// 44 if ($('.title-anim').length > 0) { 45 let splitTitleLines = gsap.utils.toArray(".title-anim"); 46 splitTitleLines.forEach(splitTextLine => { 47 const tl = gsap.timeline({ 48 scrollTrigger: { 49 trigger: splitTextLine, 50 start: 'top 90%', 51 end: 'bottom 60%', 52 scrub: false, 53 markers: false, 54 toggleActions: 'play none none none' 55 } 56 }); 57 58 const itemSplitted = new SplitText(splitTextLine, { type: "words, lines" }); 59 gsap.set(splitTextLine, { perspective: 300 }); 60 itemSplitted.split({ type: "lines" }) 61 tl.from(itemSplitted.lines, { duration: 1, delay: 0.3, opacity: 0, rotationX: -50, force3D: true, transformOrigin: "top center -50", stagger: 0.2 }); 62 }); 63 } 64 65 66 67 $('.hero-slider .hero-slider-active-2').slick({ 68 autoplay: false, 69 speed: 1500, 70 lazyLoad: 'progressive', 71 arrows: true, 72 fade: true, 73 dots: false, 74 prevArrow: $('.hero-nav-prev'), 75 nextArrow: $('.hero-nav-next'), 76 }).slickAnimation(); 77 78 79 //>> Video Popup Start <<// 80 $(".img-popup").magnificPopup({ 81 type: "image", 82 gallery: { 83 enabled: true, 84 }, 85 }); 86 87 $('.video-popup').magnificPopup({ 88 type: 'iframe', 89 callbacks: { 90 } 91 }); 92 93 //>> Counterup Start <<// 94 /* $(".count").counterUp({ 95 delay: 15, 96 time: 4000, 97 }); */ 98 99 100 //>> Wow Animation Start <<// 101 new WOW().init(); 102 103 //>> Nice Select Start <<// 104 /* $('select').niceSelect(); */ 105 106 //>> Service Carousel Start <<// 107 108 109 //>> Brand Carousel Start <<// 110 if ($('.brand-carousel-active').length > 0) { 111 $('.brand-carousel-active').slick({ 112 autoplay: true, 113 autoplaySpeed: 2000, 114 //centerMode: true, 115 speed: 500, 116 arrows: false, 117 slidesToShow: 6, 118 slidesToScroll: 1, 119 dots: false, 120 dotsClass: 'slide-dots', 121 responsive: [ 122 { 123 breakpoint: 1199, 124 settings: { 125 slidesToShow: 5, 126 } 127 }, 128 { 129 breakpoint: 991, 130 settings: { 131 slidesToShow: 4, 132 } 133 }, 134 { 135 breakpoint: 768, 136 settings: { 137 slidesToShow: 3, 138 center: true, 139 } 140 }, 141 { 142 breakpoint: 575, 143 settings: { 144 slidesToShow: 2, 145 } 146 } 147 ], 148 149 }); 150 } 151 152 if ($('.brand-carousel-active-2').length > 0) { 153 $('.brand-carousel-active-2').slick({ 154 autoplay: true, 155 autoplaySpeed: 2000, 156 //centerMode: true, 157 speed: 500, 158 arrows: false, 159 slidesToShow: 5, 160 slidesToScroll: 1, 161 dots: false, 162 dotsClass: 'slide-dots', 163 responsive: [ 164 { 165 breakpoint: 1199, 166 settings: { 167 slidesToShow: 5, 168 } 169 }, 170 { 171 breakpoint: 991, 172 settings: { 173 slidesToShow: 4, 174 } 175 }, 176 { 177 breakpoint: 768, 178 settings: { 179 slidesToShow: 3, 180 center: true, 181 } 182 }, 183 { 184 breakpoint: 575, 185 settings: { 186 slidesToShow: 2, 187 } 188 } 189 ], 190 191 }); 192 } 193 194 //>> Testimonial Carousel Start <<// 195 if ($('.testimonial-carousel-active').length > 0) { 196 $('.testimonial-carousel-active').slick({ 197 autoplay: true, 198 autoplaySpeed: 2000,
199 speed: 500, 200 arrows: false, 201 slidesToShow: 3, 202 slidesToScroll: 1, 203 dots: true, 204 dotsClass: 'slide-dots', 205 responsive: [ 206 { 207 breakpoint: 1399, 208 settings: { 209 slidesToShow: 3, 210 } 211 }, 212 { 213 breakpoint: 1191, 214 settings: { 215 slidesToShow: 2, 216 } 217 }, 218 { 219 breakpoint: 768, 220 settings: { 221 slidesToShow: 1, 222 center: true, 223 } 224 }, 225 { 226 breakpoint: 480, 227 settings: { 228 slidesToShow: 1 229 } 230 } 231 ], 232 233 }); 234 } 235 236 if ($('.testimonial-carousel-active-2').length > 0) { 237 $('.testimonial-carousel-active-2').slick({ 238 autoplay: true, 239 autoplaySpeed: 2000, 240 speed: 500, 241 arrows: false, 242 slidesToShow: 3, 243 slidesToScroll: 1, 244 dots: true, 245 dotsClass: 'slide-dots', 246 responsive: [ 247 { 248 breakpoint: 1399, 249 settings: { 250 slidesToShow: 3, 251 } 252 }, 253 { 254 breakpoint: 1191, 255 settings: { 256 slidesToShow: 2, 257 } 258 }, 259 { 260 breakpoint: 768, 261 settings: { 262 slidesToShow: 1, 263 center: true, 264 } 265 }, 266 { 267 breakpoint: 480, 268 settings: { 269 slidesToShow: 1 270 } 271 } 272 ], 273 274 }); 275 } 276 277 if ($('.testimonial-carousel-active-3').length > 0) { 278 $('.testimonial-carousel-active-3').slick({ 279 autoplay: true, 280 autoplaySpeed: 2000, 281 speed: 500, 282 slidesToShow: 1, 283 slidesToScroll: 1, 284 arrows: true, 285 dots: false, 286 prevArrow: $('.testimonial-nav-prev'), 287 nextArrow: $('.testimonial-nav-next'), 288 }); 289 } 290 291 if ($('.testimonial-carousel-active-5').length > 0) { 292 $('.testimonial-carousel-active-5').slick({ 293 autoplay: true, 294 autoplaySpeed: 2000, 295 speed: 500, 296 arrows: false, 297 slidesToShow: 2, 298 slidesToScroll: 1, 299 dots: true, 300 dotsClass: 'slide-dots', 301 responsive: [ 302 { 303 breakpoint: 1191, 304 settings: { 305 slidesToShow: 2, 306 } 307 }, 308 { 309 breakpoint: 991, 310 settings: { 311 slidesToShow: 1, 312 center: true, 313 } 314 }, 315 { 316 breakpoint: 480, 317 settings: { 318 slidesToShow: 1 319 } 320 } 321 ], 322 }); 323 } 324 325 if ($('.testimonial-carousel-active-4').length > 0) { 326 $('.testimonial-carousel-active-4').slick({ 327 autoplay: true, 328 autoplaySpeed: 1500, 329 speed: 800, 330 slidesToShow: 1, 331 slidesToScroll: 1, 332 arrows: true, 333 dots: false, 334 prevArrow: $('.testimonial-nav-prev'), 335 nextArrow: $('.testimonial-nav-next'), 336 }); 337 } 338 339 //>> Flag Slider Start <<// 340 if ($('.flag-slider').length > 0) { 341 const flagSlider = new Swiper(".flag-slider", { 342 spaceBetween: 30, 343 speed: 2000, 344 loop: true, 345 centeredSlides: true, 346 autoplay: { 347 delay: 1000, 348 disableOnInteraction: false, 349 }, 350 breakpoints: { 351 1199: { 352 slidesPerView: 4, 353 }, 354 991: { 355 slidesPerView: 3, 356 }, 357 767: { 358 slidesPerView: 2, 359 }, 360 575: { 361 slidesPerView: 1, 362 }, 363 0: { 364 slidesPerView: 1, 365 }, 366 }, 367 }); 368 } 369 370 371 372 //>> Scroll Js Start <<// 373 /* const scrollPath = document.querySelector(".scroll-up path"); 374 const pathLength = scrollPath.getTotalLength(); 375 scrollPath.style.transition = scrollPath.style.WebkitTransition = "none"; 376 scrollPath.style.strokeDasharray = pathLength + " " + pathLength; 377 scrollPath.style.strokeDashoffset = pathLength; 378 scrollPath.getBoundingClientRect(); 379 scrollPath.style.transition = scrollPath.style.WebkitTransition = "stroke-dashoffset 10ms linear"; 380 381 const updatescroll = function () { 382 let scrolltotal = $(window).scrollTop(); 383 let height = $(document).height() - $(window).height(); 384 let scrolltotalheight = pathLength - (scrolltotal * pathLength) / height; 385 scrollPath.style.strokeDashoffset = scrolltotalheight; 386 }; 387 updatescroll(); 388 389 $(window).scroll(updatescroll); 390 const offset = 50; 391 const duration = 950; 392 393 $(window).on("scroll", function () { 394 if (jQuery(this).scrollTop() > offset) { 395 jQuery(".scroll-up").addClass("active-scroll"); 396 } else { 397 jQuery(".scroll-up").removeClass("active-scroll"); 398 } 399 }); 400 401 $(".scroll-up").on("click", function (event) { 402 event.preventDefault(); 403 jQuery("html, body").animate({ 404 scrollTop: 0, 405 }, 406 duration 407 ); 408 return false;
409 }); 410 411 412 // circle-progress 413 $(".circle-bar").loading(); */ 414 415 416 }); // End Document Ready Function 417 418 $.fn.loading = function () { 419 const DEFAULTS = { 420 backgroundColor: '#b3cef6', 421 progressColor: '#4b86db', 422 percent: 75, 423 duration: 2000 424 }; 425 426 $(this).each(function () { 427 const $target = $(this); 428 429 const opts = { 430 backgroundColor: $target.data('color') ? $target.data('color').split(',')[0] : DEFAULTS.backgroundColor, 431 progressColor: $target.data('color') ? $target.data('color').split(',')[1] : DEFAULTS.progressColor, 432 percent: $target.data('percent') ? $target.data('percent') : DEFAULTS.percent, 433 duration: $target.data('duration') ? $target.data('duration') : DEFAULTS.duration 434 }; 435 // console.log(opts); 436 437 $target.append('<div class="background"></div><div class="rotate"></div><div class="left"></div><div class="right"></div><div class=""><span>' + opts.percent + '%</span></div>'); 438 439 $target.find('.background').css('background-color', opts.backgroundColor); 440 $target.find('.left').css('background-color', opts.backgroundColor); 441 $target.find('.rotate').css('background-color', opts.progressColor); 442 $target.find('.right').css('background-color', opts.progressColor); 443 444 const $rotate = $target.find('.rotate'); 445 setTimeout(function () { 446 $rotate.css({ 447 'transition': 'transform ' + opts.duration + 'ms linear', 448 'transform': 'rotate(' + opts.percent * 3.6 + 'deg)' 449 }); 450 }, 1); 451 452 if (opts.percent > 50) { 453 let animationRight = 'toggle ' + (opts.duration / opts.percent * 50) + 'ms step-end'; 454 let animationLeft = 'toggle ' + (opts.duration / opts.percent * 50) + 'ms step-start'; 455 $target.find('.right').css({ 456 animation: animationRight, 457 opacity: 1 458 }); 459 $target.find('.left').css({ 460 animation: animationLeft, 461 opacity: 0 462 }); 463 } 464 }); 465 } 466 467 function loader() { 468 $(window).on('load', function () { 469 // Animate loader off screen 470 $(".preloader").addClass('loaded'); 471 $(".preloader").delay(600).fadeOut(); 472 }); 473 } 474 loader(); 475 476 477})(jQuery); // End 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.