Added alert to confirm when wallet addresses are added to clipboard
This commit is contained in:
6
app.js
6
app.js
@@ -28,16 +28,22 @@ const dogeadd = document.getElementById("dogewall").textContent;
|
||||
document.getElementById("btcwall").addEventListener("click", function(){
|
||||
// Copy BTC address to clipboard
|
||||
navigator.clipboard.writeText(btcadd);
|
||||
// Display alert to confirm the address was added to clipboard
|
||||
alert("BTC address copied to clipboard");
|
||||
});
|
||||
|
||||
// Watch for click on ETH wallet address
|
||||
document.getElementById("ethwall").addEventListener("click", function(){
|
||||
// Copy ETH address to clipboard
|
||||
navigator.clipboard.writeText(ethadd);
|
||||
// Display alert to confirm the address was added to clipboard
|
||||
alert("ETH address copied to clipboard");
|
||||
});
|
||||
|
||||
// Watch for click on DOGE wallet address
|
||||
document.getElementById("dogewall").addEventListener("click", function(){
|
||||
// Copy DOGE address to clipboard
|
||||
navigator.clipboard.writeText(dogeadd);
|
||||
// Display alert to confirm the address was added to clipboard
|
||||
alert("DOGE address copied to clipboard");
|
||||
});
|
||||
|
Reference in New Issue
Block a user