This class is the provider and transitModes toolbar at the bottom of the UI
The constructor
Set a provider as active provider
Set a transit mode as active transit mode
Center the toolbar on the lower side of the screen
Creation of the toolbar
Hide the toolbar. Used as event listener for the timer
Reset the toolbar when providers added ( see providersadded event )
The active provider button
The active transit mode button
The toolbar HTMLElement
A boolean saving the the current state of the toolbar
Timer id for the mouse leave event
A JS map with the provider buttons, ordered by provider.name
The main HTMLElement of the toolbar
The top bar
A JS map with the transit mode buttons, ordered by transitMode
The delay needed for the timer that start the #removeHidden ( ) method
Provider buttons creation
Transit mode buttons creation
Mouse click event listener
Mouse enter event listener
Mouse leave event listener
Remove the TravelNotes-Hidden class on the toolbar. It's needed to use a timer (see the #show ( ) method) to remove the class, otherwise one of the button of the toolbar is clicked when the toolbar is show by clicking on the header on touch devices