1(function ($) { 2 'use strict'; 3 $(document).on('ready', function () { 4 5 // Header Sticky 6 const getHeaderId = document.getElementById("navbar"); 7 if (getHeaderId) { 8 window.addEventListener('scroll', event => { 9 const height = 10; 10 const { scrollTop } = event.target.scrollingElement; 11 document.querySelector('#navbar').classList.toggle('sticky', scrollTop >= height); 12 }); 13 } 14 15 // topBanner Sticky 16 const getBannerId = document.getElementById("topBanner"); 17 if (getBannerId) { 18 window.addEventListener('scroll', event => { 19 const height = 500; 20 const { scrollTop } = event.target.scrollingElement; 21 document.querySelector('#topBanner').classList.toggle('hidden', scrollTop >= height); 22 }); 23 } 24 25 // Back to Top JS 26 const getId = document.getElementById("backtotop"); 27 if (getId) { 28 const topbutton = document.getElementById("backtotop"); 29 topbutton.onclick = function (e) { 30 window.scrollTo({ top: 0, behavior: "smooth" }); 31 }; 32 window.onscroll = function () { 33 if (document.body.scrollTop > 200 || document.documentElement.scrollTop > 200) { 34 topbutton.style.opacity = "1"; 35 } else { 36 topbutton.style.opacity = "0"; 37 } 38 }; 39 } 40 41 // Preloader JS 42 const getPreloaderId = document.getElementById('preloader'); 43 if (getPreloaderId) { 44 getPreloaderId.style.display = 'none'; 45 } 46 47 // Banner Three Area TweenMax JS 48 const getAboutId = document.getElementById("banner-three-area"); 49 if (getAboutId) { 50 document.querySelector('.banner-three-area').addEventListener('mousemove', function(e) { 51 var wx = window.innerWidth; 52 var wy = window.innerHeight; 53 var x = e.pageX - this.offsetLeft; 54 var y = e.pageY - this.offsetTop; 55 var newx = x - wx / 2; 56 var newy = y - wy / 2; 57 58 document.querySelectorAll('.banner-shape').forEach(function(element) { 59 var speed = element.getAttribute('data-speed'); 60 if (element.getAttribute('data-revert')) { 61 speed *= -0.8; 62 } 63 TweenMax.to(element, 1, {x: (1 - newx * speed), y: (1 - newy * speed)}); 64 }); 65 }); 66 } 67 68 var $grid = $('.masonry-grid').imagesLoaded(function() { 69 $grid.masonry({ 70 itemSelector: '.masonry-grid-item', 71 percentPosition: true 72 }); 73 }); 74 75 // OPT Code JS 76 const getAboutsId = document.getElementById("banners-three-area"); 77 if (getAboutsId) { 78 document.addEventListener('DOMContentLoaded', () => { 79 const form = document.getElementById('otp-form') 80 const inputs = [...form.querySelectorAll('input[type=text]')] 81 const submit = form.querySelector('button[type=submit]') 82 83 const handleKeyDown = (e) => { 84 if ( 85 !/^[0-9]{1}$/.test(e.key) 86 && e.key !== 'Backspace' 87 && e.key !== 'Delete' 88 && e.key !== 'Tab' 89 && !e.metaKey 90 ) { 91 e.preventDefault() 92 } 93 94 if (e.key === 'Delete' || e.key === 'Backspace') { 95 const index = inputs.indexOf(e.target); 96 if (index > 0) { 97 inputs[index - 1].value = ''; 98 inputs[index - 1].focus(); 99 } 100 } 101 } 102 103 const handleInput = (e) => { 104 const { target } = e 105 const index = inputs.indexOf(target) 106 if (target.value) { 107 if (index < inputs.length - 1) { 108 inputs[index + 1].focus() 109 } else { 110 submit.focus() 111 } 112 } 113 } 114 115 const handleFocus = (e) => { 116 e.target.select() 117 } 118 119 const handlePaste = (e) => { 120 e.preventDefault() 121 const text = e.clipboardData.getData('text') 122 if (!new RegExp(`^[0-9]{${inputs.length}}$`).test(text)) { 123 return 124 } 125 const digits = text.split('') 126 inputs.forEach((input, index) => input.value = digits[index]) 127 submit.focus() 128 } 129 130 inputs.forEach((input) => { 131 input.addEventListener('input', handleInput) 132 input.addEventListener('keydown', handleKeyDown) 133 input.addEventListener('focus', handleFocus) 134 input.addEventListener('paste', handlePaste) 135 }) 136 }) 137 } 138 139 document.addEventListener("DOMContentLoaded", function() { 140 var listItems = document.querySelectorAll(".accordion .accordion-item"); 141 142 listItems.forEach(function(item) { 143 item.addEventListener("click", function() { 144 var activeItems = document.querySelectorAll(".accordion .accordion-item.active");
145 activeItems.forEach(function(activeItem) { 146 activeItem.classList.remove("active"); 147 }); 148 this.classList.add("active"); 149 }); 150 }); 151 }); 152 153 // Background Images JS 154 // Find all elements with a "data-background" attribute 155 var elements = document.querySelectorAll("[data-background]"); 156 157 // Loop through each element 158 elements.forEach(function (element) { 159 // Get the value of the "data-background" attribute 160 var backgroundValue = element.getAttribute("data-background"); 161 162 // Set the "background-image" CSS property 163 element.style.backgroundImage = "url(" + backgroundValue + ")"; 164 }); 165 }); 166 167 168 $( window ).on( 'elementor/frontend/init', function() { 169 elementorFrontend.hooks.addAction( 'frontend/element_ready/global', function( $scope ) { 170 171 // Partner Logo Slider 172 $('.owl-panther-slider').owlCarousel({ 173 loop: true, 174 margin: 20, 175 nav: false, 176 dots: false, 177 autoplay: true, 178 smartSpeed: 1000, 179 autoplayHoverPause: true, 180 responsive:{ 181 0:{ 182 items:2, 183 }, 184 340:{ 185 items:1, 186 }, 187 576:{ 188 items:3, 189 }, 190 768:{ 191 items:4, 192 }, 193 992:{ 194 items:5, 195 }, 196 1200:{ 197 items:6, 198 }, 199 1440:{ 200 items:6, 201 } 202 } 203 }); 204 205 // Banner Slide 1 JS 206 $('.owl-banner-slide-1').owlCarousel({ 207 loop: true, 208 margin: 0, 209 nav: false, 210 dots: false, 211 autoplay: true, 212 zoom: true, 213 smartSpeed: 2000, 214 autoplayHoverPause: false, 215 direction: 'horizontal', 216 responsive:{ 217 0:{ 218 items:1, 219 }, 220 340:{ 221 items:1, 222 }, 223 450:{ 224 items:1, 225 }, 226 576:{ 227 items:2, 228 }, 229 768:{ 230 items:2, 231 }, 232 800:{ 233 items:2, 234 }, 235 992:{ 236 items:2.5, 237 }, 238 1440:{ 239 items:3, 240 }, 241 1600:{ 242 items:3, 243 }, 244 1881:{ 245 items:4, 246 }, 247 } 248 }); 249 250 // Banner Slide 2 JS 251 $('.owl-banner-slide-2').owlCarousel({ 252 loop: true, 253 margin: 0, 254 rtl: true, 255 direction: 'horizontal', 256 nav: false, 257 dots: false, 258 autoplay: true, 259 smartSpeed: 2000, 260 zoom: true, 261 autoplayHoverPause: false, 262 responsive:{ 263 0:{ 264 items:1, 265 }, 266 370:{ 267 items:1.5, 268 }, 269 450:{ 270 items:1, 271 }, 272 576:{ 273 items:2, 274 }, 275 768:{ 276 items:2, 277 }, 278 800:{ 279 items:2, 280 }, 281 992:{ 282 items:2.5, 283 }, 284 1440:{ 285 items:3, 286 }, 287 1600:{ 288 items:3, 289 }, 290 1881:{ 291 items:4, 292 }, 293 } 294 }); 295 296 // Banner Slide 3 JS 297 $('.owl-banner-slide-3').owlCarousel({ 298 loop: true, 299 margin: 0, 300 nav: false, 301 dots: false, 302 autoplay: true, 303 smartSpeed: 2000, 304 zoom: true, 305 direction: 'horizontal', 306 autoplayHoverPause: false, 307 responsive:{ 308 0:{ 309 items:1, 310 }, 311 450:{ 312 items:1, 313 }, 314 576:{ 315 items:2, 316 }, 317 768:{ 318 items:2, 319 }, 320 992:{ 321 items:2.5, 322 }, 323 1440:{ 324 items:3, 325 }, 326 1600:{ 327 items:3, 328 }, 329 1881:{ 330 items:4, 331 }, 332 } 333 }); 334 335 // Movies Slide JS 336 $('.owl-movie-slider').owlCarousel({ 337 loop: true, 338 margin: 20, 339 nav: false, 340 dots: false, 341 autoplay: true, 342 smartSpeed: 1000, 343 autoplayHoverPause: true, 344 responsive:{ 345 0:{ 346 items:1, 347 }, 348 576:{ 349 items:2, 350 }, 351 768:{ 352 items:3, 353 }, 354 992:{ 355 items:4, 356 }, 357 1200:{ 358 items:5, 359 }, 360 1440:{ 361 items:6, 362 } 363 } 364 }); 365 366 // ALL Movies Slider JS 367 $('.owl-all-movies-slider').owlCarousel({ 368 loop: true, 369 margin: 25, 370 nav: true, 371 dots: false, 372 navText: [ 373 "<i class='ri-arrow-left-s-line'></i>", 374 "<i class='ri-arrow-right-s-line'></i>", 375 ], 376 autoplay: true, 377 smartSpeed: 1000, 378 autoplayHoverPause: true, 379 responsive:{ 380 0:{ 381 items:1, 382 }, 383 576:{ 384 items:1, 385 }, 386 768:{ 387 items:2, 388 }, 389 992:{ 390 items:3, 391 }, 392 1200:{ 393 items:4, 394 }, 395 1600:{ 396 items:5, 397 } 398 } 399 }); 400 401 // Testomonial Slide JS 402 $('.owl-testomonial-slide').owlCarousel({ 403 loop: true, 404 margin: 50, 405 nav: false, 406 dots: false, 407 autoplay: true, 408 smartSpeed: 1000, 409 autoplayHoverPause: true, 410 responsive:{ 411 0:{ 412 items:1, 413 }, 414 576:{ 415 items:2, 416 }, 417 768:{ 418 items:2, 419 }, 420 992:{ 421 items:3, 422 }, 423 1440:{ 424 items:4, 425 }, 426 1600:{ 427 items:4.5, 428 } 429 } 430 }); 431 432 // Testomonial Slide JS 433 $('.owl-testomonial-slide-pt').owlCarousel({ 434 loop: true, 435 margin: 50, 436 nav: true, 437 dots: false, 438 autoplay: true, 439 smartSpeed: 1000, 440 autoplayHoverPause: true, 441 navText: [ 442 "<i class='ti ti-arrow-left'></i>", 443 "<i class='ti ti-arrow-right'></i>", 444 ], 445 responsive:{ 446 0:{ 447 items:1, 448 }, 449 576:{ 450 items:2, 451 }, 452 768:{ 453 items:2, 454 }, 455 992:{ 456 items:3, 457 }, 458 1440:{ 459 items:4, 460 }, 461 1600:{ 462 items:4.5, 463 } 464 } 465 }); 466 467 // Reviews Slide JS
468 $('.owl-reviews-slide').owlCarousel({ 469 loop: true, 470 margin: 0, 471 nav: true, 472 dots: false, 473 autoplay: true, 474 items:1, 475 smartSpeed: 1000, 476 autoplayHoverPause: true, 477 navText: [ 478 "<i class='ti ti-arrow-left'></i>", 479 "<i class='ti ti-arrow-right'></i>", 480 ], 481 }); 482 483 // Explore Speeds Slide JS 484 $('.owl-explore-speeds-slide').owlCarousel({ 485 loop: true, 486 margin: 20, 487 nav: false, 488 dots: false, 489 autoplay: true, 490 smartSpeed: 1000, 491 autoplayHoverPause: true, 492 responsive:{ 493 0:{ 494 items:1, 495 }, 496 768:{ 497 items:2, 498 }, 499 992:{ 500 items:3, 501 }, 502 1440:{ 503 items:4, 504 }, 505 1600:{ 506 items:5, 507 }, 508 } 509 }); 510 511 // MO Banner Deal Slider JS 512 $('.mo-banner-deal-slider').owlCarousel({ 513 loop: true, 514 margin: 25, 515 nav: true, 516 mouseDrag: true, 517 items: 1, 518 dots: false, 519 autoHeight: true, 520 autoplay: true, 521 smartSpeed: 1500, 522 autoplayHoverPause: true, 523 navText: [ 524 "<i class='ti ti-arrow-left'></i>", 525 "<i class='ti ti-arrow-right'></i>", 526 ], 527 }); 528 529 // eSim Provider Slide JS 530 $('.owl-e-sim-provider').owlCarousel({ 531 loop: true, 532 margin: 0, 533 nav: false, 534 mouseDrag: true, 535 thumbs: true, 536 thumbsPrerendered: true, 537 items: 1, 538 dots: false, 539 autoHeight: true, 540 autoplay: true, 541 smartSpeed: 1500, 542 autoplayHoverPause: true, 543 }); 544 545 // e-Sim Provider Choose Slider JS 546 $('.owl-e-sim-provider-choose-slider').owlCarousel({ 547 loop: true, 548 margin: 20, 549 nav: true, 550 dots: false, 551 autoplay: true, 552 smartSpeed: 1000, 553 autoplayHoverPause: true, 554 navText: [ 555 "<i class='ri-arrow-left-line'></i>", 556 "<i class='ri-arrow-right-line'></i>", 557 ], 558 responsive:{ 559 0:{ 560 items:1, 561 }, 562 576:{ 563 items:2, 564 }, 565 768:{ 566 items:2, 567 }, 568 992:{ 569 items:3, 570 }, 571 1200:{ 572 items:4, 573 } 574 } 575 }); 576 577 // Testomonial Slide Two 578 $('.owl-testomonial-slide-two').owlCarousel({ 579 loop: true, 580 margin: 50, 581 nav: true, 582 dots: false, 583 autoplay: true, 584 smartSpeed: 1000, 585 autoplayHoverPause: true, 586 navText: [ 587 "<i class='ti ti-arrow-left'></i>", 588 "<i class='ti ti-arrow-right'></i>", 589 ], 590 responsive:{ 591 0:{ 592 items:1, 593 }, 594 576:{ 595 items:1, 596 }, 597 768:{ 598 items:1, 599 }, 600 992:{ 601 items:2, 602 }, 603 1440:{ 604 items:2, 605 }, 606 1600:{ 607 items:2, 608 } 609 } 610 }); 611 612 // Owl mo special slider 613 $('.owl-mo-special-slider').owlCarousel({ 614 loop: true, 615 margin: 0, 616 nav: false, 617 dots: true, 618 items: 1, 619 autoplay: true, 620 smartSpeed: 1000, 621 autoplayHoverPause: true, 622 }); 623 624 // Movies Slide JS 625 $('.owl-dish-tv-banner-slide').owlCarousel({ 626 loop: true, 627 margin: 20, 628 nav: false, 629 dots: false, 630 autoplay: true, 631 smartSpeed: 1000, 632 autoplayHoverPause: true, 633 responsive:{ 634 0:{ 635 items:1, 636 }, 637 576:{ 638 items:2, 639 }, 640 768:{ 641 items:3, 642 }, 643 992:{ 644 items:2.5, 645 }, 646 647 1440:{ 648 items:3, 649 }, 650 1600:{ 651 items:3, 652 }, 653 1881:{ 654 items:4, 655 }, 656 } 657 }); 658 659 // MH Movies Slider JS 660 $('.owl-mh-movies-slider').owlCarousel({ 661 loop: true, 662 margin: 1, 663 nav: false, 664 dots: true, 665 center: true, 666 autoplay: true, 667 smartSpeed: 1000, 668 autoplayHoverPause: true, 669 responsive:{ 670 0:{ 671 items:1, 672 center: false, 673 }, 674 576:{ 675 items:2, 676 center: false, 677 }, 678 768:{ 679 items:3, 680 }, 681 992:{ 682 items:5, 683 }, 684 1200:{ 685 items:5 686 }, 687 } 688 }); 689 690 // e-Sim Provider Choose Slider JS 691 $('.owl-dish-tv-overview-slide').owlCarousel({ 692 loop: true, 693 margin: 20, 694 nav: true, 695 dots: false, 696 autoplay: true, 697 smartSpeed: 1000, 698 autoplayHoverPause: true, 699 navText: [ 700 "<i class='ri-arrow-left-line'></i>", 701 "<i class='ri-arrow-right-line'></i>", 702 ], 703 responsive:{ 704 0:{ 705 items:1, 706 }, 707 576:{ 708 items:1, 709 }, 710 768:{ 711 items:2, 712 }, 713 992:{ 714 items:2, 715 }, 716 1200:{ 717 items:3, 718 } 719 } 720 }); 721 722 // Ott Platform Movies 1 JS 723 $('.owl-ott-platform-movies-1').owlCarousel({ 724 loop: true, 725 margin: 10, 726 nav: false, 727 dots: false, 728 autoplay: true, 729 zoom: true, 730 smartSpeed: 18000, 731 autoplayHoverPause: false, 732 direction: 'horizontal', 733 responsive:{ 734 0:{ 735 items:1, 736 }, 737 340:{ 738 items:1, 739 }, 740 450:{ 741 items:1, 742 }, 743 576:{ 744 items:2, 745 }, 746 768:{ 747 items:2, 748 }, 749 800:{ 750 items:2, 751 }, 752 992:{ 753 items:2.5, 754 }, 755 1440:{ 756 items:3, 757 }, 758 1600:{ 759 items:3, 760 }, 761 1881:{ 762 items:4, 763 }, 764 } 765 }); 766 767 // Ott Platform Movies 2 JS 768 $('.owl-ott-platform-movies-2').owlCarousel({ 769 loop: true, 770 margin: 10, 771 nav: false, 772 dots: false, 773 autoplay: true, 774 zoom: true, 775 rtl: true, 776 smartSpeed: 18000, 777 autoplayHoverPause: false, 778 direction: 'horizontal', 779 responsive:{ 780 0:{ 781 items:1, 782 }, 783 370:{ 784 items:1.5, 785 }, 786 450:{ 787 items:1, 788 }, 789 576:{ 790 items:2, 791 }, 792 768:{ 793 items:2, 794 }, 795 800:{ 796 items:3, 797 }, 798 992:{ 799 items:2.5, 800 }, 801 1440:{ 802 items:3, 803 }, 804 1600:{ 805 items:3.5, 806 }, 807 } 808 }); 809 810 // Odometer JS 811 if ("IntersectionObserver" in window) { 812 let counterObserver = new IntersectionObserver(function (entries, observer) {
813 entries.forEach(function (entry) { 814 if (entry.isIntersecting) { 815 let counter = entry.target; 816 let target = parseInt(counter.innerText); 817 let step = target / 200; 818 let current = 0; 819 let timer = setInterval(function () { 820 current += step; 821 counter.innerText = Math.floor(current); 822 if (parseInt(counter.innerText) >= target) { 823 clearInterval(timer); 824 } 825 }, 10); 826 counterObserver.unobserve(counter); 827 } 828 }); 829 }); 830 let counters = document.querySelectorAll(".counter"); 831 counters.forEach(function (counter) { 832 counterObserver.observe(counter); 833 }); 834 } 835 836 // Popup Video 837 $('.popup-video').magnificPopup({ 838 disableOn: 320, 839 type: 'iframe', 840 mainClass: 'mfp-fade', 841 removalDelay: 160, 842 preloader: false, 843 fixedContentPos: false 844 }); 845 846 // Masonry 847 $('.masonry-grid').masonry({ 848 itemSelector: '.masonry-grid-item' 849 }); 850 }); 851 }); 852 853}(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.