mirror of
https://github.com/quantum5/correcthorsebatterystaple.git
synced 2025-04-25 02:31:57 -04:00
added copy on generate setting saving and use in Generate
This commit is contained in:
parent
be2b2f344e
commit
53f52be5fd
|
@ -12,6 +12,7 @@ $(() => {
|
||||||
list: 'large',
|
list: 'large',
|
||||||
count: 4,
|
count: 4,
|
||||||
symbol: true,
|
symbol: true,
|
||||||
|
copy: false,
|
||||||
separator: defaultSymbol,
|
separator: defaultSymbol,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +62,8 @@ $(() => {
|
||||||
$('#run-generator').click(() => {
|
$('#run-generator').click(() => {
|
||||||
const options = $options.serializeObject()
|
const options = $options.serializeObject()
|
||||||
$output.text(generate(options)).removeClass('placeholder')
|
$output.text(generate(options)).removeClass('placeholder')
|
||||||
|
if(options.copy)
|
||||||
|
new Clipboard('#run-generator')
|
||||||
$('#copy-password').prop('disabled', false)
|
$('#copy-password').prop('disabled', false)
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue