Skip to content

footer.ts

github-actions[bot] edited this page Jun 17, 2023 · 3 revisions

Functions

switchTheme()void

Changes the theme of the page and sets a localStorage variable to track the theme between page loads.

showSettings()void

Displays the settings modal and restores default values.

updateDefaultValues()void

Called when user submits values. Stores entered values in localstorage.

readDefaultValues()void

Populates input fields with default values on page load and on reset. Retrieves default values from local storage, if available.

restoreDefaults()void

Sets dialog options back to their default values when the user resets custom globals.

validateGlyphSettings(input)

Validates a glyph user input and updates the UI with any errors

switchTheme() ⇒ void

Changes the theme of the page and sets a localStorage variable to track the theme between page loads.

Kind: global function

showSettings() ⇒ void

Displays the settings modal and restores default values.

Kind: global function

updateDefaultValues() ⇒ void

Called when user submits values. Stores entered values in localstorage.

Kind: global function

readDefaultValues() ⇒ void

Populates input fields with default values on page load and on reset. Retrieves default values from local storage, if available.

Kind: global function

restoreDefaults() ⇒ void

Sets dialog options back to their default values when the user resets custom globals.

Kind: global function

restoreDefaults~inputs : NodeList

The input HTML elements in the footer.

Kind: inner constant of restoreDefaults

validateGlyphSettings(input)

Validates a glyph user input and updates the UI with any errors

Kind: global function

Param Type Description
input HTMLInputElement

The user's glyph input