Methods
-
init()
-
Initializes the web app. Is to be called when the web app has been loaded completely.
-
messageAdd( [p_class])
-
Passes the message stored in the text filed 'input_message' to the terminal.
Parameters:
Name Type Argument Description p_classstring <optional>
The name of an CSS class (without terminal_). -
messageAddOnEnter(p_event)
-
An keyboard event observer. It tests whether the enter key has been pressed. If so, the messageAdd method is activated. Default reactions of the browser are disabled.
Parameters:
Name Type Description p_eventKeyboardEvent A standard JavaScript keyboard event object (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent)