From 06de7d3b9a60532d444a7f2e30cb279d80a6a383 Mon Sep 17 00:00:00 2001 From: Ayanami Date: Mon, 23 May 2022 03:54:54 +0900 Subject: [PATCH] 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');