https://www.airnorth.com.au/wp-content/themes/airnorth/assets/js/s…=1.961.pagespeed.jm.sVeMI4v-u0.js
1$('.header-fix .container').slick({dots:false,arrows:true,infinite:false,speed:400,slidesToShow:1,});$(".header-fix .container .alert-item").parents().eq(3).addClass('hasNews');$(document).ready(function(){$(".card-four").wrapAll("<div class='card-four-wrap' />");document.addEventListener('wpcf7mailsent',function(event){setTimeout(function(){$('.wpcf7-mail-sent-ok').delay(3000).fadeOut('fast').hide(0);},5000);},false);});$('.dropdown').on('show.bs.dropdown',function(){$(this).find('.dropdown-menu').first().stop(true,true).slideDown(200);});$('.dropdown').on('hide.bs.dropdown',function(){$(this).find('.dropdown-menu').first().stop(true,true).slideUp(100);});$(".archive-block .widget-title").click(function(){$(this).next().slideDown(200);});$(document).on('click',function(e){if($(e.target).closest('.archive-block .widget-title').length){$(".widget-area ul").show();}else if(!$(e.target).closest('.widget-area ul').length){$('.widget-area ul').slideUp(100);}});$(document).ready(function(){$(".banner .search, .search-close").click(function(){$('.search-drop').slideToggle();$(".search-form input.form-control").focus();});});$('.anchor-top').on("click",function(){$("html, body").animate({scrollTop:"0px"});});$('.main-header .section-tabs .nav-tabs .nav-link').on("click",function(){$('.search-drop').hide();$('#search-tabs').tab('show');$("html, body").animate({scrollTop:"0px"});});$('input').each(function(){if($(this).is(':disabled')){$(this).parent().addClass('disabled');}});$(document).ready(function(){$('.trip-selector input').change(function(){if($('#one-way').is(':checked')){$('#return-date, #return-input').attr('disabled','').val('');$('#return-date').parent().addClass('disabled');$('.regular-trip').show();$('.multi-trip').hide();$('.multi-trip input').attr('disabled','disabled').val('');}else if($('#return').is(':checked')){$('#return-date').removeAttr('disabled','').val('');$('#return-date').parent().removeClass('disabled');$('.regular-trip').show();$('.multi-trip').hide();}});});$('.multi-trip input').attr('disabled','disabled').val('');$(document).ready(function(){$('#search-flights .spec-assist input').change(function(){if($('#yes-assist').is(':checked')){$('.regular-trip .btn[type="submit"]').attr('disabled','').val('');}else if($('#no-assist').is(':checked')){$('.regular-trip .btn[type="submit"]').removeAttr('disabled','');}});});$(document).ready(function(){$('#timetables .trip-selector input').change(function(){if($('#one-way-tables').is(':checked')){$('#return-date-table').attr('disabled','').val('');$('#return-date-table').parent().addClass('disabled');}else{$('#return-date-table').removeAttr('disabled','').val('');$('#return-date-table').parent().removeClass('disabled');}});});$(document).ready(function(){$(".form-group .dropdown-menu a").click(function(){var value=$(this).text();var code=$(this).attr('data-code');var input=$(this).parents().eq(2).find('.form-control');var hidden=$(this).parents().eq(2).find('.port-code-input');input.val(value);hidden.val(code);});});$(function(){$('.port-input').keyup(function(){var text=$(this).val().toLowerCase();var deptInputValue=$('.port-input.dept').val();var retnInputValue=$('.port-input.retn').val();$(this).parent().find('.port-list').find('.port-selector').each(function(){if($(this).text()!==''&&$(this).text().toLowerCase().indexOf(text)==-1)$(this).hide();else 2$(this).show();if($(this).data('code').toLowerCase().indexOf(text)>=0){$(this).show();}});});});var date=new Date();date.setDate(date.getDate());$('.regular-trip #depart-date').datepicker({format:'dd MM yyyy',autoclose:true,startDate:date,orientation:'bottom',endDate:'+435d',}).on('changeDate',function(event){updatereturndatepicker();var Ddate=moment($(this).datepicker("getDate")).format("DD.MM.yyyy");$(this).next().val(Ddate);});function updatereturndatepicker(){var departcalendar=$('.regular-trip #depart-date');var returncalendar=$('.regular-trip #return-date');var startdate=new Date(departcalendar.val());returncalendar.datepicker("destroy");returncalendar.datepicker({format:'dd MM yyyy',value:'dd.mm.yyyy',autoclose:true,startDate:startdate,endD
2ate:'+435d',orientation:'bottom'}).on('changeDate',function(event){var Ddate=moment($(this).datepicker("getDate")).format("DD.MM.yyyy");$(this).next().val(Ddate);}) 3returncalendar.datepicker("show");}var date=new Date();date.setDate(date.getDate());$('.multi-trip #date-1').datepicker({format:'dd MM yyyy',autoclose:true,startDate:date,orientation:'bottom',endDate:'+435d',}).on('changeDate',function(event){updatereturndatepicker1();});function updatereturndatepicker1(){var departcalendar=$('.multi-trip #date-1');var returncalendar=$('.multi-trip #date-2');var startdate=new Date(departcalendar.val());returncalendar.datepicker("destroy");returncalendar.datepicker({format:'dd MM yyyy',autoclose:true,startDate:startdate,endDate:'+435d',orientation:'bottom'}).on('changeDate',function(event){updatereturndatepicker2();});}function updatereturndatepicker2(){var departcalendar=$('.multi-trip #date-2');var returncalendar=$('.multi-trip #date-3');var startdate=new Date(departcalendar.val());returncalendar.datepicker("destroy");returncalendar.datepicker({format:'dd MM yyyy',autoclose:true,startDate:startdate,endDate:'+435d',orientation:'bottom'}).on('changeDate',function(event){updatereturndatepicker3();});}function updatereturndatepicker3(){var departcalendar=$('.multi-trip #date-3');var returncalendar=$('.multi-trip #date-4');var startdate=new Date(departcalendar.val());returncalendar.datepicker("destroy");returncalendar.datepicker({format:'dd MM yyyy',autoclose:true,startDate:startdate,endDate:'+435d',orientation:'bottom'}).on('changeDate',function(event){updatereturndatepicker4();});}function updatereturndatepicker4(){var departcalendar=$('.multi-trip #date-4');var returncalendar=$('.multi-trip #date-5');var startdate=new Date(departcalendar.val());returncalendar.datepicker("destroy");returncalendar.datepicker({format:'dd MM yyyy',autoclose:true,startDate:startdate,endDate:'+435d',orientation:'bottom'});}var dateB=new Date();date.setDate(date.getDate());$('#timetables #depart-date-table').datepicker({format:'dd MM yyyy',autoclose:true,startDate:dateB,orientation:'bottom',endDate:'+435d',}).on('changeDate',function(event){updatereturndatepickerB();});function updatereturndatepickerB(){var departcalendar=$('#timetables #depart-date-table');var returncalendar=$('#timetables #return-date-table');var startdate=new Date(departcalendar.val());returncalendar.datepicker("destroy");returncalendar.datepicker({format:'dd MM yyyy',autoclose:true,startDate:startdate,endDate:'+435d',orientation:'bottom'});returncalendar.datepicker("show");}$(document).ready(function(){$(".remove-flight").click(function(e){e.preventDefault();$(this).parents(2).find(".multi-leg:visible:last").toggle();$(".multi-leg:hidden input").attr("disabled","disabled");$(".multi-leg:hidden .disabled").addClass('disabled');});});$(document).ready(function(){$(".add-flight").click(function(e){e.preventDefault();$(this).parents(2).find(".multi-leg:hidden:first").toggle().find('input');$(".multi-leg:visible input").removeAttr("disabled","disabled");$(".multi-leg:visible .disabled").removeClass('disabled');});});$(function(){$('.book-btn.bookinglink, .sale-block .btn, .single-book .btn').click(function(e){e.preventDefault();$("html, body").animate({scrollTop:"0px"});$('.is-active').slideDown(400);$('.isnt-active').hide();$('#search-tabs #search-flights-tab').tab('show');var departPortName=$(this).attr('data-depart-port');var arrivalPortName=$(this).attr('data-return-port');var departDate=$(this).attr('data-depart-date');var returnDate=$(this).attr('data-return-date');var dataPromo=$(this).attr('data-promo');var dataTrip=$(this).attr('data-trip');$("#departCity").val(departPortName);$("#arrivalCity").val(arrivalPortName);$("#depart-date").val(departDate);$("#return-date").val(returnDate);$("#promo-code").val(dataPromo);var DportSelected=$(".port-wrapper").find(".port-selector[data-text='"+departPortName+"']").attr('data-code');$(".port-code-input.dept").val(DportSelected);var AportSelected=$(".port-wrapper").find(".port-selector[data-text='"+arrivalPortName+"']").attr('data-code');$(".port-code-input.retn").val(AportSelected);var Cdate=moment($("#depart-date").val()).format("DD.MM.yyyy");$('#depart-date').next().val(Cdate);var Ddate=moment($("#return-date").val()).format("DD.MM.yyyy");$('#return-date').next().val(Ddate);});});$(function(){$('.location a[data-loc-port]').click(function(e){e.preventDefault();var arrivalPort=$(this).attr('data-loc-port');$("#arrivalCity").val(arrivalPort);$("html, body").animate({scrollTop:"0px"});$('.is-active').slideDown(400);$('.isnt-active').hide();$('#search-tabs #search-flights-tab').tab('show');});});$(document).ready(function(){$('div[data-state]').removeClass('port-active');$(".option-changer.location-drop .dropdown-menu a").click(function(){var locSwap=$(this).attr('value');$('div[data-state]').addClass('port-active');$('div[data-state="'+locSwap+'"]').removeClass('port-active');});$(".option-changer.location-drop .dropdown-menu a[value='everywhere']").click(function(){$('div[data-state]').removeClass('port-active');});});$(document).ready(function(){$(".option-changer .dropdown-menu a").click(function(){var valueb=$(this).text();var inputb=$(this).parents().eq(2).find('.btn-inline');inputb.text(valueb);});});$(document).ready(function(){$(".option-changer .dropdown-menu a").click(function(){var portSwap=$(this).attr('data-code');$(this).parents().eq(5).find('.selector-options').removeClass('port-active');$(this).parents().eq(5).find('#'+portSwap).addClass('port-active');});});
3$(".location .collaspe-toggle").click(function(e){$(this).next('.collapse').collapse('toggle');});$('.location .collapse').on('show.bs.collapse',function(){$(this).prev('.collaspe-toggle').addClass('opened');});$('.location .collapse').on('hide.bs.collapse',function(){$(this).prev('.collaspe-toggle').removeClass('opened');});$(".collapse-card .collaspe-toggle").click(function(e){$(this).next('.collapse').collapse('toggle');});$('.collapse-card .collapse').on('show.bs.collapse',function(){$(this).prev('.collaspe-toggle').addClass('opened');});$('.collapse-card .collapse').on('hide.bs.collapse',function(){$(this).prev('.collaspe-toggle').removeClass('opened');});$(".port-selector").on("click",function(){if($(this).parent().parent().hasClass("dept")){var currentport=$(this).attr("data-code");var returnportpicker=$(".retn");var previousPort=$(".port-wrapper").data("last-port");if(previousPort){$(".port-wrapper").removeClass(previousPort);}$(".port-wrapper").addClass(currentport);$(".port-wrapper").data("last-port",currentport);returnportpicker.find(".port-selector").css("display","block");var ASPallowedports=["DRW","KTR","TCA","PER","CNS"];var BMEallowedports=["KNX","DRW"];var CNSallowedports=["DRW","GOV","ASP","PER"];var DRWallowedports=["ASP","BME","CNS","DIL","ELC","OOL","GOV","GTE","KTR","KNX","MNG","MCV","MGT","PER","TCA","WTB","TSV","ISA","AYQ"];var DILallowedports=["DRW"];var ELCallowedports=["DRW","MNG","MGT"];var GOVallowedports=["CNS","DRW","GTE"];var GTEallowedports=["DRW","GOV","CNS"];var KTRallowedports=["ASP","DRW","TCA"];var KNXallowedports=["DRW","BME","PER"];var MNGallowedports=["DRW","MGT","ELC"];var MCVallowedports=["DRW"];var MELallowedports=["PER"];var MGTallowedports=["DRW","MNG"];var PERallowedports=["DRW","KNX","MEL","ASP","CNS"];var TCAallowedports=["DRW","ASP","KTR"];var TSVallowedports=["DRW"];if(currentport=="ASP"){returnportpicker.find(".port-selector").each(function(e){if(ASPallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="BME"){returnportpicker.find(".port-selector").each(function(e){if(BMEallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="CNS"){returnportpicker.find(".port-selector").each(function(e){if(CNSallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="DRW"){returnportpicker.find(".port-selector").each(function(e){if(DRWallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="DIL"){returnportpicker.find(".port-selector").each(function(e){if(DILallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="ELC"){returnportpicker.find(".port-selector").each(function(e){if(ELCallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="OOL"){returnportpicker.find(".port-selector").each(function(e){if(OOLallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="GOV"){returnportpicker.find(".port-selector").each(function(e){if(GOVallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="GTE"){returnportpicker.find(".port-selector").each(function(e){if(GTEallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="KTR"){returnportpicker.find(".port-selector").each(function(e){if(KTRallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="KNX"){returnportpicker.find(".port-selector").each(function(e){if(KNXallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="MNG"){returnportpicker.find(".port-selector").each(function(e){if(MNGallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="MCV"){returnportpicker.find(".port-selector").each(function(e){if(MCVallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="MEL"){returnportpicker.find(".port-selector").each(function(e){if(MELallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="MGT"){returnportpicker.find(".port-selector").each(function(e){if(MGTallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="ISA"){returnportpicker.find(".port-selector").each(function(e){if(ISAallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="PER"){returnportpicker.find(".port-selector").each(function(e){if(PERallowed
3ports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="TCA"){returnportpicker.find(".port-selector").each(function(e){if(TCAallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="WTB"){returnportpicker.find(".port-selector").each(function(e){if(WTBallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}if(currentport=="TSV"){returnportpicker.find(".port-selector").each(function(e){if(TSVallowedports.indexOf($(this).attr("data-code"))==-1){$(this).css("display","none");}});}}});var validator=$("#regular-search").validate({rules:{"depPort":{required:true,},"arrPort":{required:true,},"departureDate":{required:true,},"returnDate":{required:true,},"search_departing_01":{required:true,},"search_arriving_01":{required:true,},"search_departing_02":{required:true,},"search_arriving_02":{required:true,},"search_departing_03":{required:true,},"search_arriving_03":{required:true,},"search_date_03":{required:true,},"search_departing_04":{required:true,},"search_arriving_04":{required:true,},"search_date_04":{required:true,},"search_departing_05":{required:true,},"search_arriving_05":{required:true,},"search_date_05":{required:true,}},ignore:":disabled",messages:"!"});var validator2=$("#web-check-form").validate({rules:{"booking-ref":{required:true,},"first-name":{required:true,},"last-name":{required:true,}},ignore:":disabled",messages:"!"});var validator2=$("#manage-form").validate({rules:{"booking-ref":{required:true,},"first-name":{required:true,},"last-name":{required:true,}},ignore:":disabled",messages:"!"});var validator2=$("#timetables-form").validate({rules:{"departing-from":{required:true,},"going-to":{required:true,},"depart-date":{required:true,},"return-date":{required:true,}},ignore:":disabled",messages:"!"});$(document).ready(function(){$("#group-booking .form-check-label").click(function(e){$(this).find('input').attr('checked',true);$(this).toggleClass('checked')});});$(document).ready(function(){$(".group-remove-flight").click(function(e){e.preventDefault();$(this).parents(2).find(".flight-choice:visible:last").toggle();$(".flight-choice:hidden input").attr("disabled","disabled");$(".flight-choice:hidden .disabled").addClass('disabled');});});$(document).ready(function(){$(".group-add-flight").click(function(e){e.preventDefault();$(this).parents(2).find(".flight-choice:hidden:first").toggle().find('input');$(".flight-choice:visible input").removeAttr("disabled","disabled");$(".flight-choice:visible .disabled").removeClass('disabled');});});$(document).ready(function(){$(".locationPreferences #ALL input[value*='All']").click(function(e){if($(this).is(':checked')){$('.locationPreferences input').prop('checked',true);}else{$('.locationPreferences input').prop('checked',false);}});});$(document).ready(function(){$(".locationPreferences #ALLNT input[value*='All']").click(function(e){if($(this).is(':checked')){$('#ALLNT input').prop('checked',true);}else{$('#ALLNT input').prop('checked',false);}});});$(document).ready(function(){$(".locationPreferences #ALLQLD input[value*='All']").click(function(e){if($(this).is(':checked')){$('#ALLQLD input').prop('checked',true);}else{$('#ALLQLD input').prop('checked',false);}});});$(document).ready(function(){$(".locationPreferences #ALLWA input[value*='All']").click(function(e){if($(this).is(':checked')){$('#ALLWA input').prop('checked',true);}else{$('#ALLWA input').prop('checked',false);}});});$(document).ready(function(){$(".locationPreferences #ALLVIC input[value*='All']").click(function(e){if($(this).is(':checked')){$('#ALLVIC input').prop('checked',true);}else{$('#ALLVIC input').prop('checked',false);}});});$(document).ready(function(){$(".locationPreferences #ALLINT input[value*='All']").click(function(e){if($(this).is(':checked')){$('#ALLINT input').prop('checked',true);}else{$('#ALLINT input').prop('checked',false);}});});$("#calcBTN").click(function(){$('.amounts-wrapper .loader').fadeIn(0).delay(300).fadeOut();var arrC=$('#calc-departCity').val();var dptC=$('#calc-arrivalCity').val();if(dptC=="Alice Springs"&&arrC=="Darwin"){$('#preBlock').html('50');$('#portBlock').html('15');}else 4if(dptC=="Alice Springs"&&arrC=="Katherine"){$('#preBlock').html('35');$('#portBlock').html('10');}else 5if(dptC=="Alice Springs"&&arrC=="Tennant Creek"){$('#preBlock').html('35');$('#portBlock').html('10');}else 6if(dptC=="Broome"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 7if(dptC=="Broome"&&arrC=="Kununurra"){$('#preBlock').html('35');$('#portBlock').html('10');}else 8if(dptC=="Cairns"&&arrC=="Broome"){$('#preBlock').html('50');$('#portBlock').html('15');}else 9if(dptC=="Cairns"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 10if(dptC=="Cairns"&&arrC=="Gove"){$('#preBlock').html('35');$('#portBlock').html('10');}else 11if(dptC=="Cairns"&&arrC=="Melbourne"){$('#preBlock').html('50');$('#portBlock').html('15');}else 12if(dptC=="Cairns"&&arrC=="Toowomba"){$('#preBlock').html('50');$('#portBlock').html('15');}else 13if(dptC=="Darwin"&&arrC=="Alice Springs"){$('#preBlock').html('50');$('#portBlock').html('15');}else 14if(dptC=="Darwin"&&arrC=="Broome"){$('#preBlock').html('35');$('#portBlock').html('10');}else 15if(dptC=="Darwin"&&arrC=="Cairns"){$('#preBlock').html('35');$('#portBlock').html('10');}else 16if(dptC=="Darwin"&&arrC=="Dili, Timor-Leste"){$('#preBlock').html('35');$('#portBlock').html('10');}else 17if(dptC=="Darwin"&&arrC=="Elcho Island"){$('#preBlock').html('35');$('#portBlock').html('10');}else 18if(dptC=="Darwin"&&arrC=="Gove"){$('#preBlock').html('35');$('#portBlock').html('10');}else 19if(dptC=="Darwin"&&arrC=="Groote Eylandt"){$('#preBlock').html('35');$('#portBlock').html('10');}else 20if(dptC=="Darwin"&&arrC=="Katherine"){$('#preBlock').html('35');$('#portBlock').html('10');}else 21if(dptC=="Darwin"&&arrC=="Kununurra"){$('#preBlock').html('35');$('#portBlock').html('10');}else 22if(dptC=="Darwin"&&arrC=="Maningrida"){$('#preBlock').html('35');$('#portBlock').html('10');}else 23if(dptC=="Darwin"&&arrC=="Melbourne"){$('#preBlock').html('50');$('#portBlock').html('15');}else 24if(dptC=="Darwin"&&arrC=="Milingimbi"){$('#preBlock').html('35');$('#portBlock').html('10');}else 25if(dptC=="Darwin"&&arrC=="Perth"){$('#preBlock').html('50');$('#portBlock').html('15');}else 26if(dptC=="Darwin"&&arrC=="Tennant Creek"){$('#preBlock').html('35');$('#portBlock').html('10');}else 27if(dptC=="Darwin"&&arrC=="Townsville"){$('#preBlock').html('35');$('#portBlock').html('10');}else 28if(dptC=="Darwin"&&arrC=="Toowoomba"){$('#preBlock').html('50');$('#portBlock').html('15');}else 29if(dptC=="Darwin"&&arrC=="Gold Coast"){$('#preBlock').html('50');$('#portBlock').html('15');}else 30if(dptC=="Dili, Timor-Leste"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 31if(dptC=="Elcho Island"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 32if(dptC=="Elcho Island"&&arrC=="Maningrida"){$('#preBlock').html('35');$('#portBlock').html('10');}else 33if(dptC=="Gold Coast"&&arrC=="Darwin"){$('#preBlock').html('50');$('#portBlock').html('10');}else 34if(dptC=="Gove"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 35if(dptC=="Gove"&&arrC=="Cairns"){$('#preBlock').html('35');$('#portBlock').html('10');}else 36if(dptC=="Gove"&&arrC=="Groote Eylandt"){$('#preBlock').html('35');$('#portBlock').html('10');}else 37if(dptC=="Groote Eylandt"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 38if(dptC=="Groote Eylandt"&&arrC=="Gove"){$('#preBlock').html('35');$('#portBlock').html('10');}else 39if(dptC=="Katherine"&&arrC=="Alice Springs"){$('#preBlock').html('35');$('#portBlock').html('10');}else 40if(dptC=="Katherine"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 41if(dptC=="Katherine"&&arrC=="Tennant Creek"){$('#preBlock').html('35');$('#portBlock').html('10');}else 42if(dptC=="Kununurra"&&arrC=="Broome"){$('#preBlock').html('35');$('#portBlock').html('10');}else 43if(dptC=="Kununurra"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 44if(dptC=="Kununurra"&&arrC=="Perth"){$('#preBlock').html('50');$('#portBlock').html('15');}else 45if(dptC=="Maningrida"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 46if(dptC=="Maningrida"&&arrC=="Elcho Island"){$('#preBlock').html('35');$('#portBlock').html('10');}else 47if(dptC=="Maningrida"&&arrC=="Milingimbi"){$('#preBlock').html('35');$('#portBlock').html('10');}else 48if(dptC=="McArthur River"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 49if(dptC=="Melbourne"&&arrC=="Darwin"){$('#preBlock').html('50');$('#portBlock').html('15');}else 50if(dptC=="Melbourne"&&arrC=="Toowoomba"){$('#preBlock').html('35');$('#portBlock').html('10');}else 51if(dptC=="Melbourne"&&arrC=="Townsville"){$('#preBlock').html('35');$('#portBlock').html('10');}else 52if(dptC=="Milingimbi"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 53if(dptC=="Milingimbi"&&arrC=="Maningrida"){$('#preBlock').html('35');$('#portBlock').html('10');}else 54if(dptC=="Perth"&&arrC=="Darwin"){$('#preBlock').html('50');$('#portBlock').html('15');}else 55if(dptC=="Perth"&&arrC=="Kununurra"){$('#preBlock').html('50');$('#portBlock').html('15');}else 56if(dptC=="Tennant Creek"&&arrC=="Alice Springs"){$('#preBlock').html('35');$('#portBlock').html('10');}else 57if(dptC=="Tennant Creek"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 58if(dptC=="Tennant Creek"&&arrC=="Katherine"){$('#preBlock').html('35');$('#portBlock').html('10');}else 59if(dptC=="Townsville"&&arrC=="Darwin"){$('#preBlock').html('35');$('#portBlock').html('10');}else 60if(dptC=="Townsville"&&arrC=="Melbourne"){$('#preBlock').html('35');$('#portBlock').html('10');}else 61if(dptC=="Townsville"&&arrC=="Toowoomba"){$('#preBlock').html('35');$('#portBlock').html('10');}else 62if(dptC=="Townsville"&&arrC=="Gold Coast"){$('#preBlock').html('35');$('#portBlock').html('10');}else 63if(dptC=="Toowoomba"&&arrC=="Darwin"){$('#preBlock').html('50');$('#portBlock').html('15');}else 64if(dptC=="Toowoomba"&&arrC=="Melbourne"){$('#preBlock').html('35');$('#portBlock').html('10');}else 65if(dptC=="Toowoomba"&&arrC=="Townsville"){$('#preBlock').html('35');$('#portBlock').html('10');}else 66if(dptC=="Toowoomba"&&arrC=="Cairns"){$('#preBlock').html('35');$('#portBlock').html('10');}else 67if(dptC=="Perth"&&arrC=="Darwin"){$('#preBlock').html('50');$('#portBlock').html('15');}});$("#calc-departCity").click(function(){$('#calc-arrivalCity').val('');});$("#departCity").click(function(){$('#arrivalCity').val('');});$(document).ready(function(){$(".march-block-card input").change(function(){var selectedProducts=[];var foo=15.99;$.each($(".march-block-card input:checked"),function(){selectedProducts.push($(this).val());});$('#productName').val(selectedProducts.join(", "));$('.march-block-card input:checked').each(function(){var item=$(this);
67foo+=parseFloat(item.attr('data-product-price'))||0;});$("#productPrice").val('Total Price '+foo);});});$("button.add").click(function(e){$('#merch-form').slideDown();$(window).scrollTop($('#merch-form').offset().top);});$(document).ready(function(){var totalItems=$('.carousel-item').length;console.log(totalItems);});$(document).ready(function(){$(".medical-opt").click(function(){var formDROP=$(this).attr('data-rel');$(this).toggleClass('active');$('.med-drop.'+formDROP).toggle();});});$(document).ready(function(){var $paxSelects=$('.regular-trip .passenger-select input.counter');$paxSelects.change(function(){var paxCount=0;$paxSelects.each(function(){paxCount=paxCount+parseInt($(this).val());});if(paxCount==1){$(this).parents().eq(5).find('#search_passengers').val(paxCount+" Passenger");}else{$(this).parents().eq(5).find('#search_passengers').val(paxCount+" Passengers");}});});$(document).ready(function(){var $paxSelects=$('.multi-trip .passenger-select input.counter');$paxSelects.change(function(){var paxCount=0;$paxSelects.each(function(){paxCount=paxCount+parseInt($(this).val());});if(paxCount==1){$(this).parents().eq(5).find('#search_passengers').val(paxCount+" Passenger");}else{$(this).parents().eq(5).find('#search_passengers').val(paxCount+" Passengers");}});});$('.counter.number .counter').change(function(){if($(this).val()==0){$(this).parent().find(".pax-btn.minus").attr("disabled","disabled");}else{$(this).parent().find(".pax-btn.minus").removeAttr("disabled","disabled");}});$('.counter.number .adult.counter').change(function(){if($(this).val()==1){$(this).parent().find(".pax-btn.minus").attr("disabled","disabled");}else{$(this).parent().find(".pax-btn.minus").removeAttr("disabled","disabled");}var adtPaxCnt=$('.counter.number .adult.counter').val();if($('.counter.number .infant.counter').val()==adtPaxCnt){$('.counter.number .infant.counter').parent().find(".pax-btn.plus").attr("disabled","disabled");}else{$('.counter.number .infant.counter').parent().find(".pax-btn.plus").removeAttr("disabled","disabled");}});$('.counter.number .counter').change(function(){if($(this).val()==9){$(this).parent().find(".pax-btn.plus").attr("disabled","disabled");}else{$(this).parent().find(".pax-btn.plus").removeAttr("disabled","disabled");}});function setPaxCounterbuttons(paxTypeCounter){if($(paxTypeCounter).val()==0){$(paxTypeCounter).parent().find(".pax-btn.minus").attr("disabled","disabled");}else{$(paxTypeCounter).parent().find(".pax-btn.minus").removeAttr("disabled","disabled");}if($(paxTypeCounter).val()==9){$(paxTypeCounter).parent().find(".pax-btn.plus").attr("disabled","disabled");}else{$(paxTypeCounter).parent().find(".pax-btn.plus").removeAttr("disabled","disabled");}if($(paxTypeCounter).hasClass('infant')){var adtPaxCnt=$('.counter.number .adult.counter').val();if($(paxTypeCounter).val()==adtPaxCnt){$(paxTypeCounter).parent().find(".pax-btn.plus").attr("disabled","disabled");}else{$(paxTypeCounter).parent().find(".pax-btn.plus").removeAttr("disabled","disabled");}}}var modal=document.getElementById('modal');var closeModalButton=document.getElementById('close-modal');closeModalButton.addEventListener('click',function(event){event.stopPropagation();event.preventDefault();modal.style.display='none';});$("#regular-search .plus").click(function(){var $input=$(this).parent().find("input");var maxCount=9;if($input.attr('id')==="regular-search-Infant"){var deptPortName=($(".port-code-input.dept").val());var retnPortName=($(".port-code-input.retn").val());if((deptPortName=='DRW'&&retnPortName=='DIL')||(deptPortName=='DIL'&&retnPortName=='DRW')){maxCount=0;modal.style.display='flex';}else{maxCount=$("#regular-search #regular-search-Adult").val();}}else{var paxCount=parseInt($("#regular-search #regular-search-Adult").val())+parseInt($("#regular-search #regular-search-Child").val());if(paxCount>8){return false;}}var count=parseInt($input.val())+1;count=count<0?0:count;count=count>maxCount?maxCount:count;$input.val(count);$input.change();return false;});$("#regular-search .minus").click(function(){var $input=$(this).parent().find("input");var count=parseInt($input.val())-1;var mincount=0;
67if($input.attr('id')==="regular-search-Adult"){mincount=1;var infantCount=parseInt($("#regular-search #regular-search-Infant").val());if(infantCount>count)$("#regular-search #regular-search-Infant").val(count);}count=count<mincount?mincount:count;count=count>9?9:count;$input.val(count);$input.change();return false;});$("#multi-search .plus").click(function(){var $input=$(this).parent().find("input");var maxCount=9;if($input.attr('id')==="multi-search-Infant"){maxCount=$("#multi-search #multi-search-Adult").val();}else{var paxCount=parseInt($("#multi-search #multi-search-Adult").val())+parseInt($("#multi-search #multi-search-Child").val())+parseInt($("#multi-search #multi-search-Infant").val());if(paxCount>8){return false;}}var count=parseInt($input.val())+1;count=count<0?0:count;count=count>maxCount?maxCount:count;$input.val(count);$input.change();return false;});$("#multi-search .minus").click(function(){var $input=$(this).parent().find("input");var count=parseInt($input.val())-1;var mincount=0;if($input.attr('id')==="multi-search-Adult"){mincount=1;var infantCount=parseInt($("#multi-search #multi-search-Infant").val());if(infantCount>count)$("#multi-search #multi-search-Infant").val(count);}count=count<mincount?mincount:count;count=count>9?9:count;$input.val(count);$input.change();return false;});
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.