Spaces:
Running
Running
File size: 1,308 Bytes
8621aa3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
window.onload = function() {
document.getElementById('joinModal').style.display = 'none';
document.getElementById('copyModal').style.display = 'none';
}
function openModal() {
document.getElementById('joinModal').style.display = 'flex';
}
function openCopyModal() {
document.getElementById('joinModal').style.display = 'none';
document.getElementById('copyModal').style.display = 'flex';
if (document.getElementById('dontShowCheckbox').checked) {
localStorage.setItem('dontShowPopup', true);
}
}
function closeModal() {
document.getElementById('joinModal').style.display = 'none';
document.getElementById('copyModal').style.display = 'none';
if (document.getElementById('dontShowCheckbox').checked) {
localStorage.setItem('dontShowPopup', true);
}
}
function copyLink() {
const copyText = document.getElementById('discordLink').textContent;
navigator.clipboard.writeText(copyText).then(function() {
alert("Discord link copied to clipboard!");
}, function() {
alert("Failed to copy the link.");
});
}
// Clr data
function openClrModal() {
document.getElementById('clr-data-model').style.display = 'flex';
}
function closeClrModal() {
document.getElementById('clr-data-model').style.display = 'none';
}
|