1//------------------------------ 2//Picker 3//------------------------------ 4 5$(function() { 6"use strict"; 7 $( "#datepicker,#datepicker2,#datepicker3,#datepicker4,#datepicker5,#datepicker6,#datepicker7,#datepicker8" ).datepicker(); 8}); 9 10 11//------------------------------ 12//Custom Select 13//------------------------------ 14$(document).ready(function(){ 15"use strict"; 16 $('.mySelectBoxClass').customSelect(); 17 18 /* -OR- set a custom class name for the stylable element */ 19 //$('.mySelectBoxClass').customSelect({customClass:'mySelectBoxClass'}); 20}); 21 22function mySelectUpdate(){ 23"use strict"; 24 setTimeout(function (){ 25 $('.mySelectBoxClass').trigger('update'); 26 }, 200); 27} 28 29$(window).resize(function() { 30 mySelectUpdate(); 31}); 32 33//OwlCarousel 34$(document).ready(function ($) { 35 $("#index-slideshow div.owl-carousel").owlCarousel({ 36 items: 1, 37 stopOnHover: true, 38 lazyLoad: true, 39 navigation: true, 40 pagination: false, 41 autoPlay: 10000, 42 singleItem: true, 43 navigationText: false, 44 transitionStyle: "fade", 45 lazyEffect: "fade" 46 }); 47 48 $("#slider-carousel1").owlCarousel({ 49 items: 1, 50 stopOnHover: true, 51 lazyLoad: true, 52 navigation: true, 53 pagination: false, 54 autoPlay: 5000, 55 singleItem: true, 56 navigationText: false, 57 transitionStyle: "fade", 58 lazyEffect: "fade" 59 }); 60 61 //$("#slider-carousel1").owlCarousel({ 62 // items: 1, 63 // stopOnHover: true, 64 // lazyLoad: true, 65 // navigation: false, 66 // pagination: false, 67 // autoPlay: 1000, 68 // singleItem: true, 69 // navigationText: false, 70 // transitionStyle: "fade", 71 // lazyEffect: "fade" 72 //}); 73 74}); 75 76//------------------------------ 77//CaroufredSell 78//------------------------------ 79$(document).ready(function($){ 80"use strict"; 81 //$("#foo").carouFredSel({ 82 // width: "100%", 83 // height: 240, 84 // items: { 85 // visible: 5, 86 // minimum: 1, 87 // start: 2 88 // }, 89 // scroll: { 90 // items: 1, 91 // easing: "easeInOutQuad", 92 // duration: 500, 93 // pauseOnHover: true 94 // }, 95 // auto: false, 96 // prev: { 97 // button: "#prev_btn", 98 // key: "left" 99 // }, 100 // next: { 101 // button: "#next_btn", 102 // key: "right" 103 // }, 104 // swipe: true 105 //}); 106 107 108 //$("#foo2").carouFredSel({ 109 // width: "100%", 110 // height: 240, 111 // items: { 112 // visible: 5, 113 // minimum: 1, 114 // start: 2 115 // }, 116 // scroll: { 117 // items: 1, 118 // easing: "easeInOutQuad", 119 // duration: 500, 120 // pauseOnHover: true 121 // }, 122 // auto: false, 123 // prev: { 124 // button: "#prev_btn2", 125 // key: "left" 126 // }, 127 // next: { 128 // button: "#next_btn2", 129 // key: "right" 130 // }, 131 // swipe: true 132 //}); 133 134 135}); 136 137 138 139//------------------------------ 140//Add rooms 141//------------------------------ 142 function addroom2(){ 143 "use strict"; 144 $('.room2').addClass('block'); 145 $('.room2').removeClass('none'); 146 $('.addroom1').removeClass('block'); 147 $('.addroom1').addClass('none'); 148 149 } 150 function removeroom2(){ 151 "use strict"; 152 $('.room2').addClass('none'); 153 $('.room2').removeClass('block'); 154 155 $('.addroom1').removeClass('none'); 156 $('.addroom1').addClass('block'); 157 } 158 function addroom3(){ 159 "use strict"; 160 $('.room3').addClass('block'); 161 $('.room3').removeClass('none'); 162 163 $('.addroom2').removeClass('block'); 164 $('.addroom2').addClass('none'); 165 } 166 function removeroom3(){ 167 "use strict"; 168 $('.room3').addClass('none'); 169 $('.room3').removeClass('block'); 170 171 $('.addroom2').removeClass('none'); 172 $('.addroom2').addClass('block'); 173 } 174 175 176 177 178 179////------------------------------ 180////Nice Scroll 181////------------------------------ 182// $(document).ready(function() { 183// "use strict"; 184// var nice = $("html").niceScroll({ 185// cursorcolor:"#ccc", 186// cursorborder :"0px solid #fff", 187// railpadding:{top:0,right:0,left:0,bottom:0}, 188// cursorwidth:"5px",
189// cursorborderradius:"0px", 190// cursoropacitymin:0, 191// cursoropacitymax:0.7, 192// boxzoom:true, 193// autohidemode:false 194// }); 195// 196// $("#air").niceScroll({horizrailenabled:false}); 197// $("#hotel").niceScroll({horizrailenabled:false}); 198// $("#car").niceScroll({horizrailenabled:false}); 199// $("#vacations").niceScroll({horizrailenabled:false}); 200// 201 202// $('html').addClass('no-overflow-y'); 203// 204// }); 205 206 207 208 209//------------------------------ 210//Slider parallax effect 211//------------------------------ 212 213$(document).ready(function($){ 214"use strict"; 215var jQueryscrollTop; 216var jQueryheaderheight; 217var jQueryloggedin = false; 218 219if(jQueryloggedin == false){ 220 jQueryheaderheight = $('.navbar-wrapper2').height() - 20; 221} else { 222 jQueryheaderheight = $('.navbar-wrapper2').height() + 100; 223} 224 225 226$(window).scroll(function(){ 227 var jQueryiw = $('body').innerWidth(); 228 jQueryscrollTop = $(window).scrollTop(); 229 if ( jQueryiw < 992 ) { 230 231 } 232 else{ 233 $('.navbar-wrapper2').css({'min-height' : 110-(jQueryscrollTop/2) +'px'}); 234 } 235 $('#dajy').css({'top': ((- jQueryscrollTop / 5)+ jQueryheaderheight) + 'px' }); 236 //$(".sboxpurple").css({'opacity' : 1-(jQueryscrollTop/300)}); 237 $(".scrolleffect").css({'top': ((- jQueryscrollTop / 5)+ jQueryheaderheight) + 30 + 'px' }); 238 $(".tp-leftarrow").css({'left' : 20-(jQueryscrollTop/2) +'px'}); 239 $(".tp-rightarrow").css({'right' : 20-(jQueryscrollTop/2) +'px'}); 240}); 241 242}); 243 244 245 246//------------------------------ 247//SCROLL ANIMATIONS 248//------------------------------ 249 250 $(window).scroll(function(){ 251 "use strict"; 252 var jQueryiw = $('body').innerWidth(); 253 254 if($(window).scrollTop() != 0){ 255 $('.mtnav').stop().animate({top: '0px'}, 500); 256 $('.logo').stop().animate({width: '100px'}, 100); 257 258 } 259 else { 260 if ( jQueryiw < 992 ) { 261 } 262 else{ 263 $('.mtnav').stop().animate({top: '30px'}, 500); 264 } 265 266 267 $('.logo').stop().animate({width: '120px'}, 100); 268 269 } 270 271 272 //Social 273 if($(window).scrollTop() >= 300){ 274 $('.social1').stop().animate({top:'0px'}, 100); 275 276 setTimeout(function (){ 277 $('.social2').stop().animate({top:'0px'}, 100); 278 }, 100); 279 280 setTimeout(function (){ 281 $('.social3').stop().animate({top:'0px'}, 100); 282 }, 200); 283 284 setTimeout(function (){ 285 $('.social4').stop().animate({top:'0px'}, 100); 286 }, 300); 287 288 setTimeout(function (){ 289 $('.gotop').stop().animate({top:'0px'}, 200); 290 }, 400); 291 292 } 293 else { 294 setTimeout(function (){ 295 $('.gotop').stop().animate({top:'100px'}, 200); 296 }, 400); 297 setTimeout(function (){ 298 $('.social4').stop().animate({top:'-120px'}, 100); 299 }, 300); 300 setTimeout(function (){ 301 $('.social3').stop().animate({top:'-120px'}, 100); 302 }, 200); 303 setTimeout(function (){ 304 $('.social2').stop().animate({top:'-120px'}, 100); 305 }, 100); 306 307 $('.social1').stop().animate({top:'-120px'}, 100); 308 309 } 310 311 312 }); 313 314 315 316 317 318 319//------------------------------ 320//ROLLOVER 321//------------------------------ 322 323var theSide = 'marginLeft'; 324var options = {}; 325options[theSide] = $('.one').width()/2-15; 326$(".one") 327 .mouseenter(function() { 328 $(".mhover", this).addClass( "block" ); 329 $(".mhover", this).removeClass( "none" ); 330 $(".icon", this).stop().animate(options, 100); 331 }); 332$(".one").mouseleave(function() { 333 $(".mhover", this).addClass( "none" ); 334 $(".mhover", this).removeClass( "block" ); 335 $(".icon", this).stop().animate({marginLeft:"0px"}, 100); 336 }); 337 338 339
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.