1/*=============================================================================== 2 [ INDEX ] 3================================================================================= 4 5 Scroll Up Activation 6 Fake Loader 7 Banner Slider Active 8 Events Slider Active 9 Testimonial Slider 10 Brand Logo Slider 11 Popular Post SLider Active 12 Countdown Activation 13 Portfolio Popup Gallery 14 Mobilemenu Activation 15 Odometer Activation 16 Instafeed Activation 17 Nice Select Activation 18 Twitterfeed Activation 19 Sticky Sidebar Activation 20 Parallax Activation 21 22================================================================================= 23 [ END INDEX ] 24================================================================================*/ 25 26(function ($) { 27 'use strict'; 28 29 30 /* Scroll Up Activation */ 31 $.scrollUp({ 32 scrollText: '<i class="fa fa-angle-up"></i>', 33 easingType: 'linear', 34 scrollSpeed: 900, 35 }); 36 37 38 39 40 /* Fake Loader */ 41 $('.fakeloader').fakeLoader({ 42 timeToHide: 1200, 43 bgColor: '#de2532', 44 spinner: 'spinner4', 45 }); 46 47 48 49 50 /* Banner Slider Active */ 51 $('.banner-slider-active').slick({ 52 autoplay: false, 53 arrows: true, 54 prevArrow: '<span class="cr-navigation cr-navigation-prev"><i class="fa fa-angle-left"></i></span>', 55 nextArrow: '<span class="cr-navigation cr-navigation-next"><i class="fa fa-angle-right"></i></span>', 56 adaptiveHeight: true, 57 dots: false, 58 dotsClass: 'cr-slider-dots' 59 }); 60 61 62 63 64 65 /* Events Slider Active */ 66 $('.events2-wrap-inner').slick({ 67 autoplay: true, 68 autoplaySpeed: 5000, 69 arrows: true, 70 prevArrow: '<span class="cr-navigation cr-navigation-prev"><i class="fa fa-angle-left"></i></span>', 71 nextArrow: '<span class="cr-navigation cr-navigation-next"><i class="fa fa-angle-right"></i></span>', 72 adaptiveHeight: true, 73 dots: false, 74 dotsClass: 'cr-slider-dots', 75 fade: true, 76 }); 77 78 79 80 81 /* Testimonial Slider */ 82 $('.testimonial-wrap').slick({ 83 autoplay: true, 84 autoplaySpeed: 5000, 85 arrows: false, 86 prevArrow: '<span class="cr-navigation cr-navigation-prev"><i class="fa fa-angle-left"></i></span>', 87 nextArrow: '<span class="cr-navigation cr-navigation-next"><i class="fa fa-angle-right"></i></span>', 88 adaptiveHeight: true, 89 dots: true, 90 dotsClass: 'cr-slider-dots', 91 fade: false, 92 }); 93 94 95 /* Brand Logo Slider */ 96 $('.brand-logos-slider').slick({ 97 slidesToShow: 6, 98 infinite: true, 99 autoplay: true, 100 autoplaySpeed: 5000, 101 arrows: true, 102 prevArrow: '<span class="cr-navigation cr-navigation-prev"><i class="fa fa-angle-left"></i></span>', 103 nextArrow: '<span class="cr-navigation cr-navigation-next"><i class="fa fa-angle-right"></i></span>', 104 dots: false, 105 responsive: [{ 106 breakpoint: 1199, 107 settings: { 108 slidesToShow: 5, 109 slidesToScroll: 1 110 } 111 }, 112 { 113 breakpoint: 992, 114 settings: { 115 slidesToShow: 4, 116 slidesToScroll: 1 117 } 118 }, 119 { 120 breakpoint: 768, 121 settings: { 122 slidesToShow: 2, 123 slidesToScroll: 1 124 } 125 }, 126 { 127 breakpoint: 576, 128 settings: { 129 slidesToShow: 1, 130 slidesToScroll: 1 131 } 132 } 133 ] 134 }); 135 136 137 138 139 140 /* Popular Post SLider Active */ 141 $('.polular-post-slider-active').slick({ 142 slidesToShow: 3, 143 infinite: true, 144 autoplay: true, 145 autoplaySpeed: 5000, 146 arrows: true, 147 prevArrow: '<span class="cr-navigation cr-navigation-prev"><i class="fa fa-angle-left"></i></span>', 148 nextArrow: '<span class="cr-navigation cr-navigation-next"><i class="fa fa-angle-right"></i></span>', 149 dots: false, 150 responsive: [{ 151 breakpoint: 991, 152 settings: { 153 slidesToShow: 2, 154 slidesToScroll: 1 155 } 156 }, 157 { 158 breakpoint: 576, 159 settings: { 160 slidesToShow: 1, 161 slidesToScroll: 1 162 } 163 } 164 ] 165 }); 166 167 168 169 170 /* Countdown Activation */ 171 $('.event-countdown').each(function () { 172 var $this = $(this), 173 finalDate = $(this).data('countdown'); 174 $this.countdown(finalDate, function (event) { 175 $this.html(event.strftime( 176 '<div class="event-countdown-box event-countdown-day"><h2 class="time-count">%-D</h2><h4>Days</h4></div><div class="event-countdown-box event-countdown-hour"><h2 class="time-count">%-H</h2><h4>Hour</h4></div><div class="event-countdown-box event-countdown-minute"><h2 class="time-count">%M</h2><h4>Min</h4></div><div class="event-countdown-box event-countdown-second"><h2 class="time-count">%S</h2><h4>Sec</h4></div>')); 177 }); 178 }); 179 180 181 182 183 /* Portfolio Popup Gallery */ 184 $('.portfolio-popup-gallery-active').lightGallery({ 185 selector: '.portfolio' 186 }); 187 188 189 190 191 /* Mobilemenu Activation */ 192 $('nav.bn-navigation').meanmenu({ 193 meanMenuClose: '<img src="images/icons/icon-close.png" alt="close icon">', 194 meanMenuCloseSize: '18px', 195 meanScreenWidth: '991', 196 meanExpandableChildren: true, 197 meanMenuContainer: '.mobile-menu', 198 onePage: true 199 }); 200 201 202 203 204 /* Odometer Activation */ 205 if( $('.odometer').length ){ 206 207 $(window).on('scroll', function(){ 208 209 function winScrollPosition() { 210 var scrollPos = $(window).scrollTop(), 211 winHeight = $(window).height(); 212 var scrollPosition = Math.round(scrollPos + (winHeight / 1.2)); 213 return scrollPosition; 214 } 215 216 var scrollPos = $(this).scrollTop(); 217 var elemOffset = $('.odometer').offset().top; 218 var winHeight = $(window).height(); 219 220 if ( elemOffset < winScrollPosition()) { 221 222 $('.odometer').each(function(){ 223 $(this).html($(this).data('count-to')); 224 }); 225 226 } 227 228 }); 229 230 } 231 232 /* Instafeed Activation */ 233 if($('#instafeed').length){ 234 var feed = new Instafeed({ 235 accessToken:'IGQVJYX1VzNUVSRmhiV1ZAXTWRiUXNIdHVmM0FwMlBGamhIaWItWUFINk1HSGZA2NjZAoWnp1ZAkt6REhlWjdCd3I5RnlmRzNaSkwzcGxpTlIzcDJLdk9idVBBemZAGSjJwN29mQmVJcF9nVThVVnZAOZATF3NwZDZD', 236 template: '<div class="sidebar-instafeed-single"><a href="{{link}}" target="_new"><img src="{{image}}" /><span>{{caption}}</span></a></div>', 237 target:"instafeed", 238 limit: 4, 239 240 after: function() { 241 242 $('#instafeed').slick({ 243 slidesToShow: 1, 244 infinite: true, 245 autoplay: true, 246 autoplaySpeed: 5000,
247 arrows: false, 248 dots: true, 249 adaptiveHeight: true, 250 }); 251 252 }, 253 254 }); 255 feed.run(); 256 } 257 258 259 260 /* Nice Select Activation */ 261 $('select').niceSelect(); 262 263 264 /* Twitterfeed Activation */ 265 266 if($('#sidebar-twitter-feed').length){ 267 268 var configProfile = { 269 "profile": {"screenName": 'akcent_chester'}, 270 "domId": 'sidebar-twitter-feed', 271 "maxTweets": 2, 272 "enableLinks": true, 273 "showUser": false, 274 "showTime": true, 275 "showImages": true, 276 "lang": 'en' 277 }; 278 twitterFetcher.fetch(configProfile); 279 280 } 281 282 283 /* Sticky Sidebar Activation */ 284 $('.sticky-sidebar-active').theiaStickySidebar({ 285 additionalMarginTop: 30 286 }); 287 288 289 290 /* Parallax Activation */ 291 $('.bg-parallax').jarallax(); 292 293 294 295 296})(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.