1(function (e) { 2 "use strict"; 3 var n = window.AFTHRAMPES_JS || {}; 4 n.stickyMenu = function () { 5 e(window).scrollTop() > 350 ? e("#masthead").addClass("nav-affix") : e("#masthead").removeClass("nav-affix") 6 }, 7 n.mobileMenu = { 8 init: function () { 9 this.toggleMenu(), this.menuMobile(), this.menuArrow() 10 }, 11 toggleMenu: function () { 12 e('#masthead').on('click', '.toggle-menu', function (event) { 13 var ethis = e('.main-navigation .menu .menu-mobile'); 14 if (ethis.css('display') == 'block') { 15 ethis.slideUp('300'); 16 } else { 17 ethis.slideDown('300'); 18 } 19 e('.ham').toggleClass('exit'); 20 e('body.aft-sticky-header').toggleClass('aft-sticky-header-revealed'); 21 }); 22 23 e('#masthead .main-navigation ').on('click', '.menu-mobile a button', function (event) { 24 event.preventDefault(); 25 var ethis = e(this), 26 eparent = ethis.closest('li'); 27 28 if (eparent.find('> .children').length) { 29 var esub_menu = eparent.find('> .children'); 30 } else { 31 var esub_menu = eparent.find('> .sub-menu'); 32 } 33 34 if (esub_menu.css('display') == 'none') { 35 esub_menu.slideDown('300'); 36 ethis.addClass('active'); 37 } else { 38 esub_menu.slideUp('300'); 39 ethis.removeClass('active'); 40 } 41 42 return false; 43 44 }); 45 }, 46 menuMobile: function () { 47 if (e('.main-navigation .menu > ul').length) { 48 49 var ethis = e('.main-navigation .menu > ul'), 50 eparent = ethis.closest('.main-navigation'), 51 pointbreak = eparent.data('epointbreak'), 52 window_width = window.innerWidth; 53 54 if (typeof pointbreak == 'undefined') { 55 pointbreak = 991; 56 } 57 58 if (pointbreak >= window_width) { 59 ethis.addClass('menu-mobile').removeClass('menu-desktop'); 60 e('.main-navigation .toggle-menu').css('display', 'block'); 61 } else { 62 ethis.addClass('menu-desktop').removeClass('menu-mobile').css('display', ''); 63 e('.main-navigation .toggle-menu').css('display', 'none'); 64 } 65 } 66 }, 67 menuArrow: function () { 68 if (e('#masthead .main-navigation div.menu > ul').length) { 69 e('#masthead .main-navigation div.menu > ul .sub-menu').parent('li').find('> a').append('<button class="fa fa-angle-down">'); 70 e('#masthead .main-navigation div.menu > ul .children').parent('li').find('> a').append('<button class="fa fa-angle-down">'); 71 } 72 } 73 }, 74 75 76 n.DataBackground = function () { 77 var pageSection = e(".data-bg"); 78 pageSection.each(function (indx) { 79 if (e(this).attr("data-background")) { 80 e(this).css("background-image", "url(" + e(this).data("background") + ")"); 81 } 82 }); 83 84 e('.bg-image').each(function () { 85 var src = e(this).children('img').attr('src'); 86 e(this).css('background-image', 'url(' + src + ')').children('img').hide(); 87 }); 88 }, 89 90 n.setInstaHeight = function () { 91 e('.insta-slider-block').each(function () { 92 var img_width = e(this).find('.insta-item .af-insta-height').eq(0).innerWidth(); 93 94 e(this).find('.insta-item .af-insta-height').css('height', img_width); 95 }); 96 }, 97 98 99 /* Slick Slider */ 100 n.SlickCarousel = function () { 101 102 103 104 e(".full-slider-mode").slick({ 105 slidesToShow: 1, 106 slidesToScroll: 1, 107 autoplay: true, 108 autoplaySpeed: 12000, 109 infinite: true, 110 nextArrow: '<span class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></span>', 111 prevArrow: '<span class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></span>',
112 appendArrows: e('.af-main-navcontrols'), 113 rtl: rtl_slick() 114 115 }); 116 117 function rtl_slick(){ 118 if (e('body').hasClass("rtl")) { 119 return true; 120 } else { 121 return false; 122 }} 123 124 125 e(".posts-slider").slick({ 126 slidesToShow: 1, 127 slidesToScroll: 1, 128 autoplay: true, 129 autoplaySpeed: 10000, 130 infinite: true, 131 nextArrow: '<i class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></i>', 132 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></i>', 133 rtl: rtl_slick() 134 }); 135 136 e(".classic-mode .trending-posts-carousel").not('.slick-initialized').slick({ 137 autoplay: true, 138 vertical: true, 139 slidesToShow: 5, 140 slidesToScroll: 1, 141 verticalSwiping: true, 142 autoplaySpeed: 10000, 143 infinite: true, 144 nextArrow: '<i class="slide-icon slide-icon-1 slide-next fas fa-angle-down"></i>', 145 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>', 146 appendArrows: e('.af-trending-navcontrols'), 147 responsive: [ 148 { 149 breakpoint: 1834, 150 settings: { 151 slidesToShow: 5 152 } 153 }, 154 { 155 breakpoint: 991, 156 settings: { 157 slidesToShow: 5 158 } 159 }, 160 { 161 breakpoint: 768, 162 settings: { 163 slidesToShow: 3 164 } 165 }, 166 167 { 168 breakpoint: 480, 169 settings: { 170 slidesToShow: 3 171 } 172 } 173 ] 174 }); 175 176 e("#aft-trending-story-five .trending-posts-carousel").not('.slick-initialized').slick({ 177 autoplay: true, 178 vertical: true, 179 slidesToShow: 5, 180 slidesToScroll: 1, 181 verticalSwiping: true, 182 autoplaySpeed: 10000, 183 infinite: true, 184 nextArrow: '<i class="slide-icon slide-icon-1 slide-next fas fa-angle-down"></i>', 185 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>', 186 appendArrows: e('.af-trending-navcontrols'), 187 responsive: [ 188 { 189 breakpoint: 1834, 190 settings: { 191 slidesToShow: 5 192 } 193 }, 194 { 195 breakpoint: 991, 196 settings: { 197 slidesToShow: 5 198 } 199 }, 200 { 201 breakpoint: 768, 202 settings: { 203 slidesToShow: 3 204 } 205 }, 206 207 { 208 breakpoint: 480, 209 settings: { 210 slidesToShow: 3 211 } 212 } 213 ] 214 }); 215 216 e(".trending-posts-carousel").not('.slick-initialized').slick({ 217 autoplay: true, 218 vertical: true, 219 slidesToShow: 4, 220 slidesToScroll: 1, 221 verticalSwiping: true, 222 autoplaySpeed: 10000, 223 infinite: true, 224 nextArrow: '<i class="slide-icon slide-icon-1 slide-next fas fa-angle-down"></i>', 225 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>',
226 appendArrows: e('.af-trending-navcontrols'), 227 responsive: [ 228 { 229 breakpoint: 1834, 230 settings: { 231 slidesToShow: 4 232 } 233 }, 234 { 235 breakpoint: 991, 236 settings: { 237 slidesToShow: 4 238 } 239 }, 240 { 241 breakpoint: 768, 242 settings: { 243 slidesToShow: 3 244 } 245 }, 246 247 { 248 breakpoint: 480, 249 settings: { 250 slidesToShow: 3 251 } 252 } 253 ] 254 }); 255 256 257 258 e(".trending-posts-vertical-carousel").slick({ 259 autoplay: true, 260 vertical: true, 261 slidesToShow: 5, 262 slidesToScroll: 1, 263 verticalSwiping: true, 264 autoplaySpeed: 10000, 265 infinite: true, 266 nextArrow: '<i class="slide-icon slide-icon-1 slide-next fas fa-angle-down"></i>', 267 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>' 268 }); 269 270 e("#primary .posts-carousel").slick({ 271 slidesToShow: 3, 272 slidesToScroll: 1, 273 autoplay: true, 274 autoplaySpeed: 10000, 275 infinite: true, 276 rtl: rtl_slick(), 277 nextArrow: '<i class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></i>', 278 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></i>', 279 responsive: [ 280 { 281 breakpoint: 991, 282 settings: { 283 slidesToShow: 3, 284 slidesToScroll: 3 285 } 286 }, 287 { 288 breakpoint: 768, 289 settings: { 290 slidesToShow: 2, 291 slidesToScroll: 2 292 } 293 }, 294 295 { 296 breakpoint: 480, 297 settings: { 298 slidesToShow: 1, 299 slidesToScroll: 1 300 } 301 } 302 ] 303 }); 304 305 e("#secondary .posts-carousel").slick({ 306 slidesToShow: 1, 307 slidesToScroll: 1, 308 autoplay: true, 309 autoplaySpeed: 10000, 310 infinite: true, 311 rtl: rtl_slick(), 312 nextArrow: '<i class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></i>', 313 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></i>', 314 315 }); 316 317 e(".gallery-columns-1").slick({ 318 slidesToShow: 1, 319 slidesToScroll: 1, 320 fade: true, 321 autoplay: true, 322 autoplaySpeed: 10000, 323 infinite: true, 324 nextArrow: '<i class="slide-icon slide-icon-1 slide-next fa fa-arrow-right"></i>', 325 prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fa fa-arrow-left"></i>', 326 dots: true 327 }); 328 329 330 331 }, 332 333 n.Preloader = function () { 334 e(window).on('load', function () { 335 e('#loader-wrapper').fadeOut(); 336 e('#af-preloader').delay(500).fadeOut('slow'); 337 338 }); 339 }, 340 341 n.Search = function () { 342 e(window).on('load', function () { 343 e(".af-search-click").on('click', function(){ 344 e("#af-search-wrap").toggleClass("af-search-toggle"); 345 }); 346 }); 347 }, 348 349 n.searchReveal = function () { 350 e(window).on('load', function () { 351 jQuery('.search-icon').on('click', function (event) { 352 event.preventDefault(); 353 jQuery('.search-overlay').toggleClass('reveal-search'); 354 }); 355 356 }); 357 358 359 }, 360 361 n.Offcanvas = function () { 362 e('.offcanvas-nav').sidr({ 363 side: 'left' 364 }); 365 366 e('.sidr-class-sidr-button-close').on('click', function () { 367 e.sidr('close', 'sidr'); 368 }); 369 }, 370 371 // SHOW/HIDE SCROLL UP // 372 n.show_hide_scroll_top = function () { 373 if (e(window).scrollTop() > e(window).height() / 2) { 374 e("#scroll-up").fadeIn(300); 375 } else { 376 e("#scroll-up").fadeOut(300); 377 } 378 }, 379 380 n.scroll_up = function () { 381 e("#scroll-up").on("click", function () { 382 e("html, body").animate({ 383 scrollTop: 0 384 }, 800); 385 return false;
386 }); 387 }, 388 389 390 391 n.MagnificPopup = function () { 392 e('div.zoom-gallery').magnificPopup({ 393 delegate: 'a.insta-hover', 394 type: 'image', 395 closeOnContentClick: false, 396 closeBtnInside: false, 397 mainClass: 'mfp-with-zoom mfp-img-mobile', 398 image: { 399 verticalFit: true, 400 titleSrc: function (item) { 401 return item.el.attr('title'); 402 } 403 }, 404 gallery: { 405 enabled: true 406 }, 407 zoom: { 408 enabled: true, 409 duration: 300, 410 opener: function (element) { 411 return element.find('img'); 412 } 413 } 414 }); 415 416 e('.gallery').each(function() { 417 e(this).magnificPopup({ 418 delegate: 'a', 419 type: 'image', 420 gallery: { 421 enabled:true 422 }, 423 zoom: { 424 enabled: true, 425 duration: 300, 426 opener: function (element) { 427 return element.find('img'); 428 } 429 } 430 }); 431 432 }); 433 434 435 e('.wp-block-gallery').each(function () { 436 e(this).magnificPopup({ 437 delegate: 'a', 438 type: 'image', 439 gallery: { 440 enabled: true 441 }, 442 zoom: { 443 enabled: true, 444 duration: 300, 445 opener: function (element) { 446 return element.find('img'); 447 } 448 } 449 }); 450 }); 451 452 }, 453 454 455 n.jQueryMarqueeRight = function () { 456 e('.marquee.flash-slide-right').marquee({ 457 //duration in milliseconds of the marquee 458 speed: 80000, 459 //gap in pixels between the tickers 460 gap: 0, 461 //time in milliseconds before the marquee will start animating 462 delayBeforeStart: 0, 463 //'left' or 'right' 464 //direction: 'right', 465 //true or false - should the marquee be duplicated to show an effect of continues flow 466 duplicated: true, 467 pauseOnHover: true, 468 startVisible: true 469 }); 470 }, 471 472 n.jQueryMarquee = function () { 473 e('.marquee.flash-slide-left').marquee({ 474 //duration in milliseconds of the marquee 475 speed: 80000, 476 //gap in pixels between the tickers 477 gap: 0, 478 //time in milliseconds before the marquee will start animating 479 delayBeforeStart: 0, 480 //'left' or 'right' 481 //direction: 'left', 482 //true or false - should the marquee be duplicated to show an effect of continues flow 483 duplicated: true, 484 pauseOnHover: true, 485 startVisible: true 486 }); 487 }, 488 489 490 491 n.VideoSlider = function () { 492 493 e( '.video-slider' ).sliderPro({ 494 width: '100%', 495 height: 460, 496 arrows: true,
497 buttons: false, 498 fullScreen: false, 499 thumbnailWidth: 160, 500 thumbnailHeight: 112, 501 thumbnailsPosition: 'right', 502 autoplay: false, 503 fadeArrows: false, 504 loop: true, 505 breakpoints: { 506 1920: { 507 thumbnailWidth: 180, 508 thumbnailHeight: 100, 509 height: 510, 510 width: 906, 511 }, 512 1600: { 513 thumbnailWidth: 140, 514 thumbnailHeight: 80, 515 height: 390, 516 width: 700, 517 }, 518 1366: { 519 thumbnailWidth: 140, 520 thumbnailHeight: 80, 521 height: 442, 522 width: 786, 523 }, 524 1024: { 525 thumbnailWidth: 142, 526 thumbnailHeight: 80, 527 height: 295, 528 width: 523, 529 }, 530 800: { 531 height: 423, 532 thumbnailsPosition: 'bottom', 533 thumbnailWidth: 142, 534 thumbnailHeight: 80 535 }, 536 500: { 537 height: 270, 538 thumbnailsPosition: 'bottom', 539 thumbnailWidth: 142, 540 thumbnailHeight: 80 541 }, 542 425: { 543 height: 230, 544 thumbnailsPosition: 'bottom', 545 thumbnailWidth: 142, 546 thumbnailHeight: 80 547 }, 548 375: { 549 height: 200, 550 thumbnailsPosition: 'bottom', 551 thumbnailWidth: 142, 552 thumbnailHeight: 80 553 } 554 } 555 556 }); 557 jQuery( '.sp-next-arrow' ).addClass( 'fas fa-angle-right' ); 558 jQuery( '.sp-previous-arrow' ).addClass( 'fas fa-angle-left' ); 559 }, 560 561 n.VideoSliderHorizontal = function () { 562 563 e( '.video-slider-horizontal' ).sliderPro({ 564 width: '100%', 565 height: 460, 566 arrows: true,
567 buttons: false, 568 fullScreen: false, 569 thumbnailWidth: 160, 570 thumbnailHeight: 112, 571 thumbnailsPosition: 'bottom', 572 autoplay: false, 573 fadeArrows: false, 574 loop: true, 575 breakpoints: { 576 1920: { 577 thumbnailWidth: 200, 578 thumbnailHeight: 100, 579 height: 624, 580 }, 581 1600: { 582 thumbnailWidth: 142, 583 thumbnailHeight: 80, 584 height: 467, 585 }, 586 1366: { 587 thumbnailWidth: 142, 588 thumbnailHeight: 110, 589 height: 506, 590 }, 591 1024: { 592 thumbnailWidth: 142, 593 thumbnailHeight: 110, 594 height: 376, 595 }, 596 800: { 597 height: 423, 598 thumbnailsPosition: 'bottom', 599 thumbnailWidth: 142, 600 thumbnailHeight: 110 601 }, 602 500: { 603 height: 239, 604 thumbnailsPosition: 'bottom', 605 thumbnailWidth: 142, 606 thumbnailHeight: 110 607 }, 608 375: { 609 height: 199, 610 thumbnailsPosition: 'bottom', 611 thumbnailWidth: 142, 612 thumbnailHeight: 110 613 } 614 } 615 616 }); 617 jQuery( '.sp-next-arrow' ).addClass( 'fas fa-angle-right' ); 618 jQuery( '.sp-previous-arrow' ).addClass( 'fas fa-angle-left' ); 619 }, 620 621 e(function () { 622 n.mobileMenu.init(), n.DataBackground(), n.setInstaHeight(), n.MagnificPopup(), n.jQueryMarquee(),n.jQueryMarqueeRight(),n.VideoSlider(), n.VideoSliderHorizontal(), n.SlickCarousel(), n.Offcanvas(), n.scroll_up(); 623 }), e(window).on('scroll', function () { 624 n.stickyMenu(), n.show_hide_scroll_top(); 625 }), e(window).on('resize', function () { 626 n.mobileMenu.menuMobile(); 627 }), e(window).on('load', function () { 628 e('#loader-wrapper').fadeOut(); 629 e('#af-preloader').delay(500).fadeOut('slow'); 630 631 e(".af-search-click").on('click', function(){ 632 e("#af-search-wrap").toggleClass("af-search-toggle"); 633 }); 634 635 e('.search-icon').on('click', function (event) { 636 event.preventDefault(); 637 e('.search-overlay').toggleClass('reveal-search'); 638 }); 639 640 641 }) 642})(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.