From a8be1f4fb9344bbcf0ff2bf1904cbbd2aa35cae7 Mon Sep 17 00:00:00 2001 From: Ayanami Date: Tue, 24 May 2022 14:33:39 +0900 Subject: [PATCH] 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');