feat: proposed cache WIP ?
moved the countdown section
This commit is contained in:
parent
e6383d64c8
commit
15164c6aa1
7 changed files with 145 additions and 28 deletions
|
|
@ -8,7 +8,9 @@ const secondsContainer = document.getElementById('seconds')
|
|||
|
||||
let shown = false
|
||||
|
||||
const enableReload = window.location.pathname.indexOf('c') === -1
|
||||
//const enableReload = window.location.pathname.indexOf('c') === -1
|
||||
|
||||
enableReload = true
|
||||
|
||||
function render() {
|
||||
let current = new Date()
|
||||
|
|
@ -30,7 +32,8 @@ function render() {
|
|||
seconds = (String(seconds).length >= 2) ? seconds : '0' + seconds
|
||||
|
||||
if (openDate <= current && enableReload) {
|
||||
window.location.reload(false)
|
||||
console.log('FINISHED!')
|
||||
window.location = '/'
|
||||
} else {
|
||||
daysContainer.textContent = days
|
||||
hoursContainer.textContent = hours
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue