} } function checkIfDirectflight() { var firstF = false; var lastF = false; var daysF = false; var todayDate = new Date(); // Checking first date if( first_flight !== null ) { // Kolla om det är mindre än idag firstD = new Date( first_flight ); if( firstD < todayDate ) { firstF = true; } } else { firstF = true; } // Checking last date if( last_flight !== null ) { // Kolla om det är större än idag lastD = new Date( last_flight ); if( lastD > todayDate ) { lastF = true; } } else { lastF = true; } // checking days if( flying_days.includes("no" ) || flying_days.includes("upcoming" ) ) { daysF = false; } else { daysF = true; } if( firstF && lastF && daysF ) { return true; } else { return false; } } // Om ett datum skickas med, så förutsätter vi att det är one-way, då sätter vi ett datum redan från start function ifFirstDate(startdate) { document.getElementById('ff-oneway').checked = true; picker.setDate(firstDate); picker.gotoDate(firstDate); picker.renderAll(); } function decadult() { if( adults !== 1 ) { adults = adults -1; updatePassengers(); } } function addadult() { if( adults !== 20 ) { adults = adults +1; updatePassengers(); } } function decchild() { if( children !== 0 ) { children = children -1; updatePassengers(); } } function addchild() { if( children !== 20 ) { children = children +1; updatePassengers(); } } function decinfant() { if( infants !== 0 ) { infants = infants -1; updatePassengers(); } } function addinfant() { if( infants !== 20 ) { infants = infants +1; updatePassengers(); } } function changeTrip( val ) { document.getElementById('ff-drodpwn-roundtrip-text').innerHTML = val; rtn = val; if( val == 'One way' ) { setPickerRange('single'); pickerselect = 'single'; } if( val == 'Round trip' ) { setPickerRange('range'); pickerselect = 'range'; } } function changeClass( val ) { document.getElementById('ff-drodpwn-class-text').innerHTML = val; fclass = val; } function updatePassengers() { document.getElementById('ff-calc-num-adult').innerHTML = adults; document.getElementById('ff-calc-num-children').innerHTML = children; document.getElementById('ff-calc-num-infant').innerHTML = infants; var textbutton = document.getElementById('ff-calc-passenger-button'); var innertext = ''; if( adults == 1) { innertext += adults + ' adult'; } else if( adults > 1 ) { innertext += adults + ' adults'; } if( infants != 0 || children != 0) { var childsum = children + infants; if( childsum > 1 ) { innertext += ' ,' + childsum + ' children'; } else { innertext += ', ' + childsum + ' child'; } } textbutton.innerHTML = innertext; } UIkit.util.on('#ff-select-roundtrip', 'show', function () { document.getElementById('ff-dropdown-roundtrip').classList.add('active'); document.getElementById('ff-dropdown-passengers').classList.remove('active'); document.getElementById('ff-dropdown-class').classList.remove('active'); document.getElementById('ff-select-passengers').setAttribute('hidden', ''); document.getElementById('ff-select-class').setAttribute('hidden', ''); }); UIkit.util.on('#ff-select-passengers', 'show', function () { document.getElementById('ff-dropdown-roundtrip').classList.remove('active'); document.getElementById('ff-dropdown-passengers').classList.add('active'); document.getElementById('ff-dropdown-class').classList.remove('active'); document.getElementById('ff-select-roundtrip').setAttribute('hidden', ''); document.getElementById('ff-select-class').setAttribute('hidden', ''); }); UIkit.util.on('#ff-select-class', 'show', function () { document.getElementById('ff-dropdown-roundtrip').classList.remove('active'); document.getElementById('ff-dropdown-passengers').classList.remove('active'); document.getElementById('ff-dropdown-class').classList.add('active'); document.getElementById('ff-select-roundtrip').setAttribute('hidden', ''); document.getElementById('ff-select-passengers').setAttribute('hidden', ''); }); function closedates() { bookoverlay.style.display = 'none'; bookelement.style.display = 'none'; picker.clear(); } function setPickerRange(range) { if( range == 'range' ) { picker.PluginManager.addInstance('RangePlugin'); picker.renderAll(); } else { picker.PluginManager.removeInstance('RangePlugin'); picker.renderAll(); } } // Build URL and send to out API function openCayak(nodates, showstops) { // If the page is an /GOT page, check if we will show connectionflights or not if( airportpage === true ) { if( checkIfDirectflight() ) { showstops = 0; } else { showstops = 1; } } alert.style.display = 'none'; let firstDate = ''; let lastDate = ''; let url = ''; if( nodates == 1 && showstops == 1 ) { url = '/outbound/search?s=airportspage-map&adults=' + parseInt(adults) + '&children=' + parseInt(children) + '&infants=' + parseInt(infants) + '&class=' + fclass.replace(' ', '+') + '&rtn=' + rtn.replace(' ', '+') + '&date=&dateto=&from=' + from + '&to=' + to + '&dontknowdates=1&label=' + flabel + '&page=' + currentUrl + '&showstops=1'; } else if( nodates == 1 ) { url = '/outbound/search?s=airportspage-map&adults=' + parseInt(adults) + '&children=' + parseInt(children) + '&infants=' + parseInt(infants) + '&class=' + fclass.replace(' ', '+') + '&rtn=' + rtn.replace(' ', '+') + '&date=&dateto=&from=' + from + '&to=' + to + '&dontknowdates=1&label=' + flabel + '&page=' + currentUrl; } else { if( dates.value.length == 0 ) { alert.style.display = 'block'; return false; } // Dates ( if 2 dates ) if( dates.value.length > 10 ) { firstDate = dates.value.substring(0, 10); lastDate = dates.value.substring(13, 23); } else { firstDate = dates.value; } if( showstops == 1 ) { url = '/outbound/search?s=airportspage-map&adults=' + parseInt(adults) + '&children=' + parseInt(children) + '&infants=' + parseInt(infants) + '&class=' + fclass.replace(' ', '+') + '&rtn=' + rtn.replace(' ', '+') + '&date=' + firstDate + '&dateto=' + lastDate + '&from=' + from + '&to=' + to + '&label=' + flabel + '&page=' + currentUrl + '&showstops=1'; } else { url = '/outbound/search?s=airportspage-map&adults=' + parseInt(adults) + '&children=' + parseInt(children) + '&infants=' + parseInt(infants) + '&class=' + fclass.replace(' ', '+') + '&rtn=' + rtn.replace(' ', '+') + '&date=' + firstDate + '&dateto=' + lastDate + '&from=' + from + '&to=' + to + '&label=' + flabel + '&page=' + currentUrl; } } window.open(url, '_blank'); if(document.getElementById('compareWithCheapflights').checked) { location.href = url + '&supplier=comparewindow'; } closedates(); }
Airtickets.Click is a powerful website for finding airline routes and flight schedules worldwide. It lets you explore destination options through non-stop flights from a specific airport, making it easy to plan business meetings or weekend getaways based on your schedule and your nearest airport.
Part of its appeal is that it makes trips easier to plan by showing the departure times of every non-stop flight in a single list.
I always wondered where you could fly direct from a particular airport (Burbank, I’m looking at you), and those answers used to be hard to find. Not anymore.
Popular booking sites often exclude low-cost carriers or miss opportunities to combine transoceanic flights with regional airlines for lower fares. A broader search tool solves this… (Hint: search by destination airport at airtickets.click)
Many budget airlines block their flight data from appearing on popular third-party platforms. To access all local departure options, airtickets.click offers a better solution