- Source:
Methods
(inner) getInnerTextOrValue(element) → {string}
Gets the ``innerTextor
value``` of an element.
Parameters:
Name | Type | Description |
---|---|---|
element | HTMLInputElement | HTMLElement | The element to get the string from. |
- Source:
Returns:
The string inside of the element
- Type
- string
(inner) initializer(cFig) → {void}
Initialization function used to automate the setup of inject passwords and registering events for various elements used by the program. This function is currently also needed to preform batch password generation.
Parameters:
Name | Type | Description |
---|---|---|
cFig | A |
- Source:
Requires:
- module:messageHandler
- module:injectSimplePass
- module:simplePass
- module:injectStrengthStats
- module:getInnerTextOrValue
Returns:
- Type
- void
(inner) injectSimplePass(passwordTarget, password, entropyTargetopt) → {void}
Injects the generated password and if necessary the corresponding password stats.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
passwordTarget | HTMLElement | HTMLInputElement | The element that the password will be injected into. | |
password | string | strengthCheckedPassword | The password or | |
entropyTarget | HTMLElement | HTMLInputElement | null | <optional> | The element that the entropy calculation will be inserted into. |
- Source:
Requires:
- module:setInnerTextOrValue
- module:injectStrengthStats
Returns:
- Type
- void
(inner) injectStrengthStats(password, elements)
Injects password strength stats into provided elements.
Parameters:
Name | Type | Description |
---|---|---|
password | strengthCheckedPassword | The strength checked password object |
elements | object | An object defining the HTML Elements to inject the stats into. |
- Source:
Requires:
- module:setInnerTextOrValue
(inner) setInnerTextOrValue(element, value) → {void}
Sets the innerText
or value
of an element.
Parameters:
Name | Type | Description |
---|---|---|
element | HTMLElement | HTMLInputElement | The element that the string will be set in |
value | string | The string to set inside of the element. |
- Source:
Returns:
- Type
- void