File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ <h2>Coming Soon</h2>
44
44
</ ul >
45
45
</ section >
46
46
< script type ="text/javascript ">
47
- const countDate = new Date ( 'May 31,2023 00:00:00' ) . getTime ( ) ;
47
+ const countDate = new Date ( new Date ( ) . getFullYear ( ) + 1 , new Date ( ) . getMonth ( ) ) . getTime ( ) ;
48
48
49
49
function cd ( ) {
50
50
const now = new Date ( ) . getTime ( ) ;
51
- gap = countDate - now ;
51
+ const gap = countDate - now ;
52
52
const second = 1000 ;
53
53
const minute = second * 60 ;
54
54
const hour = minute * 60 ;
@@ -57,10 +57,10 @@ <h2>Coming Soon</h2>
57
57
const h = Math . floor ( ( gap % ( day ) ) / ( hour ) ) ;
58
58
const m = Math . floor ( ( gap % ( hour ) ) / ( minute ) ) ;
59
59
const s = Math . floor ( ( gap % ( minute ) ) / second ) ;
60
- document . getElementById ( 'day' ) . innerText = d ;
61
- document . getElementById ( 'hour' ) . innerText = h ;
62
- document . getElementById ( 'minute' ) . innerText = m ;
63
- document . getElementById ( 'second' ) . innerText = s ;
60
+ document . getElementById ( 'day' ) . innerText = d . toString ( ) ;
61
+ document . getElementById ( 'hour' ) . innerText = h . toString ( ) ;
62
+ document . getElementById ( 'minute' ) . innerText = m . toString ( ) ;
63
+ document . getElementById ( 'second' ) . innerText = s . toString ( ) ;
64
64
}
65
65
66
66
setInterval ( function ( ) {
You can’t perform that action at this time.
0 commit comments