Skip to content

Commit 1d198f1

Browse files
committed
update homepage
1 parent e4a1af8 commit 1d198f1

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

web/android.html

+20-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="apple-touch-icon" href="images/nightell.jpg">
1212
<link rel="icon" href="images/nightell-bw.jpg">
1313
</head>
14-
<body>
14+
<body onload="startCountdown()">
1515

1616
<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
1717
<symbol id="arrow-right-circle" viewBox="0 0 16 16">
@@ -29,7 +29,11 @@
2929

3030
<main class="mt-4">
3131
<h1 class="text-body-emphasis mb-5 text-center">Download Nightell for Android</h1>
32-
<p>To proceed with downloading the Nightell app for Android devices, click the link below:</p>
32+
<p>
33+
To proceed with downloading the Nightell app for Android devices,
34+
you will be redirected in <span id="countdown">5</span> seconds...
35+
</p>
36+
<p>If the redirection does not work, please click the link below:</p>
3337
<ul class="list-unstyled ps-0">
3438
<li>
3539
<a class="icon-link mb-1" rel="nofollow"
@@ -50,6 +54,19 @@ <h1 class="text-body-emphasis mb-5 text-center">Download Nightell for Android</h
5054
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
5155
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
5256
crossorigin="anonymous"></script>
53-
57+
<script>
58+
function startCountdown() {
59+
let counter = 5;
60+
const countdownElement = document.getElementById('countdown');
61+
const interval = setInterval(function () {
62+
countdownElement.textContent = `${counter}`;
63+
counter--;
64+
if (counter < 0) {
65+
clearInterval(interval);
66+
window.location.href = "https://play.google.com/store/apps/details?id=com.neatplex.nightell";
67+
}
68+
}, 1000);
69+
}
70+
</script>
5471
</body>
5572
</html>

0 commit comments

Comments
 (0)