// For Setting margin-top of search box function searchboxPosition() { if($(window).width() > 767){ var myWinHeight = 0; var searchboxHeight = 0; var topbarHeight = 0; if( typeof( $(window).height() ) == 'number' ) { myWinHeight = $(window).height(); searchboxHeight = $('.search_box').height(); topbarHeight = $('.top-bar').height(); featureHeight = $('.top').height(); searchboxPos = ((myWinHeight - searchboxHeight) / 2) - topbarHeight; $('.search_box').css('margin-top', searchboxPos); $('.features').css('margin-top', (myWinHeight - searchboxHeight - topbarHeight - searchboxPos - (searchboxHeight/2))); } } else{ $('.search_box').css('margin-top', 0); } } $(window).resize(function(e) { searchboxPosition(); }); //JS FOR POPULAR DESTINATION SLIDER $(document).ready(function(){ setTimeout(function(){ searchboxPosition(); /* $('.bxslider').bxSlider({ minSlides: 1, maxSlides: 1, //slideWidth: 170, slideMargin: 15, ticker: true, speed: 20000 }); */ /*$('.popular-destination .lightSlider').lightSlider({ item:3, auto: true, loop: true, slideMargin:10, enableDrag: false, pager: false, speed:600, responsive : [ { breakpoint:991, settings: { item:2, slideMove:2, slideMargin:10, } }, { breakpoint:767, settings: { item:1, slideMove:1 } } ] });*/ searchboxPosition(); }, 1500); //JS FOR Logos slider $(window).load(function(e) { $('.airlineslogo-slider .lightSlider').each(function() { $(this).lightSlider({ slideMove:1, auto: true, loop:false, slideMargin:15, pager: false, controls: false, autoWidth:true, speed:500, mode:"slide", }); }); }); });