Skip to content

Commit a80708a

Browse files
committed
💅polish
1 parent 3d21569 commit a80708a

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

‎layouts/shortcodes/timer/timer.html‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
btn.disabled = true;
1414
var label = btn.nextElementSibling;
1515
var countdown = 30;
16-
label.textContent = " Redirecting in " + countdown + "s...";
16+
label.textContent = " Downloading in " + countdown + "sec ...";
1717
var timer = setInterval(function () {
1818
countdown--;
19-
label.textContent = " Redirecting in " + countdown + "s...";
19+
label.textContent = " Downloading in " + countdown + "sec ...";
2020
if (countdown <= 0) {
2121
clearInterval(timer);
2222
window.location.href = btn.getAttribute("data-link");
@@ -50,8 +50,26 @@
5050
cursor: not-allowed;
5151
}
5252
.timer-label {
53+
margin-top: 1.5rem;
5354
margin-left: 10px;
5455
color: #333;
5556
font-weight: bold;
57+
display: block;
58+
text-align: center;
59+
}
60+
61+
html:is(.dark) {
62+
.timer-btn {
63+
background: #3399ff;
64+
color: #eee;
65+
border: none;
66+
}
67+
.timer-btn:disabled {
68+
background: #555;
69+
cursor: not-allowed;
70+
}
71+
.timer-label {
72+
color: #ccc;
73+
}
5674
}
5775
</style>

0 commit comments

Comments
 (0)