1/* ----------------------------------------------------------------------------- 2 3File: JS Core 4Version: 1.0 5Author: 6 7-------------------------------------------------------------------------------- */ 8(function() { 9 10 "use strict"; 11 12 //Submenu Dropdown Toggle 13 if($('.apl3-main-header li.dropdown ul').length){ 14 $('.apl3-main-header li.dropdown').append('<div class="dropdown-btn"><span class="fa fa-angle-down"></span></div>'); 15 16 //Dropdown Button 17 $('.apl3-main-header li.dropdown .dropdown-btn').on('click', function() { 18 $(this).prev('ul').slideToggle(500); 19 }); 20 21 //Disable dropdown parent link 22 $('.navigation li.dropdown > a').on('click', function(e) { 23 e.preventDefault(); 24 }); 25 26 //Disable dropdown parent link 27 $('.apl3-main-header .navigation li.dropdown > a,.hidden-bar .side-menu li.dropdown > a').on('click', function(e) { 28 e.preventDefault(); 29 }); 30 31 } 32 function headerStyle() { 33 if($('.apl3-main-header').length){ 34 var windowpos = $(window).scrollTop(); 35 var siteHeader = $('.apl3-main-header'); 36 var scrollLink = $('.scroll-to-top'); 37 38 var HeaderHight = $('.apl3-main-header').height(); 39 if (windowpos >= HeaderHight) { 40 siteHeader.addClass('fixed-header'); 41 scrollLink.fadeIn(300); 42 } else { 43 siteHeader.removeClass('fixed-header'); 44 scrollLink.fadeOut(300); 45 } 46 47 } 48} 49 50headerStyle(); 51$(window).on('scroll', function() { 52 headerStyle(); 53}); 54 55 //Mobile Nav Hide Show 56 if($('.apl3-mobile-menu').length){ 57 58 $('.apl3-mobile-menu .menu-box').mCustomScrollbar(); 59 60 var mobileMenuContent = $('.apl3-main-header .nav-outer .apl3-main-menu').html(); 61 $('.apl3-mobile-menu .navigation').append(mobileMenuContent); 62 $('.sticky-header .apl3-main-menu').append(mobileMenuContent); 63 64 //Dropdown Button 65 $('.apl3-mobile-menu li.dropdown .dropdown-btn').on('click', function() { 66 $(this).toggleClass('open'); 67 $(this).prev('ul').slideToggle(500); 68 }); 69 //Menu Toggle Btn 70 $('.mobile-nav-toggler').on('click', function() { 71 $('body').addClass('apl3-mobile-menu-visible'); 72 }); 73 74 //Menu Toggle Btn 75 $('.apl3-mobile-menu .menu-backdrop,.apl3-mobile-menu .close-btn').on('click', function() { 76 $('body').removeClass('apl3-mobile-menu-visible'); 77 }); 78 79 } 80 81 //Typeit Text On Main Page 82 function typyScriptRun($scope, $) { 83 if ($('.variable-text').length) { 84 85 $('.variable-text').typeIt({ 86 strings: ["Make Your life easy <br> by Our app."], 87 speed: 200, 88 breakLines: true, 89 loop:false, 90 autoStart: true 91 }); 92 } 93 } 94 95 function appScreenSlider($scope, $) { 96 // App Carousel 97 if ($('.apl3-app-carousel').length) { 98 $('.apl3-app-carousel').owlCarousel({ 99 //animateOut: 'fadeOut', 100 //animateIn: 'fadeIn', 101 loop:true, 102 margin:80, 103 nav:true, 104 center:true, 105 //autoHeight: true, 106 smartSpeed: 500, 107 autoplay: 6000, 108 navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], 109 responsive:{ 110 0:{ 111 items:1 112 }, 113 600:{ 114 items:2, 115 margin:20 116 }, 117 800:{ 118 items:2 119 }, 120 1024:{ 121 items:3, 122 margin:40 123 }, 124 1200:{ 125 items:3 126 }, 127 1400:{ 128 items:3 129 } 130 } 131 }); 132 } 133 } 134 function appScreenshotSlider($scope, $) { 135 if ($('.appScreenshotCarousel-container').length) { 136 137 var swiper = new Swiper('.appScreenshotCarousel-container', { 138 effect: 'coverflow', 139 loop: true, 140 auto: true, 141 centeredSlides: true, 142 slidesPerView: 3, 143 initialSlide: 3, 144 keyboardControl: true, 145 mousewheelControl: false, 146 grabCursor: true, 147 lazyLoading: true, 148 autoplay: 5000, 149 speed: 600, 150 paginationClickable: true, 151 coverflowEffect: { 152 rotate: 50, 153 stretch: 0, 154 depth: 100, 155 modifier: 1, 156 slideShadows : true, 157 }, 158 //preventClicks: false, 159 //preventClicksPropagation: false, 160 //lazyLoadingInPrevNext: true, 161 nextButton: '.swiper-button-next', 162 prevButton: '.swiper-button-prev', 163 coverflow: { 164 rotate: 0, 165 stretch: -15, 166 depth: 30, 167 modifier: 5, 168 slideShadows: false, 169 }, 170 breakpoints: { 171 1699: { 172 slidesPerView: 3, 173 spaceBetween: 0, 174 }, 175 1100: { 176 slidesPerView: 3, 177 spaceBetween: 0, 178 }, 179 991: { 180 slidesPerView: 2, 181 spaceBetween: 0, 182 }, 183 767: { 184 slidesPerView: 2, 185 spaceBetween: 10, 186 }, 187 575: { 188 slidesPerView: 2, 189 spaceBetween: 5, 190 }, 191 330: { 192 slidesPerView: 1, 193 spaceBetween: 10, 194 } 195 }, 196 }); 197 198 } 199 } 200 function apl3TestimonialActive($scope, $) { 201 // Single Item Carousel 202 if ($('.single-item-carousel').length) { 203 $('.single-item-carousel').owlCarousel({ 204 //animateOut: 'fadeOut', 205 //animateIn: 'fadeIn', 206 loop:true, 207 margin:0, 208 nav:true, 209 center:true, 210 //autoHeight: true, 211 smartSpeed: 500, 212 autoplay: 6000, 213 navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], 214 responsive:{ 215 0:{ 216 items:1 217 }, 218 600:{ 219 items:1 220 }, 221 800:{ 222 items:1 223 }, 224 1024:{ 225 items:1 226 }, 227 1200:{ 228 items:1 229 }, 230 1400:{
231 items:1 232 } 233 } 234 }); 235 } 236 } 237 238 $(window).on('elementor/frontend/init', function () { 239 elementorFrontend.hooks.addAction('frontend/element_ready/landing3_appscreen.default', appScreenSlider); 240 elementorFrontend.hooks.addAction('frontend/element_ready/landing3_banner.default', typyScriptRun); 241 elementorFrontend.hooks.addAction('frontend/element_ready/landing3_appscreenshot.default', appScreenshotSlider); 242 elementorFrontend.hooks.addAction('frontend/element_ready/landing3_testimonial.default', apl3TestimonialActive); 243 }); 244 245})();
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.