Class FixItDecryptor API
Contents
FixIt decryptor for encrypted pages
New FixItDecryptor(options)
Name | Type | Description |
---|---|---|
options | Object | The options of FixItDecryptor(Options) |
Options
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
decrypted | Function | <optional> | [Lifecycle Hooks] handler after decrypting | |
partialDecrypted | Function | <optional> | [Lifecycle Hooks] handler after partially decrypting | |
reset | Function | <optional> | [Lifecycle Hooks] handler after encrypting again | |
duration | Number | <optional> | 86400 | number of seconds to cache decryption statistics. unit: s |
Methods
Init()
initialize FixIt decryptor
InitShortcodes()
initialize fixit-encryptor shortcodes
ValidateCache()
validate the cached decryption statistics in localStorage
AddEventListener(event, Listener)
add event listener for FixIt Decryptor
Name | Type | Description |
---|---|---|
event | String | event name |
listener | Function | event handler |
RemoveEventListener(event, Listener)
remove event listener for FixIt Decryptor
Name | Type | Description |
---|---|---|
event | String | event name |
listener | Function | event handler |
Events
Decrypted
after decrypting
Partial-Decrypted
after partially decrypting
Reset
after encrypting again
Related Content
- Mermaid Shortcode
- Extended Shortcodes Overview
- Built-in Shortcodes
- Extended Markdown Syntax
- Encrypt Test
Included in Collection・References 2