From cee442b16b80490c3549b667068372fd28395593 Mon Sep 17 00:00:00 2001 From: Kirill Kovalenko Date: Fri, 18 Mar 2016 20:27:10 +0100 Subject: Make CSS and JS path relative --- compile.py | 8 ++++---- src/index.html | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/compile.py b/compile.py index 4d2dbe2..1ab3328 100644 --- a/compile.py +++ b/compile.py @@ -13,7 +13,7 @@ f.close() # Script tags -scriptsFinder = re.compile("""""") +scriptsFinder = re.compile("""""") scripts = scriptsFinder.findall(page) for script in scripts: @@ -21,13 +21,13 @@ for script in scripts: s = open(filename) scriptContent = "" % s.read() s.close() - scriptTag = """""" % script + scriptTag = """""" % script page = page.replace(scriptTag, scriptContent) # Style tags -stylesFinder = re.compile("""""") +stylesFinder = re.compile("""""") styles = stylesFinder.findall(page) for style in styles: @@ -35,7 +35,7 @@ for style in styles: s = open(filename) styleContent = "" % s.read() s.close() - styleTag = """""" % style + styleTag = """""" % style page = page.replace(styleTag, styleContent) diff --git a/src/index.html b/src/index.html index 1699b39..de652d8 100644 --- a/src/index.html +++ b/src/index.html @@ -3,7 +3,7 @@ BIP39 - Mnemonic Code - + @@ -385,13 +385,13 @@ - - - - - - - - + + + + + + + + -- cgit v1.2.3 From 3e0ed16a93761d6b706ddcc10ee37319fec43e36 Mon Sep 17 00:00:00 2001 From: Kirill Kovalenko Date: Fri, 18 Mar 2016 20:28:33 +0100 Subject: Display BIP39 seed --- src/index.html | 6 ++++++ src/js/index.js | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index de652d8..16d93e6 100644 --- a/src/index.html +++ b/src/index.html @@ -88,6 +88,12 @@ +
+ +
+ +
+
diff --git a/src/js/index.js b/src/js/index.js index 9dabe95..4f1ab24 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1,6 +1,7 @@ (function() { var mnemonic = new Mnemonic("english"); + var seed = null var bip32RootKey = null; var bip32ExtendedKey = null; var network = bitcoin.networks.bitcoin; @@ -18,6 +19,7 @@ DOM.phrase = $(".phrase"); DOM.passphrase = $(".passphrase"); DOM.generate = $(".generate"); + DOM.seed = $(".seed"); DOM.rootKey = $(".root-key"); DOM.extendedPrivKey = $(".extended-priv-key"); DOM.extendedPubKey = $(".extended-pub-key"); @@ -169,7 +171,7 @@ } function calcBip32Seed(phrase, passphrase, path) { - var seed = mnemonic.toSeed(phrase, passphrase); + seed = mnemonic.toSeed(phrase, passphrase); bip32RootKey = bitcoin.HDNode.fromSeedHex(seed, network); bip32ExtendedKey = bip32RootKey; // Derive the key from the path @@ -232,6 +234,7 @@ function displayBip32Info() { // Display the key + DOM.seed.val(seed); var rootKey = bip32RootKey.toBase58(); DOM.rootKey.val(rootKey); var extendedPrivKey = bip32ExtendedKey.toBase58(); -- cgit v1.2.3