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