From 06de7d3b9a60532d444a7f2e30cb279d80a6a383 Mon Sep 17 00:00:00 2001 From: Ayanami Date: Mon, 23 May 2022 03:54:54 +0900 Subject: [PATCH 1/2] Add copy button for generated address / private key --- index.html | 4 ++++ js/coinbin.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/index.html b/index.html index a5c5fa4..c7be4aa 100644 --- a/index.html +++ b/index.html @@ -312,6 +312,7 @@ + @@ -322,6 +323,7 @@ + @@ -384,6 +386,7 @@ + @@ -398,6 +401,7 @@ + diff --git a/js/coinbin.js b/js/coinbin.js index 393b63f..c2fd51f 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1799,6 +1799,10 @@ $(document).ready(function() { $("input[type='password']",$(this).parent().parent()).attr('type','text'); }); + $(".copyKey").click(function(){ + navigator.clipboard.writeText($("input",$(this).parent().parent()).val()); + }); + $("#homeBtn").click(function(e){ e.preventDefault(); history.pushState(null, null, '#home'); From a8be1f4fb9344bbcf0ff2bf1904cbbd2aa35cae7 Mon Sep 17 00:00:00 2001 From: Ayanami Date: Tue, 24 May 2022 14:33:39 +0900 Subject: [PATCH 2/2] Add copy button for generated / signed transaction --- index.html | 8 +++++--- js/coinbin.js | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c7be4aa..11e2f49 100644 --- a/index.html +++ b/index.html @@ -780,11 +780,12 @@ @@ -1327,11 +1328,12 @@ diff --git a/js/coinbin.js b/js/coinbin.js index c2fd51f..c61230d 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1803,6 +1803,14 @@ $(document).ready(function() { navigator.clipboard.writeText($("input",$(this).parent().parent()).val()); }); + $(".copyGenerated").click(function(){ + navigator.clipboard.writeText($("#generated-transaction").val()); + }); + + $(".copySigned").click(function(){ + navigator.clipboard.writeText($("#signed-transaction").val()); + }); + $("#homeBtn").click(function(e){ e.preventDefault(); history.pushState(null, null, '#home');