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 aplpg2_appilo = { 14 init: function() { 15 this.Basic.init(); 16 }, 17 18 Basic: { 19 init: function() { 20 this.APLDG2ScrollTop(); 21 this.APLDG2HeaderFunction(); 22 this.APLDG2MobileMenu(); 23 this.APLDG2ProgressBar(); 24 this.APLDG2Carousel(); 25 this.APLDG2VideoPopup(); 26 this.APLDGCounterUp(); 27 }, 28 29 30 APLDG2ScrollTop: function (){ 31 $(window).on("scroll", function(){ 32 var ScrollBarLocation = $(this).scrollTop(); 33 if( ScrollBarLocation > 150 ) { 34 $(".apldg2-scroll-top").fadeIn(); 35 } else { 36 $(".apldg2-scroll-top").fadeOut(); 37 } 38 }); 39 40 $(".apldg2-scroll-top").on("click", function(e){ 41 e.preventDefault(); 42 $("body,html").animate({ 43 scrollTop: 0, 44 }); 45 }); 46 }, 47 48 APLDG2HeaderFunction: function (){ 49 50 //Header Sidebar 51 $(".apldg2-sidebar-hamburger a").on("click", function(){ 52 $(".apldg2_sidebar_info_content").addClass("apldg2-sidebar-on"); 53 $(".apldg2-body-overlay").addClass("apldg2-body-overlay-on"); 54 return false; 55 }); 56 57 58 $(".apldg2_sidebar_info_content .close-menu").on("click", function(){ 59 $(".apldg2_sidebar_info_content").removeClass("apldg2-sidebar-on"); 60 $(".apldg2-body-overlay").removeClass("apldg2-body-overlay-on"); 61 }); 62 63 $(".apldg2-body-overlay").on("click", function(){ 64 $(".apldg2_sidebar_info_content").removeClass("apldg2-sidebar-on"); 65 $(this).removeClass("apldg2-body-overlay-on"); 66 }); 67 68 //Sticky Header 69 $(window).on("scroll", function(){ 70 var ScrollBarPostion = $(window).scrollTop(); 71 if (ScrollBarPostion > 150 ) { 72 $(".apldg2-header-area").addClass("apldg2-header-sticky"); 73 } else { 74 $(".apldg2-header-area").removeClass("apldg2-header-sticky"); 75 } 76 }); 77 78 $(".apldg2-scroll-next a").on("click", function(e){ 79 if(this.hash !== "") { 80 e.preventDefault(); 81 var hashValue = $(this.hash).offset().top - 100; 82 $("body,html").animate({ 83 scrollTop: hashValue, 84 }); 85 } 86 }) 87 88 }, 89 90 APLDG2MobileMenu: function (){ 91 $(".apldg2-mobile-menu-hamburger").on("click", function(e){ 92 e.preventDefault(); 93 $(".apldg2-mobile-menu").toggleClass("apldg2-mobile-menu-on"); 94 $(".apldg2-body-overlay").toggleClass("apldg2-body-overlay-on"); 95 }); 96 97 $(".apldg2-body-overlay").on("click", function(){ 98 $(".apldg2-mobile-menu").removeClass("apldg2-mobile-menu-on"); 99 $(".apldg2-mobile-menu-open").removeClass("open"); 100 }); 101 102 $(".apldg2-menu-close").on("click", function(){ 103 $(".apldg2-mobile-menu").removeClass("apldg2-mobile-menu-on"); 104 $(".apldg2-body-overlay").removeClass("apldg2-body-overlay-on"); 105 $(".apldg2-mobile-menu-open").removeClass("open"); 106 }); 107 108 $(".apldg2-mobile-menu li.has-submenu a").each(function(){ 109 $(this).on("click", function(){ 110 $(this).siblings('ul').slideToggle(); 111 $(this).parent().toggleClass('apldg2-submenu-icon-rotate'); 112 }); 113 }); 114 }, 115 116 APLDG2ProgressBar: function (){ 117 $(".progress-bar-seo-agency").ProgressBar(); 118 }, 119 120 APLDG2Carousel: function (){ 121 //Hero slider 122 $(".apldg2-hero-slider").slick({ 123 slidesToShow: 1, 124 autoplay: false, 125 dots: true, 126 arrows: false, 127 }); 128 129 //Service Slider 130 $(".apldg2-services-slider").slick({ 131 slidesToShow: 4, 132 autoplay: true, 133 dots: true, 134 arrows: false, 135 slidesToScroll: 2, 136 responsive: [ 137 { 138 breakpoint: 992, 139 settings: { 140 slidesToShow: 3, 141 } 142 }, 143 { 144 breakpoint: 768, 145 settings: { 146 slidesToShow: 2, 147 } 148 }, 149 { 150 breakpoint: 576, 151 settings: { 152 slidesToShow: 1, 153 } 154 } 155 ] 156 }); 157 158 159 //Project slider 160 $(".apldg2-project-slider").each(function(){ 161 var ItemLength = $(this).children().length; 162 if(ItemLength > 1 ) { 163 $(this).slick({ 164 slidesToShow: 2, 165 dots: true, 166 autoplay: true,
167 arrows: false, 168 responsive: [ 169 { 170 breakpoint: 768, 171 settings: { 172 slidesToShow: 1, 173 } 174 } 175 ] 176 }); 177 } 178 }); 179 180 //Feedback Slider 181 $(".apldg2-feedback-slider").slick({ 182 slidestoShow: 1, 183 autoplay: true, 184 dots: false, 185 arrows: true, 186 prevArrow: '<button type="button" class="prev-btn"><i class="fas fa-arrow-left"></i></button>', 187 nextArrow: '<button type="button" class="next-btn"><i class="fas fa-arrow-right"></i></button>', 188 }); 189 190 //Blog Slider 191 $(".apldg2-blog-slider").slick({ 192 slidesToShow: 3, 193 autoplay: true, 194 arrows: false, 195 dots: true, 196 slidesToScroll: 2, 197 responsive: [ 198 { 199 breakpoint: 1200, 200 settings: { 201 slidesToShow: 2, 202 } 203 }, 204 { 205 breakpoint: 768, 206 settings: { 207 slidesToShow: 1, 208 } 209 } 210 ] 211 }); 212 }, 213 214 APLDG2VideoPopup: function (){ 215 $('.apldg2-video-popup').magnificPopup({ 216 type: 'iframe', 217 iframe: { 218 patterns: { 219 youtube: { 220 index: 'youtube.com/', 221 222 id: 'v=', 223 src: 'https://www.youtube.com/embed/%id%?autoplay=1' 224 }, 225 vimeo: { 226 index: 'vimeo.com/', 227 id: '/', 228 src: '//player.vimeo.com/video/%id%?autoplay=1' 229 }, 230 gmaps: { 231 index: '//maps.google.', 232 src: '%id%&output=embed' 233 } 234 }, 235 236 srcAction: 'iframe_src', 237 } 238 }); 239 }, 240 APLDGCounterUp: function (){ 241 $(".counterup").counterUp({ 242 delay: 10, 243 time: 1000 244 }); 245 } 246 } 247 } 248 jQuery(document).ready(function (){ 249 aplpg2_appilo.init(); 250 console.log('appilo seo agency js loaded'); 251 }); 252 253})();
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.