1 2$(".checkin").on("click",function(){ 3 $("#ui-datepicker-div").removeClass('hidden'); 4}); 5 6$("#close-apply").on('click',function(){ 7 $('#travellerClassModal').hide(); 8}); 9 10$(".checkin").datepicker({ 11 showAnim: "drop", 12 dateFormat: "dd/mm/yy", 13 minDate: "-0D", 14 /* fix buggy IE focus functionality */ 15 fixFocusIE: false, 16 onClose: function(dateText, inst) { 17 this.fixFocusIE = true; 18 // $(".checkout").focus(); 19 } 20}); 21$(".checkout").datepicker({ 22 showAnim: "drop", 23 dateFormat: "dd/mm/yy", 24 minDate: "-0D", 25 beforeShow: function () { 26 var e = $(".checkin").datepicker("getDate"); 27 return e ? { minDate: e} : void 0 28 } 29}); 30$(".checkin, .checkout").on("focus", function () { 31 $(this).blur() 32}) 33$(document).ready(function () { 34 35 $('.modify-search3').click(function () { 36 // $('.modify-search').hide(); 37 var t = $(this).find('.search-mod').text(); 38 // alert(t); 39 if(t == 'Detail Search'){ 40 $(this).find('.search-mod').text('Hide Search'); 41 $(this).find('.search-mod2').removeClass('fa-arrow-down'); 42 $(this).find('.search-mod2').addClass('fa-arrow-up'); 43 } else { 44 $(this).find('.search-mod').text('Detail Search'); 45 $(this).find('.search-mod2').removeClass('fa-arrow-up'); 46 $(this).find('.search-mod2').addClass('fa-arrow-down'); 47 } 48 // $(this).find('.search-mod2').toggleClass('fa-arrow-up'); 49 $(this).find('.input-group-addon').find('i.fa-plus').toggleClass('fa-minus'); 50 $('.extra-filter').toggle(); 51 }); 52 53 // $( "#returnDate" ).prop( "disabled", true ); 54 // $('.date-return').hide(); 55 $("input[name='tripType']").change(function(){ 56 $val = $(this).val(); 57 // alert($val); 58 if($(this).val() == 'S'){ 59 $('#O-R-Trip').fadeIn('fast'); 60 $('.date-return').hide(); 61 $('.date-oneway').fadeIn('fast'); 62 // $( "#returnDate" ).prop( "disabled", true ); 63 // $( "#roundTrip" ).prop( "checked", false ); 64 $('#M-Trip').hide(); 65 $('.tripTypeVal').val('S'); 66 } 67 if($(this).val() == 'R'){ 68 $('.date-oneway').hide(); 69 $('#O-R-Trip').fadeIn('fast'); 70 $('.date-return').fadeIn('fast'); 71 $('#M-Trip').hide(); 72 // $( "#roundTrip" ).prop( "checked", true ); 73 $('.tripTypeVal').val('R'); 74 $("#r_date").text(' ') 75 // $( "#returnDate" ).prop( "disabled", false ); 76 } 77 else if($(this).val() == 'M'){ 78 $('#O-R-Trip').hide(); 79 $('.date-return').hide(); 80 $('.date-oneway').fadeIn('fast'); 81 $('#M-Trip').fadeIn('fast'); 82 $('.tripTypeVal').val('M'); 83 } 84 }); 85 86 $("input[name='bustrip']").change(function(){ 87 $val = $(this).val(); 88 // alert($val); 89 if($(this).val() == 'oneway'){ 90 $('.date-return').hide(); 91 $('.date-oneway').fadeIn('fast'); 92 $('.tripTypeVal').val('oneway'); 93 } 94 if($(this).val() == 'roundtrip'){ 95 $('.date-oneway').hide(); 96 $('.date-return').fadeIn('fast'); 97 $('.tripTypeVal').val('roundtrip'); 98 } 99 }); 100 101 // $('#roundTrip').on('click', function(){ 102 // // $(this).last().prop('checked', true); 103 // // $( "#returnDate" ).prop( "disabled", false ); 104 // if ($(this).is(":checked")) { 105 // $( "#returnDate" ).prop( "disabled", false ); 106 // $(".checkout").focus(); 107 // $('#tripTypeVal').prop('checked', false); 108 // } else { 109 // $( "#returnDate" ).prop( "disabled", true ); 110 // $( "#returnDate" ).val(''); 111 // $('#tripTypeVal').prop('checked', true); 112 // } 113 // }); 114 115 $(".swap-img, .swap-cities").click(function(){ 116 var fromCity = $("#fromCity").val(); 117 var from_city = $("#t_from1").text(); 118 $('#fromCity').val($("#toCity").val()); 119 $('#t_from1').text($("#t_to1").text()); 120 $('#toCity').val(fromCity); 121 var tfrom = $("#t_from").text(); 122 $("#t_from").text($("#t_to").text()); 123 $("#t_to").text(tfrom); 124 $("#t_to1").text(from_city); 125 });
126 127 // Pax constraints 128 var prev_val; 129 $('.pax-drop').on('focus', function() { 130 prev_val = $(this).val(); 131 }).change(function(){ 132 var total,adults,childs,infants,val = 0; 133 var _this = $(this); 134 var val = $(this).val(); 135 var _parent = _this.parents('.pax-group'); 136 var paxtype = _this.attr('paxtype'); 137 138 adults = _parent.find('.adults').val(); 139 childs = _parent.find('.childs').val(); 140 infants = _parent.find('.infants').val(); 141 if(infants > adults){ 142 alert('No of Infants cannot be more than No of Adults'); 143 _this.val(prev_val); 144 return false; 145 } 146 total = parseInt(adults, 10) + parseInt(childs, 10) + parseInt(infants, 10); 147 if(total > 9){ 148 alert('You can select upto 9 travellers'); 149 _this.val(prev_val); 150 return false; 151 } 152 prev_val = $(this).val(); 153 // alert(prev_val); 154 }) 155 156}); 157 158function myCarosule () { 159 if ($('.matrix-carousel').length) { 160 $('.matrix-carousel').owlCarousel({ 161 loop: true, 162 margin: 0, 163 nav: true, 164 navText : ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'], 165 dots: false, 166 autoplay: false, 167 autoplayTimeout: 3000, 168 autoplayHoverPause: true, 169 responsive: { 170 0:{ 171 items:1 172 }, 173 480:{ 174 items:2 175 }, 176 600:{ 177 items:3 178 }, 179 1000:{ 180 items:4 181 }, 182 1200:{ 183 items:5 184 } 185 } 186 }); 187 } 188} 189 190jQuery(document).on('ready', function () { 191 (function ($) { 192 // add your functions 193 myCarosule(); 194 })(jQuery); 195 $(".disabledKeyEvents").keydown(function(event) { 196 return false; 197 }); 198});
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.