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