17 lines
426 B
JavaScript
17 lines
426 B
JavaScript
function copy() {
|
|
|
|
var copyText = document.querySelector("input#pubkey");
|
|
copyText.select();
|
|
document.execCommand("copy");
|
|
|
|
var successMsg = document.querySelector("#successMsg");
|
|
successMsg.style.opacity = "1";
|
|
/*successMsg.style.height = "3em";*/
|
|
|
|
var copyButton = document.querySelector("button#copy");
|
|
copyButton.style.animation = "none";
|
|
|
|
}
|
|
|
|
document.querySelector("button#copy").addEventListener("click", copy);
|