Title

Global

Members

# constant fileOptions

Options for Efa-Files

View Source src/utilities/globals.mjs, line 29

Methods

# getCSSVariable(variable) → {string}

Returns current value of css variable for the body

Parameters:
Name Type Description
variable string

The variable

View Source src/utilities/globals.mjs, line 22

The value of the variable

string
Example
let bootstrapPrimary = getCSSVariable('primary');

# isLightColor(color) → {boolean}

Use to check if a color is light or dark

Parameters:
Name Type Description
color string

The color

View Source src/utilities/globals.mjs, line 45

Returns true if the color is light

boolean

# normURLS(url) → {string}

Normalises an URL by removing a trailing slash

Parameters:
Name Type Description
url string

The URL

View Source src/utilities/globals.mjs, line 11

The normalised URL

string