1 AOS.init({ 2 duration: 800, 3 easing: 'slide' 4 }); 5 6(function($) { 7 8 "use strict"; 9 10 try { if ($.fn.stellar) $(window).stellar({ 11 responsive: true, 12 parallaxBackgrounds: true, 13 parallaxElements: true, 14 horizontalScrolling: false, 15 hideDistantElements: false, 16 scrollProperty: 'scroll' 17 }); } catch(e) {} 18 19 20 var fullHeight = function() { 21 22 $('.js-fullheight').css('height', $(window).height()); 23 $(window).resize(function(){ 24 $('.js-fullheight').css('height', $(window).height()); 25 }); 26 27 }; 28 fullHeight(); 29 30 // loader 31 var loader = function() { 32 setTimeout(function() { 33 if($('#ftco-loader').length > 0) { 34 $('#ftco-loader').removeClass('show'); 35 } 36 }, 1); 37 }; 38 loader(); 39 40 // Scrollax 41 $.Scrollax(); 42 43 44 45 // Burger Menu 46// var burgerMenu = function() { 47// 48// $('body').on('click', '.js-fh5co-nav-toggle', function(event){ 49// 50// event.preventDefault(); 51// 52// if ( $('#ftco-nav').is(':visible') ) { 53// console.log("show"); 54// $(this).removeClass('active'); 55// $(this).removeClass('show'); 56// } 57// else { 58// console.log("hide"); 59// $(this).addClass('active'); 60// $(this).addClass('show'); 61// } 62// }); 63// 64// }; 65// burgerMenu(); 66 67 $('.js-fh5co-nav-toggle').on('click', function(){ 68 $('#ftco-nav').toggle(300); 69// if ( $('#ftco-nav').is(':visible') ) { 70// console.log("show"); 71// $(this).css('display','block'); 72// } 73// else { 74// console.log("hide"); 75// $(this).css('display','block'); 76// 77// } 78 79 }); 80 81 82 var onePageClick = function() { 83 84 85 $(document).on('click', '#ftco-nav a[href^="#"]', function (event) { 86 event.preventDefault(); 87 88 var href = $.attr(this, 'href'); 89 90 $('html, body').animate({ 91 scrollTop: $($.attr(this, 'href')).offset().top - 70 92 }, 500, function() { 93 // window.location.hash = href; 94 }); 95 }); 96 97 }; 98 99 onePageClick(); 100 101 102 var carousel = function() { 103 $('.home-slider').owlCarousel({ 104 loop:true, 105 autoplay: true, 106 margin:0, 107 animateOut: 'fadeOut', 108 animateIn: 'fadeIn', 109 nav:false, 110 autoplayHoverPause: false, 111 items: 1, 112 navText : ["<span class='ion-md-arrow-back'></span>","<span class='ion-chevron-right'></span>"], 113 responsive:{ 114 0:{ 115 items:1 116 }, 117 600:{ 118 items:1 119 }, 120 1000:{ 121 items:1 122 } 123 } 124 }); 125 $('.carousel-testimony').owlCarousel({ 126 autoplay: true, 127 autoHeight: true, 128 center: false, 129 loop: true, 130 items:1, 131 margin: 15, 132 stagePadding: 0, 133 nav: false, 134 dots: true, 135 navText: ['<span class="ion-ios-arrow-back">', '<span class="ion-ios-arrow-forward">'], 136 responsive:{ 137 0:{ 138 items: 2 139 }, 140 600:{ 141 items: 4 142 }, 143 1000:{ 144 items: 6 145 } 146 , 147 1600:{ 148 items: 6 149 } 150 } 151 }); 152 153 }; 154 carousel(); 155 156 157 $('nav .dropdown').on('click', function (event) { 158 //event.preventDefault(); 159 //var $this = $(this); 160 //$('.dropdown-menu').removeClass('show'); 161 162 $(this).toggleClass('show'); 163 //$(this).find('> a').attr('aria-expanded', true); 164 165 if ($(this).hasClass('show')) { 166 $(this).find('.dropdown-menu').removeClass('show'); 167 $(this).find('> a').attr('aria-expanded', false); 168 } else { 169 $('.dropdown-menu').removeClass('show'); 170 $(this).find('.dropdown-menu').addClass('show'); 171 $(this).find('> a').attr('aria-expanded', true); 172 } 173 } ); 174 175 176 177 178 $('#dropdown04').on('show.bs.dropdown', function () { 179 }); 180 181 // scroll 182 var scrollWindow = function() { 183 $(window).scroll(function(){ 184 var $w = $(this), 185 st = $w.scrollTop(), 186 navbar = $('.ftco_navbar'), 187 sd = $('.js-scroll-wrap'); 188 189 if (st > 150) { 190 if ( !navbar.hasClass('scrolled') ) { 191 navbar.addClass('scrolled'); 192 } 193 } 194 if (st < 150) { 195 if ( navbar.hasClass('scrolled') ) { 196 navbar.removeClass('scrolled sleep'); 197 } 198 } 199 if ( st > 350 ) { 200 if ( !navbar.hasClass('awake') ) { 201 navbar.addClass('awake'); 202 } 203 204 if(sd.length > 0) { 205 sd.addClass('sleep'); 206 } 207 } 208 if ( st < 350 ) {
209 if ( navbar.hasClass('awake') ) { 210 navbar.removeClass('awake'); 211 navbar.addClass('sleep'); 212 } 213 if(sd.length > 0) { 214 sd.removeClass('sleep'); 215 } 216 } 217 }); 218 }; 219 scrollWindow(); 220 221 222 223 var counter = function() { 224 225 $('#section-counter, .hero-wrap, .ftco-counter').waypoint( function( direction ) { 226 227 if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) { 228 229 var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',') 230 $('.number').each(function(){ 231 var $this = $(this), 232 num = $this.data('number'); 233 $this.animateNumber( 234 { 235 number: num, 236 numberStep: comma_separator_number_step 237 }, 7000 238 ); 239 }); 240 241 } 242 243 } , { offset: '95%' } ); 244 245 } 246 counter(); 247 248 249 var contentWayPoint = function() { 250 var i = 0; 251 $('.ftco-animate').waypoint( function( direction ) { 252 253 if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) { 254 255 i++; 256 257 $(this.element).addClass('item-animate'); 258 setTimeout(function(){ 259 260 $('body .ftco-animate.item-animate').each(function(k){ 261 var el = $(this); 262 setTimeout( function () { 263 var effect = el.data('animate-effect'); 264 if ( effect === 'fadeIn') { 265 el.addClass('fadeIn ftco-animated'); 266 } else if ( effect === 'fadeInLeft') { 267 el.addClass('fadeInLeft ftco-animated'); 268 } else if ( effect === 'fadeInRight') { 269 el.addClass('fadeInRight ftco-animated'); 270 } else { 271 el.addClass('fadeInUp ftco-animated'); 272 } 273 el.removeClass('item-animate'); 274 }, k * 50, 'easeInOutExpo' ); 275 }); 276 277 }, 100); 278 279 } 280 281 } , { offset: '95%' } ); 282 }; 283 contentWayPoint(); 284 285 // magnific popup 286// $('.image-popup').magnificPopup({ 287// type: 'image', 288// closeOnContentClick: true, 289// closeBtnInside: false, 290// fixedContentPos: true, 291// mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side 292// gallery: { 293// enabled: true, 294// navigateByImgClick: true, 295// preload: [0,1] // Will preload 0 - before current, and 1 after the current image 296// }, 297// image: { 298// verticalFit: true 299// }, 300// zoom: { 301// enabled: true, 302// duration: 300 // don't foget to change the duration also in CSS 303// } 304// }); 305 306// $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 307// disableOn: 700, 308// type: 'iframe', 309// mainClass: 'mfp-fade', 310// removalDelay: 160, 311// preloader: false, 312// 313// fixedContentPos: false 314// }); 315 316 317 318 319 320})(jQuery); 321
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.