Classes and their tests
Handler function define user interactions. They will:
- read user input from events and from the DOM
- read and modify program data variables
- process user data with logic functions
- update the DOM to show changes to the user
- log any important information for developers
moves 4px down the css element
Param | Type | Description |
---|---|---|
btn | string |
a css selector |
handles a pomodoro break (15 minutes)
handles a pomodoro break (25 minutes)
sets the style for the 3 break-buttons (pomodoro, short and long)
Param | Type | Description |
---|---|---|
btn | string |
a css selector |
handles a pomodoro break (5 minutes)
start/stop button toggle
loads an audio file
Event listeners are used to connect handler functions to user interactions with the DOM.
You can use the same handler in many different listeners, or add more than one listeners to the same DOM element.