1(function (e) { 2 "use strict"; 3 var n = window.AFTHRAMPES_JS || {}; 4 n.mobileMenu = { 5 init: function () { 6 this.toggleMenu(), this.menuMobile(), this.menuArrow() 7 }, 8 toggleMenu: function () { 9 e('#masthead').on('click', '.toggle-menu', function (event) { 10 var ethis = e('.main-navigation .menu .menu-mobile'); 11 if (ethis.css('display') == 'block') { 12 ethis.slideUp('300'); 13 } else { 14 ethis.slideDown('300'); 15 } 16 e('.ham').toggleClass('exit'); 17 }); 18 e('#masthead .main-navigation ').on('click', '.menu-mobile a i', function (event) { 19 event.preventDefault(); 20 var ethis = e(this), 21 eparent = ethis.closest('li'); 22 if (eparent.find('> .children').length) { 23 var esub_menu = eparent.find('> .children'); 24 } else { 25 var esub_menu = eparent.find('> .sub-menu'); 26 } 27 if (esub_menu.css('display') == 'none') { 28 esub_menu.slideDown('300'); 29 ethis.addClass('active'); 30 } else { 31 esub_menu.slideUp('300'); 32 ethis.removeClass('active'); 33 } 34 return false; 35 }); 36 }, 37 menuMobile: function () { 38 if (e('.main-navigation .menu > ul').length) { 39 var ethis = e('.main-navigation .menu > ul'), 40 eparent = ethis.closest('.main-navigation'), 41 pointbreak = eparent.data('epointbreak'), 42 window_width = window.innerWidth; 43 if (typeof pointbreak == 'undefined') { 44 pointbreak = 991; 45 } 46 if (pointbreak >= window_width) { 47 ethis.addClass('menu-mobile').removeClass('menu-desktop'); 48 e('.main-navigation .toggle-menu').css('display', 'block'); 49 } else { 50 ethis.addClass('menu-desktop').removeClass('menu-mobile').css('display', ''); 51 e('.main-navigation .toggle-menu').css('display', ''); 52 } 53 } 54 }, 55 menuArrow: function () { 56 if (e('#masthead .main-navigation div.menu > ul').length) { 57 e('#masthead .main-navigation div.menu > ul .sub-menu').parent('li').find('> a').append('<i class="">'); 58 e('#masthead .main-navigation div.menu > ul .children').parent('li').find('> a').append('<i class="">'); 59 } 60 } 61 }, 62 n.DataBackground = function () { 63 var pageSection = e(".data-bg"); 64 pageSection.each(function (indx) { 65 if (e(this).attr("data-background")) { 66 e(this).css("background-image", "url(" + e(this).data("background") + ")"); 67 } 68 }); 69 e('.bg-image').each(function () { 70 var src = e(this).children('img').attr('src'); 71 e(this).css('background-image', 'url(' + src + ')').children('img').hide(); 72 }); 73 }, 74 n.setInstaHeight = function () { 75 e('.insta-slider-block').each(function () { 76 var img_width = e(this).find('.insta-item .af-insta-height').eq(0).innerWidth(); 77 e(this).find('.insta-item .af-insta-height').css('height', img_width); 78 }); 79 }, 80 81 n.Offcanvas = function () { 82 e('.offcanvas-nav').sidr({ 83 speed:300, 84 side: 'left' 85 }); 86 e('.sidr-class-sidr-button-close').on('click', function () { 87 e.sidr('close', 'sidr'); 88 }); 89 }, 90 // SHOW/HIDE SCROLL UP // 91 n.show_hide_scroll_top = function () { 92 if (e(window).scrollTop() > e(window).height() / 2) { 93 e("#scroll-up").fadeIn(300); 94 } else { 95 e("#scroll-up").fadeOut(300); 96 } 97 }, 98 n.scroll_up = function () { 99 e("#scroll-up").on("click", function () { 100 e("html, body").animate({ 101 scrollTop: 0 102 }, 800); 103 return false;
104 }); 105 }, 106 n.MagnificPopup = function () { 107 e('div.zoom-gallery').magnificPopup({ 108 delegate: 'a.insta-hover', 109 type: 'image', 110 closeOnContentClick: false, 111 closeBtnInside: false, 112 mainClass: 'mfp-with-zoom mfp-img-mobile', 113 image: { 114 verticalFit: true, 115 titleSrc: function (item) { 116 return item.el.attr('title'); 117 } 118 }, 119 gallery: { 120 enabled: true 121 }, 122 zoom: { 123 enabled: true, 124 duration: 300, 125 opener: function (element) { 126 return element.find('img'); 127 } 128 } 129 }); 130 e('.gallery').each(function () { 131 e(this).magnificPopup({ 132 delegate: 'a', 133 type: 'image', 134 gallery: { 135 enabled: true 136 }, 137 zoom: { 138 enabled: true, 139 duration: 300, 140 opener: function (element) { 141 return element.find('img'); 142 } 143 } 144 }); 145 }); 146 }, 147 n.searchReveal = function () { 148 jQuery('.search-overlay .search-icon').on('click', function () { 149 jQuery(this).parent().toggleClass('reveal-search'); 150 return false; 151 }); 152 153 jQuery('body').on('click', function (e) { 154 if (jQuery(".search-overlay").hasClass('reveal-search')) { 155 var container = jQuery(".search-overlay"); 156 if (!container.is(e.target) && container.has(e.target).length === 0) { 157 container.removeClass('reveal-search'); 158 } 159 } 160 }); 161 162 163 }, 164 n.em_sticky = function () { 165 jQuery('.home #secondary.aft-sticky-sidebar').theiaStickySidebar({ 166 additionalMarginTop: 30 167 }); 168 }, 169 n.SliderAsNavFor = function () { 170 if (e('.banner-single-slider-1-wrap').hasClass("no-thumbnails")) { 171 return null; 172 } else { 173 return '.af-banner-slider-thumbnail'; 174 } 175 }, 176 n.RtlCheck = function () { 177 if (e('body').hasClass("rtl")) { 178 return true; 179 } else { 180 return false; 181 } 182 }, 183 n.checkThumbOption =function(){ 184 if(e('.hasthumbslide').hasClass('side')){ 185 return '.af-post-slider-thumbnail'; 186 }else{ 187 return false; 188 } 189 }, 190 191 n.SlickBannerSlider = function () { 192 e(".af-banner-slider").not('.slick-initialized').slick({ 193 slidesToShow: 1, 194 slidesToScroll: 1, 195 autoplay: true, 196 autoplaySpeed: 8000, 197 infinite: true, 198 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 199 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 200 rtl: n.RtlCheck() 201 }); 202 }, 203 204 n.SlickPostSlider = function () { 205 e(".af-post-slider").not('.slick-initialized').slick({ 206 slidesToShow: 1, 207 slidesToScroll: 1, 208 autoplay: true, 209 autoplaySpeed: 12000, 210 infinite: true, 211 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 212 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 213 //appendArrows: e('.af-post-navcontrols'), 214 //asNavFor: '.af-post-slider-thumbnail', 215 asNavFor: n.checkThumbOption(), 216 rtl: n.RtlCheck() 217 }); 218 }, 219 220 221 n.SlickPostSliderSide = function () { 222 e(".af-post-slider-thumbnail.side").not('.slick-initialized').slick({ 223 slidesToShow: 4, 224 slidesToScroll: 1, 225 autoplay: true, 226 autoplaySpeed: 12000, 227 speed: 1000, 228 vertical: true, 229 verticalSwiping: true, 230 infinite: true,
231 nextArrow: false, 232 prevArrow: false, 233 asNavFor: '.af-post-slider', 234 focusOnSelect: true, 235 // rtl: n.RtlCheck(), 236 responsive: [ 237 { 238 breakpoint: 770, 239 settings: { 240 slidesToShow: 3, 241 slidesToScroll: 1 242 } 243 }, 244 { 245 breakpoint: 601, 246 settings: { 247 slidesToShow: 2, 248 slidesToScroll: 2 249 } 250 }, 251 { 252 breakpoint: 480, 253 settings: { 254 slidesToShow: 1, 255 slidesToScroll: 1 256 } 257 } 258 ] 259 }); 260 }, 261 262 //Slick Carousel 263 n.SlickCarousel = function () { 264 e(".af-post-carousel").not('.slick-initialized').slick({ 265 slidesToShow: 3, 266 slidesToScroll: 1, 267 autoplay: true, 268 autoplaySpeed: 12000, 269 infinite: true, 270 // centerMode: true, 271 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 272 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 273 //appendArrows: e('.af-carousel-navcontrols'), 274 rtl: n.RtlCheck(), 275 responsive: [ 276 { 277 breakpoint: 1024, 278 settings: { 279 slidesToShow: 3, 280 slidesToScroll: 3 281 } 282 }, 283 { 284 breakpoint: 769, 285 settings: { 286 slidesToShow: 2, 287 slidesToScroll: 2 288 } 289 }, 290 { 291 breakpoint: 600, 292 settings: { 293 slidesToShow: 2, 294 slidesToScroll: 2 295 } 296 }, 297 { 298 breakpoint: 480, 299 settings: { 300 slidesToShow: 1, 301 slidesToScroll: 1 302 } 303 } 304 ] 305 }); 306 }, 307 308 //Slick Carousel 309 n.SlickCarouselAboveFooter = function () { 310 e(".above-footer-widget-section .af-post-carousel").not('.slick-initialized').slick({ 311 slidesToShow: 4, 312 slidesToScroll: 1, 313 autoplay: true, 314 autoplaySpeed: 12000, 315 infinite: true, 316 // centerMode: true, 317 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 318 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 319 //appendArrows: e('.af-carousel-navcontrols'), 320 rtl: n.RtlCheck(), 321 responsive: [ 322 { 323 breakpoint: 1024, 324 settings: { 325 slidesToShow: 4, 326 slidesToScroll: 3 327 } 328 }, 329 { 330 breakpoint: 769, 331 settings: { 332 slidesToShow: 3, 333 slidesToScroll: 2 334 } 335 }, 336 { 337 breakpoint: 600, 338 settings: { 339 slidesToShow: 2, 340 slidesToScroll: 2 341 } 342 }, 343 { 344 breakpoint: 480, 345 settings: { 346 slidesToShow: 1, 347 slidesToScroll: 1 348 } 349 } 350 ] 351 }); 352 }, 353 //Slick Carousel
354 n.SlickCarouselSecondary = function () { 355 e("#secondary .af-post-carousel").not('.slick-initialized').slick({ 356 slidesToShow: 1, 357 slidesToScroll: 1, 358 autoplay: true, 359 autoplaySpeed: 12000, 360 infinite: true, 361 centerMode: false, 362 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 363 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 364 //appendArrows: e('.af-carousel-navcontrols'), 365 rtl: n.RtlCheck(), 366 responsive: [ 367 { 368 breakpoint: 1024, 369 settings: { 370 slidesToShow: 1, 371 slidesToScroll: 1, 372 infinite: true 373 } 374 }, 375 { 376 breakpoint: 600, 377 settings: { 378 slidesToShow: 1, 379 slidesToScroll: 1 380 } 381 }, 382 { 383 breakpoint: 480, 384 settings: { 385 slidesToShow: 1, 386 slidesToScroll: 1 387 } 388 } 389 ] 390 }); 391 }, 392 //Slick Carousel 393 n.SlickCarouselFooter = function () { 394 e("footer .af-post-carousel").not('.slick-initialized').slick({ 395 slidesToShow: 1, 396 slidesToScroll: 1, 397 autoplay: true, 398 autoplaySpeed: 12000, 399 infinite: true, 400 centerMode: false, 401 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 402 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 403 //appendArrows: e('.af-carousel-navcontrols'), 404 rtl: n.RtlCheck(), 405 responsive: [ 406 { 407 breakpoint: 1024, 408 settings: { 409 slidesToShow: 1, 410 slidesToScroll: 1, 411 infinite: true 412 } 413 }, 414 { 415 breakpoint: 600, 416 settings: { 417 slidesToShow: 1, 418 slidesToScroll: 1 419 } 420 }, 421 { 422 breakpoint: 480, 423 settings: { 424 slidesToShow: 1, 425 slidesToScroll: 1 426 } 427 } 428 ] 429 }); 430 }, 431 //Slick Carousel 432 n.SlickCarouselSidr = function () { 433 e("#sidr .af-post-carousel").not('.slick-initialized').slick({ 434 slidesToShow: 1, 435 slidesToScroll: 1, 436 autoplay: true, 437 autoplaySpeed: 12000, 438 infinite: true, 439 centerMode: false, 440 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 441 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 442 //appendArrows: e('.af-carousel-navcontrols'), 443 rtl: n.RtlCheck(), 444 responsive: [ 445 { 446 breakpoint: 1024, 447 settings: { 448 slidesToShow: 1, 449 slidesToScroll: 1, 450 infinite: true 451 } 452 }, 453 { 454 breakpoint: 600, 455 settings: { 456 slidesToShow: 1, 457 slidesToScroll: 1 458 } 459 }, 460 { 461 breakpoint: 480, 462 settings: { 463 slidesToShow: 1, 464 slidesToScroll: 1 465 } 466 } 467 ] 468 }); 469 }, 470 //Slick Carousel
471 n.SlickVerticalCarousel = function () { 472 e(".trending-posts-vertical").not('.slick-initialized').slick({ 473 slidesToShow: 5, 474 slidesToScroll: 1, 475 autoplay: true, 476 infinite: true, 477 vertical: true, 478 verticalSwiping: true, 479 dots: false, 480 prevArrow: false, 481 nextArrow: false, 482 responsive: [ 483 484 { 485 breakpoint: 600, 486 settings: { 487 draggable: false, 488 swipeToSlide: false, 489 touchMove: false, 490 swipe: false 491 } 492 } 493 ] 494 }); 495 }, 496 //Instagram carousel 497 n.SlickInstagtram = function () { 498 e('.af-instagram-img').each(function () { 499 e('.af-instagram-img').not('.slick-initialized').slick({ 500 slidesToShow: 6, 501 slidesToScroll: 1, 502 autoplay: true, 503 autoplaySpeed: 12000, 504 infinite: true, 505 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 506 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 507 //appendArrows: earrows, 508 rtl: n.RtlCheck(), 509 responsive: [ 510 { 511 breakpoint: 1024, 512 settings: { 513 slidesToShow: 3, 514 slidesToScroll: 3, 515 infinite: true 516 } 517 }, 518 { 519 breakpoint: 600, 520 settings: { 521 slidesToShow: 2, 522 slidesToScroll: 2 523 } 524 }, 525 { 526 breakpoint: 480, 527 settings: { 528 slidesToShow: 1, 529 slidesToScroll: 1 530 } 531 } 532 ] 533 }); 534 }); 535 }, 536 //Instagram carousel 537 n.SlickInstagtramSecondary = function () { 538 e('#secondary .af-instagram-img').each(function () { 539 e(this).not('.slick-initialized').slick({ 540 slidesToShow: 1, 541 slidesToScroll: 1, 542 autoplay: true, 543 autoplaySpeed: 12000, 544 infinite: true, 545 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 546 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 547 //appendArrows: earrows, 548 rtl: n.RtlCheck(), 549 responsive: [ 550 { 551 breakpoint: 1024, 552 settings: { 553 slidesToShow: 1, 554 slidesToScroll: 1, 555 infinite: true 556 } 557 }, 558 { 559 breakpoint: 900, 560 settings: { 561 slidesToShow: 2, 562 slidesToScroll: 2 563 } 564 }, 565 { 566 breakpoint: 600, 567 settings: { 568 slidesToShow: 1, 569 slidesToScroll: 1 570 } 571 }, 572 { 573 breakpoint: 480, 574 settings: { 575 slidesToShow: 1, 576 slidesToScroll: 1 577 } 578 } 579 ] 580 }); 581 }); 582 }, 583 //Instagram carousel
584 n.SlickInstagtramSecondary = function () { 585 e('#secondary .af-instagram-img').each(function () { 586 e(this).not('.slick-initialized').slick({ 587 slidesToShow: 1, 588 slidesToScroll: 1, 589 autoplay: true, 590 autoplaySpeed: 12000, 591 infinite: true, 592 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 593 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 594 //appendArrows: earrows, 595 rtl: n.RtlCheck(), 596 responsive: [ 597 { 598 breakpoint: 1024, 599 settings: { 600 slidesToShow: 1, 601 slidesToScroll: 1, 602 infinite: true 603 } 604 }, 605 { 606 breakpoint: 600, 607 settings: { 608 slidesToShow: 1, 609 slidesToScroll: 1 610 } 611 }, 612 { 613 breakpoint: 480, 614 settings: { 615 slidesToShow: 1, 616 slidesToScroll: 1 617 } 618 } 619 ] 620 }); 621 }); 622 }, 623 n.SlickInstagtramFooter = function () { 624 e('footer .af-instagram-img').each(function () { 625 e(this).not('.slick-initialized').slick({ 626 slidesToShow: 1, 627 slidesToScroll: 1, 628 autoplay: true, 629 autoplaySpeed: 12000, 630 infinite: true, 631 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 632 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 633 //appendArrows: earrows, 634 rtl: n.RtlCheck(), 635 responsive: [ 636 { 637 breakpoint: 1024, 638 settings: { 639 slidesToShow: 1, 640 slidesToScroll: 1, 641 infinite: true 642 } 643 }, 644 { 645 breakpoint: 600, 646 settings: { 647 slidesToShow: 1, 648 slidesToScroll: 1 649 } 650 }, 651 { 652 breakpoint: 480, 653 settings: { 654 slidesToShow: 1, 655 slidesToScroll: 1 656 } 657 } 658 ] 659 }); 660 }); 661 }, 662 //Instagram carousel 663 n.SlickInstagtramSidr = function () { 664 e('#sidr .af-instagram-img').each(function () { 665 e(this).not('.slick-initialized').slick({ 666 slidesToShow: 1, 667 slidesToScroll: 1, 668 autoplay: true, 669 autoplaySpeed: 12000, 670 infinite: true, 671 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 672 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 673 //appendArrows: earrows, 674 rtl: n.RtlCheck(), 675 responsive: [ 676 { 677 breakpoint: 1024, 678 settings: { 679 slidesToShow: 1, 680 slidesToScroll: 1, 681 infinite: true 682 } 683 }, 684 { 685 breakpoint: 600, 686 settings: { 687 slidesToShow: 1, 688 slidesToScroll: 1 689 } 690 }, 691 { 692 breakpoint: 480, 693 settings: { 694 slidesToShow: 1, 695 slidesToScroll: 1 696 } 697 } 698 ] 699 }); 700 }); 701 }, 702 n.SlickYoutubeVideo = function () { 703 e(".af-youtube-slider-thumbnail-bottom").not('.slick-initialized').slick({ 704 slidesToShow: 4, 705 slidesToScroll: 1, 706 autoplay: true, 707 autoplaySpeed: 12000, 708 infinite: true, 709 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 710 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 711 //appendArrows: earrows, 712 rtl: n.RtlCheck(), 713 responsive: [ 714 { 715 breakpoint: 1024, 716 settings: { 717 slidesToShow: 3, 718 slidesToScroll: 3, 719 infinite: true, 720 } 721 }, 722 { 723 breakpoint: 600, 724 settings: { 725 slidesToShow: 2, 726 slidesToScroll: 2 727 } 728 }, 729 { 730 breakpoint: 480, 731 settings: { 732 slidesToShow: 2, 733 slidesToScroll: 2 734 } 735 } 736 ] 737 }); 738 }, 739 740 n.SlickYoutubeVideoSide = function () { 741 e(".af-youtube-slider-thumbnail-side").not('.slick-initialized').slick({ 742 slidesToShow: 5, 743 slidesToScroll: 1, 744 autoplay: true, 745 autoplaySpeed: 12000, 746 vertical: true, 747 verticalSwiping: true, 748 infinite: true, 749 nextArrow: '<span class="slide-icon slide-next icon-right fas fa-angle-right"></span>', 750 prevArrow: '<span class="slide-icon slide-prev icon-left fas fa-angle-left"></span>', 751 //appendArrows: earrows, 752 rtl: n.RtlCheck(), 753 responsive: [ 754 { 755 breakpoint: 1024, 756 settings: { 757 slidesToShow: 5, 758 slidesToScroll: 1, 759 infinite: true, 760 } 761 }, 762 { 763 breakpoint: 770, 764 settings: { 765 vertical: false, 766 verticalSwiping: false, 767 slidesToShow: 4, 768 slidesToScroll: 1 769 } 770 }, 771 { 772 breakpoint: 601,
773 settings: { 774 vertical: false, 775 verticalSwiping: false, 776 slidesToShow: 3, 777 slidesToScroll: 1 778 } 779 }, 780 { 781 breakpoint: 480, 782 settings: { 783 vertical: false, 784 verticalSwiping: false, 785 slidesToShow: 2, 786 slidesToScroll: 2 787 } 788 } 789 ] 790 }); 791 }, 792 793 n.jQueryMarquee = function () { 794 e('.marquee.aft-flash-slide').marquee({ 795 //duration in milliseconds of the marquee 796 speed: 80000, 797 //gap in pixels between the tickers 798 gap: 0, 799 //time in milliseconds before the marquee will start animating 800 delayBeforeStart: 0, 801 //'left' or 'right' 802 // direction: 'right', 803 //true or false - should the marquee be duplicated to show an effect of continues flow 804 duplicated: true, 805 pauseOnHover: true, 806 startVisible: true 807 }); 808 }, 809 810 //Video thumbnail 811 n.YouTubeThumbnail = function () { 812 e('.af-custom-thumbnail').on('click', function () { 813 e(this).parents('.slider-pro').find('.af-hide-iframe').addClass('af-display-iframe'); 814 e(this).parents('.slider-pro').find('iframe').addClass('af-display-iframe'); 815 if (e(this).parents('.slider-pro').find('.fluid-width-video-wrapper').length > 0) { 816 e(this).parents('.slider-pro').find('.fluid-width-video-wrapper').addClass('af-iframe-added'); 817 } 818 819 e(this).parents('.slider-pro').find('.vid_frame').removeAttr('src'); 820 e(this).parents('.slider-pro').find('.af-video-wrap').removeAttr('data-video-link'); 821 var selected_vdo_link = e(this).data('video'); 822 e(this).parents('.slider-pro').find('.af-video-wrap').attr('data-video-link', selected_vdo_link); 823 var img = e(this).data('item'); 824 e(this).parents('.slider-pro').find('.af-video-wrap').css('background-image', 'url(' + img + ')'); 825 e(this).parents('.slider-pro').find('.af-video-wrap').css('padding-top', '50%'); 826 827 }); 828 829 e('.af-video-wrap').on('click', function () { 830 e(this).parents('.slider-pro').find('.vid_frame').removeAttr('src'); 831 e(this).parents('.slider-pro').find('.af-hide-iframe').removeClass('af-display-iframe'); 832 e(this).parents('.slider-pro').find('.fluid-width-video-wrapper').removeClass('af-iframe-added'); 833 e(this).parents('.slider-pro').find('.fluid-width-video-wrapper').addClass('asd'); 834 835 e(this).css('padding-top', 0); 836 var video_link = e(this).attr('data-video-link'); 837 838 e(this).parents('.slider-pro').find('.vid_frame').attr('src', video_link); 839 e(".vid-container").fitVids(); 840 841 }); 842 843 /*JS FOR SCROLLING THE ROW OF THUMBNAILS*/ 844 845 e('.first_thb_img').each(function () { 846 var active_banner = e(this).data('item'); 847 var first_video = e(this).data('video'); 848 e(this).parents('.slider-pro').find('.af-video-wrap').css('padding-top', '50%'); 849 e(this).parents('.slider-pro').find('.af-hide-iframe').addClass('af-display-iframe'); 850 851 e(this).parents('.slider-pro').find('.af-video-wrap').css('background-image', 'url(' + active_banner + ')'); 852 e(this).parents('.slider-pro').find('.af-video-wrap').attr('data-video-link', first_video); 853 }); 854 855 856 e(".vid-item").each(function (index) { 857 e(this).on("click", function () { 858 var current_index = index + 1; 859 e(".vid-item .thumb").removeClass("active"); 860 e(".vid-item:nth-child(" + current_index + ") .thumb").addClass("active"); 861 }); 862 }); 863 864 865 }, 866 n.MasonryBlog = function () { 867 if (e('.aft-masonry-archive-posts').length > 0) { 868 jQuery('.aft-masonry-archive-posts').masonry(); 869 } 870 } 871 872 873 874 e(document).ready(function () { 875 876 if (window.elementorFrontend && typeof elementorFrontend.hooks != 'undefined') { 877 window.elementorFrontend.hooks.addAction('frontend/element_ready/widget', function (escope) {
878 n.DataBackground(); 879 n.SlickCarousel(); 880 n.SlickVerticalCarousel(); 881 n.SlickPostSlider(); 882 n.SlickPostSliderSide(); 883 n.SlickYoutubeVideo(); 884 n.SlickYoutubeVideoSide(); 885 n.SlickYoutubeVideo(); 886 n.SlickYoutubeVideoSide(); 887 n.YouTubeThumbnail(); 888 n.SlickInstagtram(); 889 890 }); 891 } 892 n.mobileMenu.init(), 893 n.jQueryMarquee(), 894 n.setInstaHeight(), 895 n.em_sticky(), 896 n.MagnificPopup(), 897 n.Offcanvas(), 898 n.searchReveal(), 899 n.scroll_up(), 900 n.SlickBannerSlider(), 901 n.SlickPostSlider(), 902 n.SlickPostSliderSide(), 903 n.SlickCarouselAboveFooter(), 904 n.SlickCarouselSidr(), 905 n.SlickCarouselFooter(), 906 n.SlickCarouselSecondary(), 907 n.SlickCarousel(), 908 n.SlickVerticalCarousel(), 909 n.SlickInstagtramSidr(), 910 n.SlickInstagtramFooter(), 911 n.SlickYoutubeVideo(), 912 n.SlickYoutubeVideoSide(), 913 n.YouTubeThumbnail(), 914 n.SlickInstagtramSecondary(), 915 n.SlickInstagtram(); 916 917 918 }), e(window).scroll(function () { 919 920 n.show_hide_scroll_top(); 921 }), e(window).load(function () { 922 n.DataBackground(); 923 n.MasonryBlog(); 924 e('#loader-wrapper').fadeOut(); 925 e('#af-preloader').delay(500).fadeOut('slow'); 926 927 e(".af-search-click").on('click', function () { 928 e("#af-search-wrap").toggleClass("af-search-toggle"); 929 }); 930 }), 931 e(window).resize(function () { 932 n.mobileMenu.menuMobile(); 933 }); 934 935})(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.