diff --git a/assets/scripts/coinwallets.js b/assets/scripts/coinwallets.js
index 50aef34..56b4c9f 100644
--- a/assets/scripts/coinwallets.js
+++ b/assets/scripts/coinwallets.js
@@ -12,304 +12,3 @@ $(document).ready(function() {
function sendCurrency(val) {
}
-
-
-
-/*!
- * remark (http://getbootstrapadmin.com/remark)
- * Copyright 2016 amazingsurge
- * Licensed under the Themeforest Standard Licenses
- */
-(function(document, window, $) {
- 'use strict';
-
- var Site = window.Site;
-
- $(document).ready(function($) {
- Site.run();
- });
-
- // Example Wizard Form
- // -------------------
- (function() {
- // set up formvalidation
- $('#exampleAccountForm').formValidation({
- framework: 'bootstrap',
- fields: {
- username: {
- validators: {
- notEmpty: {
- message: 'The username is required'
- },
- stringLength: {
- min: 6,
- max: 30,
- message: 'The username must be more than 6 and less than 30 characters long'
- },
- regexp: {
- regexp: /^[a-zA-Z0-9_\.]+$/,
- message: 'The username can only consist of alphabetical, number, dot and underscore'
- }
- }
- },
- password: {
- validators: {
- notEmpty: {
- message: 'The password is required'
- },
- different: {
- field: 'username',
- message: 'The password cannot be the same as username'
- }
- }
- }
- }
- });
-
- $("#exampleBillingForm").formValidation({
- framework: 'bootstrap',
- fields: {
- number: {
- validators: {
- notEmpty: {
- message: 'The credit card number is required'
- }
- // creditCard: {
- // message: 'The credit card number is not valid'
- // }
- }
- },
- cvv: {
- validators: {
- notEmpty: {
- message: 'The CVV number is required'
- }
- // cvv: {
- // creditCardField: 'number',
- // message: 'The CVV number is not valid'
- // }
- }
- }
- }
- });
-
- // init the wizard
- var defaults = $.components.getDefaults("wizard");
- var options = $.extend(true, {}, defaults, {
- buttonsAppendTo: '.panel-body'
- });
-
- var wizard = $("#exampleWizardForm").wizard(options).data('wizard');
-
- // setup validator
- // http://formvalidation.io/api/#is-valid
- wizard.get("#exampleAccount").setValidator(function() {
- var fv = $("#exampleAccountForm").data('formValidation');
- fv.validate();
-
- if (!fv.isValid()) {
- return false;
- }
-
- return true;
- });
-
- wizard.get("#exampleBilling").setValidator(function() {
- var fv = $("#exampleBillingForm").data('formValidation');
- fv.validate();
-
- if (!fv.isValid()) {
- return false;
- }
-
- return true;
- });
- })();
-
-
- // Example Wizard Form Container
- // -----------------------------
- // http://formvalidation.io/api/#is-valid-container
- (function() {
- var defaults = $.components.getDefaults("wizard");
- var options = $.extend(true, {}, defaults, {
- onInit: function() {
- $('#exampleFormContainer').formValidation({
- framework: 'bootstrap',
- fields: {
- username: {
- validators: {
- notEmpty: {
- message: 'The username is required'
- }
- }
- },
- password: {
- validators: {
- notEmpty: {
- message: 'The password is required'
- }
- }
- },
- number: {
- validators: {
- notEmpty: {
- message: 'The credit card number is not valid'
- }
- }
- },
- cvv: {
- validators: {
- notEmpty: {
- message: 'The CVV number is required'
- }
- }
- }
- }
- });
- },
- validator: function() {
- var fv = $('#exampleFormContainer').data('formValidation');
-
- var $this = $(this);
-
- // Validate the container
- fv.validateContainer($this);
-
- var isValidStep = fv.isValidContainer($this);
- if (isValidStep === false || isValidStep === null) {
- return false;
- }
-
- return true;
- },
- onFinish: function() {
- // $('#exampleFormContainer').submit();
- },
- buttonsAppendTo: '.panel-body'
- });
-
- $("#exampleWizardFormContainer").wizard(options);
- })();
-
- // Example Wizard Pager
- // --------------------------
- (function() {
- var defaults = $.components.getDefaults("wizard");
-
- var options = $.extend(true, {}, defaults, {
- step: '.wizard-pane',
- templates: {
- buttons: function() {
- var options = this.options;
- var html = '
';
- return html;
- }
- },
- buttonLabels: {
- next: '',
- back: '',
- finish: ''
- },
-
- buttonsAppendTo: '.panel-actions'
- });
-
- $("#exampleWizardPager").wizard(options);
- })();
-
- // Example Wizard Progressbar
- // --------------------------
- (function() {
- var defaults = $.components.getDefaults("wizard");
-
- var options = $.extend(true, {}, defaults, {
- step: '.wizard-pane',
- onInit: function() {
- this.$progressbar = this.$element.find('.progress-bar').addClass('progress-bar-striped');
- },
- onBeforeShow: function(step) {
- step.$element.tab('show');
- },
- onFinish: function() {
- this.$progressbar.removeClass('progress-bar-striped').addClass('progress-bar-success');
- },
- onAfterChange: function(prev, step) {
- var total = this.length();
- var current = step.index + 1;
- var percent = (current / total) * 100;
-
- this.$progressbar.css({
- width: percent + '%'
- }).find('.sr-only').text(current + '/' + total);
- },
- buttonsAppendTo: '.panel-body'
- });
-
- $("#exampleWizardProgressbar").wizard(options);
- })();
-
- // Example Wizard Tabs
- // -------------------
- (function() {
- var defaults = $.components.getDefaults("wizard");
- var options = $.extend(true, {}, defaults, {
- step: '> .nav > li > a',
- onBeforeShow: function(step) {
- step.$element.tab('show');
- },
- classes: {
- step: {
- //done: 'color-done',
- error: 'color-error'
- }
- },
- onFinish: function() {
- alert('finish');
- },
- buttonsAppendTo: '.tab-content'
- });
-
- $("#exampleWizardTabs").wizard(options);
- })();
-
- // Example Wizard Accordion
- // ------------------------
- (function() {
- var defaults = $.components.getDefaults("wizard");
- var options = $.extend(true, {}, defaults, {
- step: '.panel-title[data-toggle="collapse"]',
- classes: {
- step: {
- //done: 'color-done',
- error: 'color-error'
- }
- },
- templates: {
- buttons: function() {
- return '';
- }
- },
- onBeforeShow: function(step) {
- step.$pane.collapse('show');
- },
-
- onBeforeHide: function(step) {
- step.$pane.collapse('hide');
- },
-
- onFinish: function() {
- alert('finish');
- },
-
- buttonsAppendTo: '.panel-collapse'
- });
-
- $("#exampleWizardAccordion").wizard(options);
- })();
-
-})(document, window, jQuery);
diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js
index 5e49f95..077c120 100644
--- a/assets/scripts/dashboard.js
+++ b/assets/scripts/dashboard.js
@@ -191,53 +191,42 @@ var Dashboard = function() {
var label_color = '';
var label_icon = '';
var wallettblContent = '';
- //console.log('== Data OutPut ==');
- //console.log(CoinHistoryData);
+ console.log('== Data OutPut ==');
+ console.log(CoinHistoryData);
- var testhistory = {"result":"success","received":[{"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":9.94390000,"numseconds":1410727,"details":{"txid":"e0330be4ec6f2fd27bc26c559524ccd808a589a0752e18618b358d288d62be3a","vout":1,"height":1195141,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.89000000,"numseconds":1340168,"details":{"txid":"46b210cd0d505e88b738d1ca09595e33dc435f11d53e0516566deb0a9e0de5ba","vout":1,"height":1196389,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.94590000,"numseconds":1340168,"details":{"txid":"67499f6ccefadf046e7e26b9a650f32b6dd472046356d79f35714f37482692d8","vout":1,"height":1196382,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.87900000,"numseconds":1319872,"details":{"txid":"2426d9e0d3643706c0709af8e5342106633030b59ef738cb75d3c19aebe51a40","vout":1,"height":1196766,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.97890000,"numseconds":1319871,"details":{"txid":"820b553726e055de46ee40652b86692be2c52fd561edf8a927ab012be46b4ed4","vout":1,"height":1196748,"relays":1}}],"sent":[{"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":9.94390000,"numseconds":1410727,"details":{"txid":"e0330be4ec6f2fd27bc26c559524ccd808a589a0752e18618b358d288d62be3a","vout":1,"height":1195141,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.89000000,"numseconds":1340168,"details":{"txid":"46b210cd0d505e88b738d1ca09595e33dc435f11d53e0516566deb0a9e0de5ba","vout":1,"height":1196389,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.94590000,"numseconds":1340168,"details":{"txid":"67499f6ccefadf046e7e26b9a650f32b6dd472046356d79f35714f37482692d8","vout":1,"height":1196382,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.87900000,"numseconds":1319872,"details":{"txid":"2426d9e0d3643706c0709af8e5342106633030b59ef738cb75d3c19aebe51a40","vout":1,"height":1196766,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.97890000,"numseconds":1319871,"details":{"txid":"820b553726e055de46ee40652b86692be2c52fd561edf8a927ab012be46b4ed4","vout":1,"height":1196748,"relays":1}}],"coin":"BTCD","balance":13.63770000,"tag":"10703025980307863381"};
- //console.log(testhistory.received[0]);
+ //var testhistory = {"result":"success","received":[{"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":9.94390000,"numseconds":1410727,"details":{"txid":"e0330be4ec6f2fd27bc26c559524ccd808a589a0752e18618b358d288d62be3a","vout":1,"height":1195141,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.89000000,"numseconds":1340168,"details":{"txid":"46b210cd0d505e88b738d1ca09595e33dc435f11d53e0516566deb0a9e0de5ba","vout":1,"height":1196389,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.94590000,"numseconds":1340168,"details":{"txid":"67499f6ccefadf046e7e26b9a650f32b6dd472046356d79f35714f37482692d8","vout":1,"height":1196382,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.87900000,"numseconds":1319872,"details":{"txid":"2426d9e0d3643706c0709af8e5342106633030b59ef738cb75d3c19aebe51a40","vout":1,"height":1196766,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.97890000,"numseconds":1319871,"details":{"txid":"820b553726e055de46ee40652b86692be2c52fd561edf8a927ab012be46b4ed4","vout":1,"height":1196748,"relays":1}}],"sent":[{"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":9.94390000,"numseconds":1410727,"details":{"txid":"e0330be4ec6f2fd27bc26c559524ccd808a589a0752e18618b358d288d62be3a","vout":1,"height":1195141,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.89000000,"numseconds":1340168,"details":{"txid":"46b210cd0d505e88b738d1ca09595e33dc435f11d53e0516566deb0a9e0de5ba","vout":1,"height":1196389,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.94590000,"numseconds":1340168,"details":{"txid":"67499f6ccefadf046e7e26b9a650f32b6dd472046356d79f35714f37482692d8","vout":1,"height":1196382,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.87900000,"numseconds":1319872,"details":{"txid":"2426d9e0d3643706c0709af8e5342106633030b59ef738cb75d3c19aebe51a40","vout":1,"height":1196766,"relays":1}}, {"address":"RCNL1GJuTVt88dgnuiwS7i51ztjYHpPKF2","amount":0.97890000,"numseconds":1319871,"details":{"txid":"820b553726e055de46ee40652b86692be2c52fd561edf8a927ab012be46b4ed4","vout":1,"height":1196748,"relays":1}}],"coin":"BTCD","balance":13.63770000,"tag":"10703025980307863381"};
+ var testhistory = {"result":"success","history":[{"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":0.02376752,"numseconds":5103473,"details":{"txid":"2a70dca9f0ba2bf77c9fe59cdc8538c7bf87eee077af687f3271a5461b087baa","vout":56,"height":1138822,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":0.01810419,"numseconds":5104375,"details":{"txid":"b66f4c51ca2ae08695171c7d9cbeca10b85d321a721895de3804aa7e204606b7","vout":56,"height":1138810,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":0.10304500,"numseconds":3900995,"details":{"txid":"9a85ec8b3d34eed29af054783120801f81d18aee2e596d3118dfc02d8ada77a4","vout":66,"height":1159828,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":0.02244710,"numseconds":3901699,"details":{"txid":"241c353c6e0b7dc43960d6b4a4fb9cc527e797335a5d6a8f0b03888f74081d03","vout":62,"height":1159817,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":256.85168445,"numseconds":3284547,"details":{"txid":"0a97fceed78efb91fc0cdbb14f7757ded296cd0bdc4d437303a4d56aa79a68c8","vout":2,"height":1170454,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":270.76000000,"numseconds":3288542,"details":{"txid":"0f09288c22a87e15e646f6b8bd6c486f0f3c07bce94fe98321b9e01faf369811","vout":1,"height":1170388,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":274.16000000,"numseconds":3298564,"details":{"txid":"f832780904d01445c7f28b82a1adffa4f0435c202b8a77a8be5bb3f5367e83d8","vout":1,"height":1170218,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":272.40878698,"numseconds":3299728,"details":{"txid":"7d45235130db08fdb3bcd3aec695a958749e8ada75087f98ce0dd7d2e3c8838f","vout":2,"height":1170203,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":137.10996017,"numseconds":3238596,"details":{"txid":"b2321bd1b472fe2cab5d3063e46ed630157a4a796c026e03b7ee82f5f641bf9c","vout":2,"height":1171264,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":137.09000000,"numseconds":3238596,"details":{"txid":"b2321bd1b472fe2cab5d3063e46ed630157a4a796c026e03b7ee82f5f641bf9c","vout":1,"height":1171264,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":135.39260510,"numseconds":3240926,"details":{"txid":"82fb07354dcde25d16d590a61374f18724b3393f79dae2c759f86540b87ca2b2","vout":2,"height":1171232,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":135.39000000,"numseconds":3240926,"details":{"txid":"82fb07354dcde25d16d590a61374f18724b3393f79dae2c759f86540b87ca2b2","vout":1,"height":1171232,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":274.19000000,"numseconds":3241822,"details":{"txid":"6102ac2775dec4dcf4775a6d0b195cd5fd8aec4b4c02a15072389ae4f5568740","vout":1,"height":1171211,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":128.42000000,"numseconds":3242717,"details":{"txid":"c08820095320f87e8e44079d7e192d3eac9db0bbd6deb5427fc44b7203482e2c","vout":1,"height":1171188,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":136.22436074,"numseconds":3195488,"details":{"txid":"9fb4af083d6a44d0fec4371c386ea6941b79c92aab9a49234bb417cf05d3a95f","vout":2,"height":1171992,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":136.21000000,"numseconds":3195488,"details":{"txid":"9fb4af083d6a44d0fec4371c386ea6941b79c92aab9a49234bb417cf05d3a95f","vout":1,"height":1171992,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":136.22394341,"numseconds":3197886,"details":{"txid":"a704433666022059b1c1cbff0dbb056b1ebbf50f4835a28c40cf2f2a43406f65","vout":2,"height":1171950,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":136.22000000,"numseconds":3197886,"details":{"txid":"a704433666022059b1c1cbff0dbb056b1ebbf50f4835a28c40cf2f2a43406f65","vout":1,"height":1171950,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":64.22669459,"numseconds":3199611,"details":{"txid":"edf827ab8aef2b62b2b7d72866bf8271407bf051ed799af52ce8429fae8e5bde","vout":2,"height":1171922,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":64.21000000,"numseconds":3199611,"details":{"txid":"edf827ab8aef2b62b2b7d72866bf8271407bf051ed799af52ce8429fae8e5bde","vout":1,"height":1171922,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":128.44353936,"numseconds":3201806,"details":{"txid":"89ce935417e49ce28bf7d5d31df166f576d97be4cb0ef72b409c2d570dc70147","vout":2,"height":1171880,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":128.43000000,"numseconds":3201806,"details":{"txid":"89ce935417e49ce28bf7d5d31df166f576d97be4cb0ef72b409c2d570dc70147","vout":1,"height":1171880,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":137.11374459,"numseconds":3206060,"details":{"txid":"a32ba7ca22fbb01b226dc21ffe3071a3ed11434e059a763b5a5dacb3e8000051","vout":2,"height":1171808,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":137.10000000,"numseconds":3206060,"details":{"txid":"a32ba7ca22fbb01b226dc21ffe3071a3ed11434e059a763b5a5dacb3e8000051","vout":1,"height":1171808,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":128.44940595,"numseconds":3210714,"details":{"txid":"edb8cf0079bcc41e7cca590ced45979fe2de72c97340d8fa140570f76aebdbb7","vout":2,"height":1171732,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":128.43000000,"numseconds":3210714,"details":{"txid":"edb8cf0079bcc41e7cca590ced45979fe2de72c97340d8fa140570f76aebdbb7","vout":1,"height":1171732,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":136.22036421,"numseconds":3219390,"details":{"txid":"8a101b692ff233d528d01f36ebfa7004beba02f98a157d2e55e2914df9bc87de","vout":2,"height":1171591,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":136.22000000,"numseconds":3219390,"details":{"txid":"8a101b692ff233d528d01f36ebfa7004beba02f98a157d2e55e2914df9bc87de","vout":1,"height":1171591,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":815.20263247,"numseconds":1984057,"details":{"txid":"be429824bb4d3c67956d7d7458d8485b8b6a529275f7b37221afc69ae9fbddfe","vout":1,"height":1193330,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":340.71761164,"numseconds":464110,"details":{"txid":"9cce9b4b570622fe03b521b4c798c7704fd457bbd4f36ac85ab8a2f74798e2fe","vout":1,"height":1221983,"relays":1}}, {"address":"REzqSJ7qonDbMVWfPEJKfRPduvfPyumkPR","amount":155.41088201,"numseconds":387136,"details":{"txid":"92b671a5381ba536357923859baa155a2cd1297a6f3afc7b904cd7ca26cff582","vout":1,"height":1223337,"relays":1}}],"coin":"BTCD","balance":5066.99357948,"tag":"15046830879277684209"};
+ //console.log(testhistory.history.reverse());
//console.log(testhistory.sent);
$('span[data-currency="' + AllcoinsDataOutput[value][index] + '"][id="currency-balance"]').text(CoinHistoryData.balance);
- $.each(testhistory.received, function(coin_history_index){
+ //var show_coin_history = CoinHistoryData; //Enable to get history from each coins's wallet address.
+ var show_coin_history = testhistory; //Enable to get history from just test variable.
+ $.each(show_coin_history.history.reverse(), function(coin_history_index){
//console.log(coin_history_index);
+ //console.log(show_coin_history.history[coin_history_index].details.vout);
+ var label_class = '';
+ var icon_arrow_direction = '';
+ var balance_text_color = '';
- wallettblContent += '';
- wallettblContent += ' | ';
- wallettblContent += '' + testhistory.received[coin_history_index].address + ' | ';
- wallettblContent += '' + testhistory.received[coin_history_index].numseconds + ' | ';
- wallettblContent += '' + testhistory.received[coin_history_index].amount + ' | ';
- wallettblContent += '
';
- $('#currency-tbl tbody').html(wallettblContent);
- });
-
- $.each(testhistory.sent, function(coin_history_index){
- //console.log(coin_history_index);
+ if ('vin' in show_coin_history.history[coin_history_index].details) { label_class = 'label-danger'; icon_arrow_direction = 'fa-arrow-left'; balance_text_color = '#f44336'; }
+ if ('vout' in show_coin_history.history[coin_history_index].details) { label_class = 'label-success'; icon_arrow_direction = 'fa-arrow-right'; balance_text_color = '#4caf50'; }
wallettblContent += '';
- wallettblContent += ' | ';
- wallettblContent += '' + testhistory.received[coin_history_index].address + ' | ';
- wallettblContent += '' + testhistory.received[coin_history_index].numseconds + ' ' + coin_history_index + ' | ';
- wallettblContent += '' + testhistory.received[coin_history_index].amount + ' | ';
+ wallettblContent += ' | ';
+ wallettblContent += '' + show_coin_history.history[coin_history_index].address + ' | ';
+ wallettblContent += '' + show_coin_history.history[coin_history_index].numseconds + ' | ';
+ wallettblContent += '' + show_coin_history.history[coin_history_index].amount + ' | ';
wallettblContent += '
';
$('#currency-tbl tbody').html(wallettblContent);
});
- var history_trans_merged = $.merge(testhistory.received, testhistory.sent)
- //console.log(history_trans_merged);
- $('span[data-currency="' + AllcoinsDataOutput[value][index] + '"][id="currency-nooftransactions"]').text(history_trans_merged.length);
- /*
- |
- 1LkTfkQLXg2v86oc1MoLz68nKoshh5ARTC |
- 24 mins |
- 1.9456783 |
-
*/
-
-
+ //console.log(show_coin_history.history.length);
+ $('span[data-currency="' + AllcoinsDataOutput[value][index] + '"][id="currency-nooftransactions"]').text(show_coin_history.history.length);
},
error: function(xhr, textStatus, error) {
console.log('failed getting Coin History.');