document.addEventListener("DOMContentLoaded", function() {
var countdownDiv = document.getElementById("countdown-alert");
if (countdownDiv) {
countdownDiv.addEventListener('contextmenu', function(event) {
event.preventDefault();
});
var noticeDiv = countdownDiv.querySelector(".pk-alert");
if (noticeDiv) {
var secondsLeft = parseInt(noticeDiv.innerText.match(/\d+/)[0]);
var countdownInterval = setInterval(function() {
noticeDiv.innerHTML = "Wait " + secondsLeft + " seconds to unlock the download link...";
secondsLeft--;
if (secondsLeft < 0) {
clearInterval(countdownInterval);
var dlDiv = document.getElementById("dl-b");
if (dlDiv) {
dlDiv.style.display = "block";
console.log("Download unlocked!");
}
}
}, 1000);
}
}
});