Methods
(static) getExpirationDefault()
returns the expiration set in the HTML
- Source:
Returns:
string
(static) getFormatDefault()
returns the format set in the HTML
- Source:
Returns:
string
(static) getPasteData(callback, useCache)
returns the paste data (including the cipher data)
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | (optional) Called when data is available |
useCache |
function | (optional) Whether to use the cache or force a data reload. Default: true |
- Source:
Returns:
string
(static) getPasteId() → {string}
get the pastes unique identifier from the URL,
eg. https://example.com/path/?c05354954c49a487#dfdsdgdgdfgdf returns c05354954c49a487
- Source:
Throws:
string
Returns:
unique identifier
- Type
- string
(static) getPasteKey() → {string|null}
return the deciphering key stored in anchor part of the URL
- Source:
Throws:
string
Returns:
key
- Type
- string | null
(static) getTemplate(name) → {jQuery}
returns a jQuery copy of the HTML template
Parameters:
Name | Type | Description |
---|---|---|
name |
string | the name of the template |
- Source:
Returns:
- Type
- jQuery
(static) hasDeleteToken() → {bool}
returns true, when the URL has a delete token and the current call was used for deleting a paste.
- Source:
Returns:
- Type
- bool
(static) init()
init navigation manager
preloads jQuery elements
- Source:
(static) reset()
resets state, used for unit testing
- Source: