mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-28 05:10:41 +00:00
Hide/show split mnemonic cards
This commit is contained in:
@@ -47,6 +47,8 @@
|
||||
DOM.entropyWeakEntropyOverrideWarning = DOM.entropyContainer.find(".weak-entropy-override-warning");
|
||||
DOM.entropyFilterWarning = DOM.entropyContainer.find(".filter-warning");
|
||||
DOM.phrase = $(".phrase");
|
||||
DOM.splitMnemonic = $(".splitMnemonic");
|
||||
DOM.showSplitMnemonic = $(".showSplitMnemonic");
|
||||
DOM.phraseSplit = $(".phraseSplit");
|
||||
DOM.phraseSplitWarn = $(".phraseSplitWarn");
|
||||
DOM.passphrase = $(".passphrase");
|
||||
@@ -133,6 +135,7 @@
|
||||
DOM.entropyMnemonicLength.on("change", entropyChanged);
|
||||
DOM.entropyTypeInputs.on("change", entropyTypeChanged);
|
||||
DOM.phrase.on("input", delayedPhraseChanged);
|
||||
DOM.showSplitMnemonic.on("change", toggleSplitMnemonic);
|
||||
DOM.passphrase.on("input", delayedPhraseChanged);
|
||||
DOM.generate.on("click", generateClicked);
|
||||
DOM.more.on("click", showMore);
|
||||
@@ -428,6 +431,15 @@
|
||||
phraseChanged();
|
||||
}
|
||||
|
||||
function toggleSplitMnemonic() {
|
||||
if (DOM.showSplitMnemonic.prop("checked")) {
|
||||
DOM.splitMnemonic.removeClass("hidden");
|
||||
}
|
||||
else {
|
||||
DOM.splitMnemonic.addClass("hidden");
|
||||
}
|
||||
}
|
||||
|
||||
function calcForDerivationPath() {
|
||||
clearDerivedKeys();
|
||||
clearAddressesList();
|
||||
|
||||
Reference in New Issue
Block a user