Global

Members

(constant) testInternetSpeed

Tests the internet speed by fetching a sample video file. If the test has already been performed, returns the cached result.
Source:

Methods

addButtonEventListener(button, flowName)

Adds an event listener to a flow button. When the button is clicked, it triggers the flow change.
Parameters:
Name Type Description
button HTMLElement The flow button element.
flowName string The name of the flow to be triggered.
Source:

createButtonContainer() → {HTMLElement}

Creates and returns the container element for the flow buttons.
Source:
Returns:
The container div for the buttons.
Type
HTMLElement

createFlowButton(flowName) → {HTMLElement}

Creates a flow button element for a specific flow.
Parameters:
Name Type Description
flowName string The name of the flow to create a button for.
Source:
Returns:
The created button element.
Type
HTMLElement

destroy()

Cleans up the event listeners and DOM elements related to flow buttons. This method should be called when the flow buttons are no longer needed.
Source:

generate()

Generates the flow buttons and appends them to the DOM. It creates buttons for each available flow (excluding the current flow) and adds event listeners to trigger flow changes. Clears the existing flow container before appending the buttons.
Source:

getAvailableFlows() → {Array.<string>}

Gets the available flows excluding the current flow.
Source:
Returns:
A list of flow names that are not the current flow.
Type
Array.<string>