diff options
-rw-r--r-- | compile.py | 8 | ||||
-rw-r--r-- | src/index.html | 18 |
2 files changed, 13 insertions, 13 deletions
@@ -13,7 +13,7 @@ f.close() | |||
13 | 13 | ||
14 | # Script tags | 14 | # Script tags |
15 | 15 | ||
16 | scriptsFinder = re.compile("""<script src="/(.*)"></script>""") | 16 | scriptsFinder = re.compile("""<script src="(.*)"></script>""") |
17 | scripts = scriptsFinder.findall(page) | 17 | scripts = scriptsFinder.findall(page) |
18 | 18 | ||
19 | for script in scripts: | 19 | for script in scripts: |
@@ -21,13 +21,13 @@ for script in scripts: | |||
21 | s = open(filename) | 21 | s = open(filename) |
22 | scriptContent = "<script>%s</script>" % s.read() | 22 | scriptContent = "<script>%s</script>" % s.read() |
23 | s.close() | 23 | s.close() |
24 | scriptTag = """<script src="/%s"></script>""" % script | 24 | scriptTag = """<script src="%s"></script>""" % script |
25 | page = page.replace(scriptTag, scriptContent) | 25 | page = page.replace(scriptTag, scriptContent) |
26 | 26 | ||
27 | 27 | ||
28 | # Style tags | 28 | # Style tags |
29 | 29 | ||
30 | stylesFinder = re.compile("""<link rel="stylesheet" href="/(.*)">""") | 30 | stylesFinder = re.compile("""<link rel="stylesheet" href="(.*)">""") |
31 | styles = stylesFinder.findall(page) | 31 | styles = stylesFinder.findall(page) |
32 | 32 | ||
33 | for style in styles: | 33 | for style in styles: |
@@ -35,7 +35,7 @@ for style in styles: | |||
35 | s = open(filename) | 35 | s = open(filename) |
36 | styleContent = "<style>%s</style>" % s.read() | 36 | styleContent = "<style>%s</style>" % s.read() |
37 | s.close() | 37 | s.close() |
38 | styleTag = """<link rel="stylesheet" href="/%s">""" % style | 38 | styleTag = """<link rel="stylesheet" href="%s">""" % style |
39 | page = page.replace(styleTag, styleContent) | 39 | page = page.replace(styleTag, styleContent) |
40 | 40 | ||
41 | 41 | ||
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 @@ | |||
3 | <head lang="en"> | 3 | <head lang="en"> |
4 | <meta charset="utf-8" /> | 4 | <meta charset="utf-8" /> |
5 | <title>BIP39 - Mnemonic Code</title> | 5 | <title>BIP39 - Mnemonic Code</title> |
6 | <link rel="stylesheet" href="/css/bootstrap.min.css"> | 6 | <link rel="stylesheet" href="css/bootstrap.min.css"> |
7 | <meta content="Mnemonic code for generating deterministic keys" name="description"/> | 7 | <meta content="Mnemonic code for generating deterministic keys" name="description"/> |
8 | <meta content="width=device-width, initial-scale=1.0" name="viewport" /> | 8 | <meta content="width=device-width, initial-scale=1.0" name="viewport" /> |
9 | <meta content="bitcoin mnemonic converter" name="description" /> | 9 | <meta content="bitcoin mnemonic converter" name="description" /> |
@@ -385,13 +385,13 @@ | |||
385 | <td class="privkey"><span></span></td> | 385 | <td class="privkey"><span></span></td> |
386 | </tr> | 386 | </tr> |
387 | </script> | 387 | </script> |
388 | <script src="/js/jquery.min.js"></script> | 388 | <script src="js/jquery.min.js"></script> |
389 | <script src="/js/bootstrap.min.js"></script> | 389 | <script src="js/bootstrap.min.js"></script> |
390 | <script src="/js/bitcoinjs-1-5-7.js"></script> | 390 | <script src="js/bitcoinjs-1-5-7.js"></script> |
391 | <script src="/js/bitcoinjs-extensions.js"></script> | 391 | <script src="js/bitcoinjs-extensions.js"></script> |
392 | <script src="/js/sjcl-bip39.js"></script> | 392 | <script src="js/sjcl-bip39.js"></script> |
393 | <script src="/js/wordlist_english.js"></script> | 393 | <script src="js/wordlist_english.js"></script> |
394 | <script src="/js/jsbip39.js"></script> | 394 | <script src="js/jsbip39.js"></script> |
395 | <script src="/js/index.js"></script> | 395 | <script src="js/index.js"></script> |
396 | </body> | 396 | </body> |
397 | </html> | 397 | </html> |