From 1916f13985aff7d2b7bd33f64a0ba54dfd9b3add Mon Sep 17 00:00:00 2001 From: Petr Balashov Date: Thu, 9 Mar 2017 14:31:51 +0100 Subject: [PATCH] split index.html into smaller files (wip) --- assets/scripts/kmd_wallet/KMDTransaction.js | 6 +- assets/scripts/templates/addCoinLoginModal.js | 73 ++++ assets/scripts/templates/addCoinModal.js | 74 ++++ assets/scripts/templates/ieFix.js | 6 + assets/scripts/templates/loginPage.js | 182 ++++++++ .../refreshBasiliskConnectionsModal.js | 67 +++ index.html | 411 +----------------- 7 files changed, 425 insertions(+), 394 deletions(-) create mode 100644 assets/scripts/templates/addCoinLoginModal.js create mode 100644 assets/scripts/templates/addCoinModal.js create mode 100644 assets/scripts/templates/ieFix.js create mode 100644 assets/scripts/templates/loginPage.js create mode 100644 assets/scripts/templates/refreshBasiliskConnectionsModal.js diff --git a/assets/scripts/kmd_wallet/KMDTransaction.js b/assets/scripts/kmd_wallet/KMDTransaction.js index 338cfcb..d46401f 100644 --- a/assets/scripts/kmd_wallet/KMDTransaction.js +++ b/assets/scripts/kmd_wallet/KMDTransaction.js @@ -38,7 +38,7 @@ function KMDGetPublicTransactions() { var tmp_secondsToString = secondsToString(AjaxOutputData[index].time); if ( AjaxOutputData[index].category == 'send' ) { - tmp_category = ' '._lang[defaultLang].TOASTR.OUT; + tmp_category = ' ' + _lang[defaultLang].TOASTR.OUT; } if ( AjaxOutputData[index].category == 'receive' ) { tmp_category = ' ' + _lang[defaultLang].TOASTR.IN; @@ -114,8 +114,8 @@ function KMDGetProtectedTransactions() { var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses $.each(AjaxOutputData, function(index, txidvalue) { - var tmp_category = ' ' + _lang[defaultLang].TOASTR.IN; - var tmp_addr = value.addr.slice(0, 30) + '...'; + var tmp_category = ' ' + _lang[defaultLang].TOASTR.IN, + tmp_addr = value.addr.slice(0, 30) + '...'; if (!('amount' in txidvalue)) { var tmp_amount = 0; } else { diff --git a/assets/scripts/templates/addCoinLoginModal.js b/assets/scripts/templates/addCoinLoginModal.js new file mode 100644 index 0000000..2f7b9db --- /dev/null +++ b/assets/scripts/templates/addCoinLoginModal.js @@ -0,0 +1,73 @@ +templates.addCoinLoginModal = +` + + + +`; \ No newline at end of file diff --git a/assets/scripts/templates/addCoinModal.js b/assets/scripts/templates/addCoinModal.js new file mode 100644 index 0000000..2adf134 --- /dev/null +++ b/assets/scripts/templates/addCoinModal.js @@ -0,0 +1,74 @@ +templates.addCoinModal = +` + + + + +`; \ No newline at end of file diff --git a/assets/scripts/templates/ieFix.js b/assets/scripts/templates/ieFix.js new file mode 100644 index 0000000..c4ab1ec --- /dev/null +++ b/assets/scripts/templates/ieFix.js @@ -0,0 +1,6 @@ +templates.ieFix = +` + +`; \ No newline at end of file diff --git a/assets/scripts/templates/loginPage.js b/assets/scripts/templates/loginPage.js new file mode 100644 index 0000000..2024520 --- /dev/null +++ b/assets/scripts/templates/loginPage.js @@ -0,0 +1,182 @@ +templates.loginPage = +` + +
+
+
+
+ SuperNET Iguana +
+ + + + + + + + +
+

+
+ +
+
+ + + + + +
+
+
+`; \ No newline at end of file diff --git a/assets/scripts/templates/refreshBasiliskConnectionsModal.js b/assets/scripts/templates/refreshBasiliskConnectionsModal.js new file mode 100644 index 0000000..83a3a8f --- /dev/null +++ b/assets/scripts/templates/refreshBasiliskConnectionsModal.js @@ -0,0 +1,67 @@ +templates.refreshBasiliskConnectionsModal = +` + +
+ + + +`; \ No newline at end of file diff --git a/index.html b/index.html index 2c377c4..7492c38 100755 --- a/index.html +++ b/index.html @@ -67,401 +67,31 @@ - + + + + + + - -
- - - - - - - -
- - - - -
-
-
-
- SuperNET Iguana -
- - - - - - - - -
-

-
- -
-
- - - - - -
-
+
+
+ - - - +
@@ -2639,7 +2269,6 @@ -