File tree 1 file changed +20
-3
lines changed
1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 11
11
< link rel ="apple-touch-icon " href ="images/nightell.jpg ">
12
12
< link rel ="icon " href ="images/nightell-bw.jpg ">
13
13
</ head >
14
- < body >
14
+ < body onload =" startCountdown() " >
15
15
16
16
< svg xmlns ="http://www.w3.org/2000/svg " class ="d-none ">
17
17
< symbol id ="arrow-right-circle " viewBox ="0 0 16 16 ">
29
29
30
30
< main class ="mt-4 ">
31
31
< 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 >
33
37
< ul class ="list-unstyled ps-0 ">
34
38
< li >
35
39
< 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
50
54
< script src ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.bundle.min.js "
51
55
integrity ="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz "
52
56
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 >
54
71
</ body >
55
72
</ html >
You can’t perform that action at this time.
0 commit comments