Module: Main

Members

(inner) accessibility

Track if accessibility is currently enabled Used to re-activate components after a modal has been closed
Source:

(inner, constant) body

Add components to their proper locations on the page
Source:

(inner) currentMode

Use Mode as an enum to prevent reuse of strings
Source:

(inner, constant) pomoAudio

Initialize web components Attach to window for method access and Cypress testing
Source:

(inner, constant) stylesheet

Initialize page styling
Source:

(inner) workCount

Track the counts of each mode, including interrupted work Variables are initialized in the onLoad method
Source:

(inner) workLength

Track the length of each mode Variables are initialized in the onLoad method
Source:

Methods

(inner) Disable all components to be accessed Used when timer starts running()

Source:

(inner) Enable all components to be accessed Used when timer finishes running()

Source:

(inner) Load preferences from storage and update the control and settings to reflect those values()

Source:

(inner) Update the audio component when the sound source is changed()

Source:

(inner) Update the audio component when the volume is changed()

Source:

(inner) Update the necessary components when the accessibility mode changes()

Source:

(inner) Update the necessary components when the calm mode changes()

Source:

(inner) Update the necessary components when the dark mode changes()

Source:

(inner) When the long break length is changed, update the control variable Update timer if it is currently starting a long break()

Source:

(inner) When the short break length is changed, update the control variable Update timer if it is currently starting a short break()

Source:

(inner) When the work length is changed, update the control variable Update timer if it is currently starting a work session()

Source: