How to make a calendar open by default

To automatically expand the Low Fare Calendar in search results, add the following code to the Footer of your White Label:

<script>
setTimeout(function() { 
 TP_DISPATCHER.send('calendar_toggle')
 document.querySelector('[role="calendar_line--wrapper"]').classList.add('calendar_line--hide')
}, 5000);
</script>

2017-08-09_11-19-54.png

As a result the calendar automatically opens in 5 seconds after the start of the search:

2017-08-09_11-20-49.png

Was this article helpful?

Have more questions? Submit a request