-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.js
More file actions
24 lines (21 loc) · 715 Bytes
/
Copy pathapp.js
File metadata and controls
24 lines (21 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
let roninIcon = document.getElementById('ronin');
let ad = document.querySelector('.ad');
let btnStarted = document.querySelector('.btn');
function hideAd() {
ad.classList.remove('show_ad');
}
function copyAddress() {
navigator.clipboard.writeText('0xd70e7713a2b21fbb525e2674aebfa7087a5d2d50')
.then(() => {
console.log('Texto copiado al portapapeles')
ad.classList.add('show_ad');
setTimeout(hideAd, 2000);
})
.catch(err => {
console.error('Error al copiar al portapapeles:', err)
})
}
roninIcon.addEventListener('click', copyAddress);
btnStarted.addEventListener('click', ()=>{
window.location.href = "https://refh4ck.github.io/pixels_land_tracker/src/tracker/tracker.html";
});