<div class="offer-box">
<button id="offerBtn" class="offer-btn">
🎁 Get Offer
</button>
<div id="countdownBox" class="countdown-box">
<div class="loader"></div>
<span id="countdownText">
Redirecting in <strong>8</strong> seconds...
</span>
</div>
</div>
<style>
.offer-box{
text-align:center;
margin:30px auto;
}
.offer-btn{
background:linear-gradient(135deg,#00c853,#00e676);
color:#fff;
border:none;
padding:16px 45px;
font-size:20px;
font-weight:700;
border-radius:60px;
cursor:pointer;
transition:.3s;
box-shadow:0 10px 25px rgba(0,200,83,.35);
}
.offer-btn:hover{
transform:translateY(-3px);
box-shadow:0 15px 35px rgba(0,200,83,.45);
}
.offer-btn:disabled{
opacity:.8;
cursor:not-allowed;
}
.countdown-box{
display:none;
margin-top:18px;
background:#fff;
padding:14px 20px;
border-radius:14px;
box-shadow:0 8px 25px rgba(0,0,0,.12);
width:fit-content;
margin-left:auto;
margin-right:auto;
align-items:center;
gap:12px;
font-size:17px;
font-weight:600;
color:#333;
}
.loader{
width:24px;
height:24px;
border:3px solid #ddd;
border-top:3px solid #00c853;
border-radius:50%;
animation:spin 1s linear infinite;
}
#countdownText strong{
color:#00c853;
font-size:22px;
}
@keyframes spin{
100%{
transform:rotate(360deg);
}
}
</style>
<script>
const btn = document.getElementById("offerBtn");
const box = document.getElementById("countdownBox");
const text = document.getElementById("countdownText");
btn.addEventListener("click", function(){
btn.disabled = true;
btn.innerHTML = "⏳ Please Wait...";
box.style.display = "inline-flex";
let time = 8;
const timer = setInterval(function(){
text.innerHTML = `Redirecting in <strong>${time}</strong> seconds...`;
if(time===0){
clearInterval(timer);
window.location.href="https://url.hk/en/gift/E2WG33Y3TLYH";
}
time--;
},1000);
});
</script>

Post a Comment