1(function ($) { 2 "use strict"; 3 4 if (!$.apusThemeExtensions) 5 $.apusThemeExtensions = {}; 6 7 function ApusThemeCore() { 8 var self = this; 9 // self.init(); 10 }; 11 12 ApusThemeCore.prototype = { 13 /** 14 * Initialize 15 */ 16 init: function() { 17 var self = this; 18 if ( self.target_html == null ) { 19 self.target_html = $('#apus_login_register_form_wrapper').html(); 20 $('#apus_login_register_form_wrapper').html(''); 21 } 22 // slick init 23 self.initSlick($("[data-carousel=slick]")); 24 25 // Unveil init 26 setTimeout(function(){ 27 self.layzyLoadImage(); 28 }, 500); 29 30 // isoto 31 self.initIsotope(); 32 self.initCounterUp(); 33 34 setTimeout(function(){ 35 self.changeHeaderMarginTop(); 36 }, 50); 37 $(window).resize(function(){ 38 setTimeout(function(){ 39 self.changeHeaderMarginTop(); 40 }, 50); 41 }); 42 // Sticky Header 43 self.initHeaderSticky('main-sticky-header'); 44 45 // back to top 46 self.backToTop(); 47 48 // popup image 49 self.popupImage(); 50 51 self.SharePopup(); 52 53 self.preloadSite(); 54 55 self.timerCountdown(); 56 57 $('[data-toggle="tooltip"]').tooltip(); 58 59 self.initMobileMenu(); 60 61 self.userLoginRegister(); 62 63 self.loadExtension(); 64 65 $(document.body).on('click', '.nav [data-toggle="dropdown"]', function(e){ 66 e.preventDefault(); 67 if ( this.href && this.href != '#' ){ 68 if ( this.target && this.target == '_blank' ) { 69 window.open(this.href, '_blank'); 70 } else { 71 window.location.href = this.href; 72 } 73 } 74 }); 75 76 setTimeout(function(){ 77 self.changePaddingTopMobileContent(); 78 }, 50); 79 $(window).resize(function(){ 80 self.changePaddingTopMobileContent(); 81 }); 82 83 $(window).load(function(){ 84 self.recaptchaCallback(); 85 }); 86 }, 87 init_elementor: function() { 88 var self = this; 89 self.initSlick($("[data-carousel=slick]")); 90 91 // Unveil init 92 setTimeout(function(){ 93 self.layzyLoadImage(); 94 }, 500); 95 }, 96 target_html: null, 97 98 changePaddingTopMobileContent: function() { 99 if ($(window).width() < 1200) { 100 var header_h = $('#apus-header-mobile').outerHeight(); 101 $('#apus-main-content').css({ 'padding-top': header_h }); 102 $('.listings-filter-wrapper').css({ 'top': header_h }); 103 $('.listings-filter-wrapper').css({ 'height': 'calc(100% - ' + header_h+ 'px)' }); 104 } else { 105 if ( ! $('#apus-listing-map').is('.fix-map') ) { 106 $('#apus-main-content').css({ 'padding-top': 0 }); 107 } 108 } 109 }, 110 /** 111 * Extensions: Load scripts 112 */ 113 loadExtension: function() { 114 var self = this; 115 116 if ($.apusThemeExtensions.shop) { 117 $.apusThemeExtensions.shop.call(self); 118 } 119 120 if ($.apusThemeExtensions.listing) { 121 $.apusThemeExtensions.listing.call(self); 122 } 123 }, 124 initSlick: function(element) { 125 var self = this; 126 element.each( function(){ 127 if ( $(this).hasClass('slick-initialized') ) { 128 $(this).slick( 'refresh' ); 129 } else { 130 var config = { 131 arrows: $(this).data( 'nav' ), 132 dots: $(this).data( 'pagination' ), 133 centerPadding: '0px', 134 slidesToShow: 4, 135 slidesToScroll: 4, 136 prevArrow:"<button type='button' class='slick-arrow slick-prev pull-left'><i class='flaticon-left' aria-hidden='true'></i></span><span class='textnav'>"+listdo_opts.previous+"</span></button>", 137 nextArrow:"<button type='button' class='slick-arrow slick-next pull-right'><span class='textnav'>"+listdo_opts.next+"</span><i class='flaticon-right' aria-hidden='true'></i></button>", 138 }; 139 140 var slick = $(this); 141 if( $(this).data('items') ){ 142 config.slidesToShow = $(this).data( 'items' ); 143 config.slidesToScroll = $(this).data( 'items' ); 144 } 145 if( $(this).data('infinite') ){ 146 config.infinite = $(this).data( 'infinite' ); 147 } 148 if( $(this).data('autoplay') ){
149 config.autoplay = true; 150 config.autoplaySpeed = 2500; 151 } 152 if( $(this).data('vertical') ){ 153 config.vertical = true; 154 } 155 if( $(this).data('rows') ){ 156 config.rows = $(this).data( 'rows' ); 157 } 158 if( $(this).data('asnavfor') ){ 159 config.asNavFor = $(this).data( 'asnavfor' ); 160 } 161 if( $(this).data('slidestoscroll') ){ 162 config.slidesToScroll = $(this).data( 'slidestoscroll' ); 163 } 164 if( $(this).data('focusonselect') ){ 165 config.focusOnSelect = $(this).data( 'focusonselect' ); 166 } 167 168 if( $(this).data('centermode') ){ 169 config.centerMode = $(this).data('centermode'); 170 } 171 172 if ($(this).data('desktop')) { 173 var desktop = $(this).data('desktop'); 174 } else { 175 var desktop = config.items; 176 } 177 178 if ($(this).data('smalldesktop')) { 179 var smalldesktop = $(this).data('smalldesktop'); 180 } else { 181 if ($(this).data('desktop')) { 182 var smalldesktop = $(this).data('desktop'); 183 } else{ 184 var smalldesktop = config.items; 185 } 186 } 187 188 if ($(this).data('medium')) { 189 var medium = $(this).data('medium'); 190 } else { 191 var medium = config.items; 192 } 193 if ($(this).data('smallmedium')) { 194 var smallmedium = $(this).data('smallmedium'); 195 } else { 196 var smallmedium = 2; 197 } 198 if ($(this).data('extrasmall')) { 199 var extrasmall = $(this).data('extrasmall'); 200 } else { 201 var extrasmall = 1; 202 } 203 if ($(this).data('smallest')) { 204 var smallest = $(this).data('smallest'); 205 } else { 206 var smallest = 1; 207 } 208 config.responsive = [ 209 { 210 breakpoint: 414, 211 settings: { 212 slidesToShow: smallest, 213 slidesToScroll: smallest, 214 } 215 }, 216 { 217 breakpoint: 480, 218 settings: { 219 slidesToShow: extrasmall, 220 slidesToScroll: extrasmall, 221 } 222 }, 223 { 224 breakpoint: 768, 225 settings: { 226 slidesToShow: smallmedium, 227 slidesToScroll: smallmedium 228 } 229 }, 230 { 231 breakpoint: 992, 232 settings: { 233 slidesToShow: medium, 234 slidesToScroll: medium 235 } 236 }, 237 { 238 breakpoint: 1281, 239 settings: { 240 slidesToShow: smalldesktop, 241 slidesToScroll: smalldesktop 242 } 243 }, 244 { 245 breakpoint: 1700, 246 settings: { 247 slidesToShow: desktop, 248 slidesToScroll: desktop 249 } 250 } 251 ]; 252 if ( $('html').attr('dir') == 'rtl' ) { 253 config.rtl = true; 254 } 255 256 $(this).slick( config ); 257 } 258 } ); 259 260 // Fix slick in bootstrap tabs 261 $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { 262 var target = $(e.target).attr("href"); 263 var $slick = $("[data-carousel=slick]", target); 264 265 if ($slick.length > 0 && $slick.hasClass('slick-initialized')) { 266 $slick.slick('refresh'); 267 } 268 self.layzyLoadImage(); 269 }); 270 }, 271 layzyLoadImage: function() { 272 $(window).off('scroll.unveil resize.unveil lookup.unveil'); 273 var $images = $('.image-wrapper:not(.image-loaded) .unveil-image'); // Get un-loaded images only 274 if ($images.length) { 275 $images.unveil(1, function() { 276 $(this).load(function() { 277 $(this).parents('.image-wrapper').first().addClass('image-loaded'); 278 $(this).removeAttr('data-src'); 279 $(this).removeAttr('data-srcset'); 280 $(this).removeAttr('data-sizes'); 281 }); 282 }); 283 } 284 285 var $images = $('.product-image:not(.image-loaded) .unveil-image'); // Get un-loaded images only 286 if ($images.length) { 287 $images.unveil(1, function() { 288 $(this).load(function() { 289 $(this).parents('.product-image').first().addClass('image-loaded'); 290 }); 291 }); 292 } 293 }, 294 initCounterUp: function() { 295 if($('.counterUp').length > 0){ 296 $('.counterUp').counterUp({ 297 delay: 10, 298 time: 800 299 }); 300 } 301 }, 302 initIsotope: function() { 303 $('.isotope-items').each(function(){ 304 var $container = $(this); 305 306 $container.imagesLoaded( function(){ 307 $container.isotope({ 308 itemSelector : '.isotope-item', 309 transformsEnabled: true, // Important for videos 310 masonry: { 311 columnWidth: $container.data('columnwidth') 312 } 313 }); 314 }); 315 }); 316 317 /*---------------------------------------------- 318 * Apply Filter 319 *----------------------------------------------*/ 320 $('.isotope-filter li a').on('click', function(){ 321 322 var parentul = $(this).parents('ul.isotope-filter').data('related-grid'); 323 $(this).parents('ul.isotope-filter').find('li a').removeClass('active'); 324 $(this).addClass('active'); 325 var selector = $(this).attr('data-filter'); 326 $('#'+parentul).isotope({ filter: selector }, function(){ }); 327 328 return(false); 329 }); 330 }, 331 changeHeaderMarginTop: function() { 332 if ($(window).width() > 1199) { 333 if ( $('#apus-header').length > 0 ) { 334 var header_height_dk = $('#apus-header').outerHeight(); 335 $('.header_transparent .apus-breadscrumb').css({'padding-top': header_height_dk}); 336 $('.header-v1 + #apus-main-content .apus-breadscrumb').css({'padding-top': header_height_dk}); 337 $('.header_transparent .detail-top').css({'padding-top': header_height_dk}); 338 } 339 } 340 }, 341 initHeaderSticky: function(main_sticky_class) { 342 if ( typeof Waypoint !== 'undefined' ) { 343 if ( $('.' + main_sticky_class) && typeof Waypoint.Sticky !== 'undefined' ) { 344 var opts = { 345 element: $('.' + main_sticky_class)[0], 346 wrapper: '<div class="main-sticky-header-wrapper">', 347 offset: '-10px', 348 stuckClass: 'sticky-header' 349 }; 350 var sticky = new Waypoint.Sticky(opts); 351 } 352 } 353 }, 354 headerSticky: function(main_sticky, _menu_action) { 355 if( $(document).scrollTop() > _menu_action ){ 356 main_sticky.addClass('sticky-header'); 357 }else{ 358 main_sticky.removeClass('sticky-header'); 359 } 360 }, 361 backToTop: function () { 362 $(window).scroll(function () { 363 if ($(this).scrollTop() > 400) { 364 $('#back-to-top').addClass('active'); 365 } else { 366 $('#back-to-top').removeClass('active'); 367 } 368 }); 369 $('#back-to-top').on('click', function () { 370 $('html, body').animate({scrollTop: '0px'}, 800); 371 return false;
372 }); 373 }, 374 popupImage: function() { 375 // popup 376 $(".popup-image").magnificPopup({type:'image'}); 377 $('.popup-video').magnificPopup({ 378 disableOn: 700, 379 type: 'iframe', 380 mainClass: 'mfp-fade', 381 removalDelay: 160, 382 preloader: false, 383 fixedContentPos: false 384 }); 385 386 $('.widget-gallery').each(function(){ 387 var tagID = $(this).attr('id'); 388 $('#' + tagID).magnificPopup({ 389 delegate: '.popup-image-gallery', 390 type: 'image', 391 tLoading: 'Loading image #%curr%...', 392 mainClass: 'mfp-img-mobile', 393 gallery: { 394 enabled: true, 395 navigateByImgClick: true, 396 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 397 } 398 }); 399 }); 400 }, 401 402 SharePopup: function() { 403 var self = this; 404 $(document).on('click', '.show-social, .share-popup', function(){ 405 $.magnificPopup.open({ 406 mainClass: 'popup-wrapper-normal', 407 closeBtnInside:true, 408 closeMarkup:'<button type="button" class="mfp-close"><i class="ti-close"></i></button>', 409 items : { 410 src : $('.content-share-social').html(), 411 type: 'inline' 412 }, 413 }); 414 }); 415 }, 416 417 preloadSite: function() { 418 // preload page 419 if ( $('body').hasClass('apus-body-loading') ) { 420 setTimeout(function(){ 421 $('body').removeClass('apus-body-loading'); 422 $('.apus-page-loading').fadeOut(100); 423 }, 200); 424 } 425 }, 426 initMobileMenu: function() { 427 428 // stick mobile 429 var self = this; 430 var main_sticky = $('.header-mobile'); 431 setTimeout(function(){ 432 if ( main_sticky.length > 0 ){ 433 if ($(window).width() < 992) { 434 var _menu_action = 0; 435 $(window).scroll(function(event) {
436 self.headerSticky(main_sticky, _menu_action); 437 }); 438 self.headerSticky(main_sticky, _menu_action); 439 } 440 } 441 }, 50); 442 443 $(window).resize(function(){ 444 setTimeout(function(){ 445 if ( main_sticky.length > 0 ){ 446 if ($(window).width() < 992) { 447 var _menu_action = 0; 448 $(window).scroll(function(event) { 449 self.headerSticky(main_sticky, _menu_action); 450 }); 451 self.headerSticky(main_sticky, _menu_action); 452 } 453 } 454 }, 50); 455 }); 456 457 // mobile menu 458 $('.btn-offcanvas, .btn-toggle-canvas').on('click', function (e) { 459 e.stopPropagation(); 460 $('.apus-offcanvas').toggleClass('active'); 461 $('.over-dark').toggleClass('active'); 462 }); 463 $('body').on('click', function() { 464 if ($('.apus-offcanvas').hasClass('active')) { 465 $('.apus-offcanvas').toggleClass('active'); 466 $('.over-dark').toggleClass('active'); 467 } 468 }); 469 $('.apus-offcanvas').on('click', function(e) { 470 e.stopPropagation(); 471 }); 472 473 $("#main-mobile-menu .icon-toggle").on('click', function(){ 474 $(this).parent().find('> .sub-menu').slideToggle(); 475 if ( $(this).find('i').hasClass('ti-angle-down') ) { 476 $(this).find('i').removeClass('ti-angle-down').addClass('ti-angle-up'); 477 } else { 478 $(this).find('i').removeClass('ti-angle-up').addClass('ti-angle-down'); 479 } 480 return false; 481 } ); 482 $('.apus-offcanvas-body').perfectScrollbar(); 483 484 // show mini cart 485 $('.apus-top-cart .mini-cart').on('click', function (e) { 486 e.stopPropagation(); 487 $('.apus-top-cart > .dropdown-menu').toggleClass('active'); 488 }); 489 490 // sidebar mobile 491 if ($(window).width() < 992) { 492 $('.sidebar-right, .sidebar-left').perfectScrollbar(); 493 } 494 $(window).resize(function(){ 495 if ($(window).width() < 992) { 496 $('.sidebar-right, .sidebar-left').perfectScrollbar(); 497 } 498 }); 499 500 $('body').on('click', '.mobile-sidebar-btn', function(){ 501 if ( $('.sidebar-left').length > 0 ) { 502 $('.sidebar-left').toggleClass('active'); 503 } else if ( $('.sidebar-right').length > 0 ) { 504 $('.sidebar-right').toggleClass('active'); 505 } 506 $('.mobile-sidebar-panel-overlay').toggleClass('active'); 507 }); 508 $('body').on('click', '.mobile-sidebar-panel-overlay, .close-sidebar-btn', function(){ 509 if ( $('.sidebar-left').length > 0 ) { 510 $('.sidebar-left').removeClass('active'); 511 } else if ( $('.sidebar-right').length > 0 ) { 512 $('.sidebar-right').removeClass('active'); 513 } 514 $('.mobile-sidebar-panel-overlay').removeClass('active'); 515 }); 516 }, 517 setCookie: function(cname, cvalue, exdays) { 518 var d = new Date(); 519 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 520 var expires = "expires="+d.toUTCString(); 521 document.cookie = cname + "=" + cvalue + "; " + expires+";path=/"; 522 }, 523 getCookie: function(cname) { 524 var name = cname + "="; 525 var ca = document.cookie.split(';'); 526 for(var i=0; i<ca.length; i++) { 527 var c = ca[i]; 528 while (c.charAt(0)==' ') c = c.substring(1); 529 if (c.indexOf(name) == 0) return c.substring(name.length,c.length); 530 } 531 return ""; 532 }, 533 recaptchaCallback: function() { 534 var recaptchas = document.getElementsByClassName("ga-recaptcha"); 535 for(var i=0; i<recaptchas.length; i++) { 536 var recaptcha = recaptchas[i]; 537 var sitekey = recaptcha.dataset.sitekey; 538 539 grecaptcha.render(recaptcha, { 540 'sitekey' : sitekey 541 }); 542 } 543 }, 544 loginRegisterPopup: function(target) { 545 var self = this; 546 $.magnificPopup.open({ 547 mainClass: 'apus-mfp-zoom-in', 548 items : { 549 src : self.target_html, 550 type: 'inline' 551 }, 552 callbacks: { 553 open: function() { 554 $(target).trigger('click'); 555 $('.apus_login_register_form .nav-tabs li').removeClass('active'); 556 $(target).parent().addClass('active'); 557 var id = $(target).attr('href'); 558 $('.apus_login_register_form .tab-pane').removeClass('active'); 559 $(id).addClass('active').addClass('in'); 560 561 $('#apus_forgot_password_form').hide(); 562 $('#apus_login_form').show(); 563 564 $('.apus_login_register_form').addClass('animated fadeInDown'); 565 566 self.recaptchaCallback(); 567 } 568 } 569 570 }); 571 572 }, 573 userLoginRegister: function() { 574 var self = this; 575 // login/register 576 577 $('.apus-user-login').on('click', function(){ 578 var target = $(this).attr('href'); 579 580 self.loginRegisterPopup(target); 581 return false;
582 }); 583 584 $('.apus-user-register').on('click', function(){ 585 var target = $(this).attr('href'); 586 587 self.loginRegisterPopup(target); 588 return false; 589 }); 590 591 $('.account-sign-in a:not(.logout-link), .must-log-in a').on('click', function(e){ 592 e.preventDefault(); 593 var target = $('.apus-user-login').attr('href'); 594 self.loginRegisterPopup(target); 595 return false; 596 }); 597 $('body').on('click', '.apus_login_register_form .mfp-close', function(){ 598 $.magnificPopup.close(); 599 }); 600 601 // sign in proccess 602 $('body').on('submit', 'form.apus-login-form', function(){ 603 var $this = $(this); 604 $('.alert', this).remove(); 605 $this.addClass('loading'); 606 $.ajax({ 607 url: listdo_opts.ajaxurl, 608 type:'POST', 609 dataType: 'json', 610 data: $(this).serialize()+"&action=apus_ajax_login" 611 }).done(function(data) { 612 $this.removeClass('loading'); 613 if ( data.loggedin ) { 614 $this.prepend( '<div class="alert alert-info">' + data.msg + '</div>' ); 615 location.reload(); 616 } else { 617 $this.prepend( '<div class="alert alert-warning">' + data.msg + '</div>' ); 618 } 619 }); 620 return false; 621 } ); 622 $('body').on('click', '.back-link', function(e){ 623 e.preventDefault(); 624 $('.form-container').hide(); 625 $($(this).attr('href')).show(); 626 return false; 627 } ); 628 629 // lost password in proccess 630 $('body').on('submit', 'form.forgotpassword-form', function(){ 631 var $this= $(this); 632 $('.alert', this).remove(); 633 $this.addClass('loading'); 634 $.ajax({ 635 url: listdo_opts.ajaxurl, 636 type:'POST', 637 dataType: 'json', 638 data: $(this).serialize()+"&action=apus_ajax_forgotpass" 639 }).done(function(data) { 640 $this.removeClass('loading'); 641 if ( data.loggedin ) { 642 $this.prepend( '<div class="alert alert-info">'+data.msg+'</div>' ); 643 location.reload(); 644 } else { 645 $this.prepend( '<div class="alert alert-warning">'+data.msg+'</div>' ); 646 } 647 }); 648 return false; 649 } ); 650 $('body').on('click', '#apus_forgot_password_form form .btn-cancel', function(e){ 651 e.preventDefault(); 652 $('#apus_forgot_password_form').hide(); 653 $('#apus_login_form').show(); 654 } ); 655 656 // register 657 $('body').on('submit', 'form.apus-register-form', function(){ 658 var $this= $(this); 659 $('.alert', this).remove(); 660 $this.addClass('loading'); 661 $.ajax({ 662 url: listdo_opts.ajaxurl, 663 type:'POST', 664 dataType: 'json', 665 data: $(this).serialize()+"&action=apus_ajax_register" 666 }).done(function(data) { 667 $this.removeClass('loading'); 668 if ( data.loggedin ) { 669 $this.prepend( '<div class="alert alert-info">'+data.msg+'</div>' ); 670 location.reload(); 671 } else { 672 $this.prepend( '<div class="alert alert-warning">'+data.msg+'</div>' ); 673 grecaptcha.reset(); 674 } 675 }); 676 return false; 677 } ); 678 679 $(document).on('click', '.listdo-resend-approve-account-btn', function(e) { 680 e.preventDefault(); 681 var $this = $(this), 682 $container = $(this).parent(); 683 $this.addClass('loading'); 684 $.ajax({ 685 url: listdo_opts.ajaxurl, 686 type:'POST', 687 dataType: 'json', 688 data: { 689 action: 'listdo_ajax_resend_approve_account', 690 login: $this.data('login'), 691 } 692 }).done(function(data) { 693 $this.removeClass('loading'); 694 if ( data.status ) { 695 $container.html( data.msg ); 696 } else { 697 $container.html( data.msg ); 698 } 699 }); 700 }); 701 }, 702 timerCountdown: function(){ 703 $('[data-time="timmer"]').each(function(index, el) { 704 var $this = $(this); 705 var $date = $this.data('date').split("-"); 706 $this.apusCountDown({ 707 TargetDate:$date[0]+"/"+$date[1]+"/"+$date[2]+" "+$date[3]+":"+$date[4]+":"+$date[5], 708 DisplayFormat:"<div class=\"times\"><div class=\"day\">%%D%% "+ listdo_opts.days +"</div><div class=\"hours\">%%H%% "+ listdo_opts.hours +"</div><div class=\"minutes\">
708%%M%% "+ listdo_opts.mins +"</div><div class=\"seconds\">%%S%% "+ listdo_opts.secs +"</div></div>", 709 FinishMessage: "", 710 }); 711 }); 712 } 713 } 714 715 $.apusThemeCore = ApusThemeCore.prototype; 716 717 718 $.fn.wrapStart = function(numWords){ 719 return this.each(function(){ 720 var $this = $(this); 721 var node = $this.contents().filter(function(){ 722 return this.nodeType == 3; 723 }).first(), 724 text = node.text().trim(), 725 first = text.split(' ', 1).join(" "); 726 if (!node.length) return; 727 node[0].nodeValue = text.slice(first.length); 728 node.before('<b>' + first + '</b>'); 729 }); 730 }; 731 732 $(document).ready(function() { 733 // Initialize script 734 var apusthemecore_init = new ApusThemeCore(); 735 apusthemecore_init.init(); 736 737 }); 738 739 jQuery(window).on("elementor/frontend/init", function() { 740 741 var apusthemecore_init = new ApusThemeCore(); 742 743 // General element 744 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_brands.default", 745 function($scope) { 746 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 747 } 748 ); 749 750 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_features_box.default", 751 function($scope) { 752 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 753 } 754 ); 755 756 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_posts.default", 757 function($scope) { 758 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 759 } 760 ); 761 762 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_testimonials.default", 763 function($scope) { 764 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 765 } 766 ); 767 768 // woo elements 769 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_listings_category_list_banner.default", 770 function($scope) { 771 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 772 } 773 ); 774 775 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_listings.default", 776 function($scope) { 777 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 778 } 779 ); 780 781 elementorFrontend.hooks.addAction( "frontend/element_ready/apus_listings_packages.default", 782 function($scope) { 783 apusthemecore_init.initSlick($scope.find('.slick-carousel')); 784 } 785 ); 786 787 }); 788 789})(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.