From b1603821dabaaae9dafee85738b17e8e138306e5 Mon Sep 17 00:00:00 2001 From: OutCast3k Date: Sun, 1 Oct 2017 18:06:57 +0000 Subject: [PATCH] at the risk of upsetting some users segwit addresses have now been enabled by default in the #wallet section, with the option to switch between legacy and segwit very easily. --- index.html | 12 ++++++++++-- js/coinbin.js | 18 +++++++++++++++++- sha1sum | 9 ++++++--- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 81f64c8..353ac49 100644 --- a/index.html +++ b/index.html @@ -156,7 +156,7 @@ @@ -174,7 +174,15 @@

- + + +
+ + +

diff --git a/js/coinbin.js b/js/coinbin.js index 5238998..2d1c180 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -6,6 +6,8 @@ $(document).ready(function() { var explorer_addr = "https://coinb.in/addr/" var explorer_block = "https://coinb.in/block/" + var wallet_timer = false; + $("#openBtn").click(function(){ var email = $("#openEmail").val().toLowerCase(); if(email.match(/[\s\w\d]+@[\s\w\d]+/g)){ @@ -88,6 +90,19 @@ $(document).ready(function() { $("#openLoginStatus").html("").hide(); }); + $("#walletToSegWit").click(function(){ + $("#walletToBtn").html('SegWit '); + $("#walletSegwit")[0].checked = true; + $("#openBtn").click(); + }); + + $("#walletToLegacy").click(function(){ + $("#walletToBtn").html('Legacy '); + $("#walletSegwit")[0].checked = false; + $("#openBtn").click(); + }); + + $("#walletShowKeys").click(function(){ $("#walletKeys").removeClass("hidden"); $("#walletSpend").removeClass("hidden").addClass("hidden"); @@ -262,7 +277,8 @@ $(document).ready(function() { } function checkBalanceLoop(){ - setTimeout(function(){ + clearTimeout(wallet_timer); + wallet_timer = setTimeout(function(){ if($("#walletLoader").hasClass("hidden")){ walletBalance(); } diff --git a/sha1sum b/sha1sum index 90df398..3837299 100644 --- a/sha1sum +++ b/sha1sum @@ -1,8 +1,8 @@ ----- Version 1.3 2017.09.21 ---- +---- Version 1.3 2017.10.01 ---- 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js -3ac0e33ea28610e6f784658efcd88802bdd18119 ./js/coinbin.js +e25332acfd75cb76139a5f9ebe268fa7374e8989 ./js/coinbin.js 494cefb8d6e59415ad25587de87a3dd1c055855e ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js @@ -30,4 +30,7 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s 278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff 44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf d8a324a13501cd5705dc26b945fc8088f00907ae ./README.md -45bb7cbfe003039b3e527ecc38a18786de55a843 ./index.html +fa37c3b94927a222abf589a1c16129a3a3f4b4ab ./index.html + + +