Methods
-
<static> greet()
-
Welcomes the user of the web app by displaying a welcome message that includes his name. The name is fetched from a text input field.
-
<static> greetOnEnter(p_event)
-
An keyboard event observer. It tests whether the enter key has been pressed. If so, the greet 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) -
<static> init()
-
Initializes the web app. Is to be called when the web app has been loaded completely.