1/* ----------------------------------------------------------------------------- 2 3 4 5File: JS Core 6Version: 1.0 7Last change: 00/00/00 8-------------------------------------------------------------------------------- */ 9(function() { 10 11 "use strict"; 12 13 var aplpg_appilo = { 14 init: function() { 15 this.Basic.init(); 16 }, 17 18 Basic: { 19 init: function() { 20 this.preloader(); 21 this.BackgroundImage(); 22 this.Animation(); 23 this.APLPGScrollTop(); 24 this.APLPGMobileMenu(); 25 this.APLPGSCrollToSection(); 26 this.APLPGStickyHeader(); 27 this.APLPGCarousel(); 28 this.APLPGVideoPopup(); 29 this.APLPGCounterUp(); 30 }, 31 32 preloader: function (){ 33 $(window).on('load', function() { 34 $(".loading-preloader").fadeOut(); 35 }); 36 }, 37 38 BackgroundImage: function (){ 39 $('[data-background]').each(function() { 40 $(this).css('background-image', 'url('+ $(this).attr('data-background') + ')'); 41 }); 42 }, 43 44 Animation: function (){ 45 $(window).on("load", function(){ 46 if($('.wow').length){ 47 new WOW({ 48 offset: 100, 49 mobile: true 50 }).init() 51 } 52 }); 53 54 }, 55 56 57 APLPGScrollTop: function (){ 58 $(window).on("scroll", function(){ 59 var ScrollBarLocation = $(this).scrollTop(); 60 if( ScrollBarLocation > 150 ) { 61 $(".aplpg-scroll-top").fadeIn(); 62 } else { 63 $(".aplpg-scroll-top").fadeOut(); 64 } 65 }); 66 67 $(".aplpg-scroll-top").on("click", function(e){ 68 e.preventDefault(); 69 $("body,html").animate({ 70 scrollTop: 0, 71 }); 72 }); 73 }, 74 75 //MObile Menu 76 APLPGMobileMenu: function (){ 77 //Mobile Menu 78 $(".aplpg-mobile-menu-btn").on("click", function(e){ 79 e.preventDefault(); 80 $(".aplpg-mobile-navigation").addClass("aplpg-mobile-menu-on"); 81 $(".aplpg-body-overlay").addClass("aplpg-body-overlay-on"); 82 }); 83 84 $(".aplpg-mobile-menu-close").on("click", function(e){ 85 e.preventDefault(); 86 $(".aplpg-mobile-navigation").removeClass("aplpg-mobile-menu-on"); 87 $(".aplpg-body-overlay").removeClass("aplpg-body-overlay-on"); 88 }); 89 90 $(".aplpg-body-overlay").on("click", function(){ 91 $(".aplpg-mobile-navigation").removeClass("aplpg-mobile-menu-on"); 92 $(this).removeClass("aplpg-body-overlay-on"); 93 }); 94 95 $(".aplpg-mobile-navigation li.has-submenu a").each(function(){ 96 $(this).on("click", function(){ 97 $(this).siblings('ul').slideToggle(); 98 $(this).parent().toggleClass('aplpg-submenu-icon-rotate'); 99 }); 100 }); 101 }, 102 103 //Sickey Header 104 APLPGStickyHeader: function (){ 105 $(window).on("scroll", function(){ 106 var ScrollBarPosition = $(this).scrollTop(); 107 if( ScrollBarPosition > 150 ) { 108 $(".aplpg-header-section").addClass("aplpg-sticky-on"); 109 } else { 110 $(".aplpg-header-section").removeClass("aplpg-sticky-on"); 111 } 112 }); 113 }, 114 115 APLPGSCrollToSection: function (){ 116 $(".aplpg-nav-menu ul li a").each(function(){ 117 $(this).on("click", function(e){ 118 if(this.hash !=="") { 119 e.preventDefault(); 120 var hashvalue = $(this.hash); 121 var hashoffset = hashvalue.offset().top - 100; 122 var idName = hashvalue.attr("id"); 123 124 $("html,body").animate({ 125 scrollTop: hashoffset, 126 }); 127 } 128 }); 129 }); 130 131 //Menu active Class replace with Scroll 132 $(window).scroll(function(){ 133 $(".aplpg-nav-menu ul li a").each(function(){ 134 if(this.hash !=="") { 135 var menu_offset = $(this.hash).offset().top; 136 var WinHeight = $(window).scrollTop() + 200; 137 if(WinHeight >= menu_offset){ 138 $(".aplpg-nav-menu ul li a.active").removeClass('active'); 139 $(this).addClass("active"); 140 } 141 } 142 }); 143 }); 144 145 $(".aplpg-mobile-menu-wrapper ul li a").each(function(){ 146 $(this).on("click", function(e){ 147 if(this.hash !=="") { 148 e.preventDefault(); 149 var hashvalue = $(this.hash); 150 var hashoffset = hashvalue.offset().top - 100; 151 152 $("html,body").animate({ 153 scrollTop: hashoffset, 154 });
155 } 156 }); 157 }); 158 159 $(".aplpg-scroll-btn a").on("click", function(e){ 160 if(this.hash !=="") { 161 e.preventDefault(); 162 var hashvalue = $(this.hash); 163 var hashoffset = hashvalue.offset().top - 100; 164 $("html,body").animate({ 165 scrollTop: hashoffset, 166 }); 167 } 168 }); 169 170 171 172 }, 173 174 APLPGCarousel: function (){ 175 //Hero Slider 176 $(".aplpg-hero-slider-area").slick({ 177 slidesToShow: 1, 178 autoplay: false, 179 dots: true, 180 fade: true, 181 draggable: false, 182 }); 183 184 //Blog Slider 185 $(".aplpg-blog-slider").slick({ 186 slidesToShow: 3, 187 autoplay: true, 188 dots: true, 189 arrows: false, 190 responsive: [ 191 { 192 breakpoint: 992, 193 settings: { 194 slidesToShow: 2, 195 } 196 }, 197 { 198 breakpoint: 768, 199 settings: { 200 slidesToShow: 1, 201 } 202 } 203 ] 204 }); 205 206 //Testimonial Slider 207 $(".aplpg-testimonial-slider").slick({ 208 slidesToShow: 3, 209 autoplay: true, 210 dots: false, 211 arrows: true, 212 prevArrow: '<button type="button" class="prev-btn"><i class="fas fa-long-arrow-alt-right"></i></button>', 213 nextArrow: '<button type="button" class="next-btn"><i class="fas fa-long-arrow-alt-left"></i></button>', 214 responsive: [ 215 { 216 breakpoint: 992, 217 settings: { 218 slidesToShow: 2, 219 } 220 }, 221 { 222 breakpoint: 768, 223 settings: { 224 slidesToShow: 1, 225 } 226 } 227 ] 228 }); 229 230 var swiper = new Swiper(".aplpg-screen-slider", { 231 effect: "coverflow", 232 grabCursor: true, 233 centeredSlides: true, 234 slidesPerView: "auto", 235 loop: true, 236 loopFillGroupWithBlank: true, 237 coverflow: { 238 rotate: 0, 239 stretch: 0, 240 depth: 100, 241 modifier: 2, 242 slideShadows: true, 243 }, 244 autoplay: 3000, 245 pagination: { 246 el: ".swiper-pagination", 247 dynamicBullets: true, 248 }, 249 }); 250 251 }, 252 253 //Video Poupup 254 APLPGVideoPopup: function (){ 255 $(".aplpg-video-btn a").magnificPopup({ 256 type: 'iframe', 257 iframe: { 258 patterns: { 259 youtube: { 260 index: 'youtube.com/', 261 id: 'v=', 262 src: 'https://www.youtube.com/embed/%id%?autoplay=1' 263 } 264 } 265 } 266 }); 267 }, 268 269 APLPGCounterUp: function (){ 270 $(".aplpg-counter").counterUp({ 271 time: 2000, 272 }); 273 } 274 275 } 276 } 277 jQuery(document).ready(function (){ 278 aplpg_appilo.init(); 279 }); 280 281})();
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.