-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3a6425
commit 9483267
Showing
30 changed files
with
169 additions
and
565 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const secondsContainer = document.querySelector('#seconds') | ||
const minutesContainer = document.querySelector('#minutes') | ||
const hoursContainer = document.querySelector('#hours') | ||
const daysContainer = document.querySelector('#days') | ||
const fogosloading = document.querySelector('#loading') | ||
const countdownConteiner = document.querySelector('#countdown') | ||
|
||
|
||
const nextmonth = new Date().getFullYear() | ||
const newYearTime = new Date(`February 23 ${nextmonth} 00:00:00`) | ||
|
||
const insertContdowValues = ({ days, hours, minutes, seconds }) => { | ||
secondsContainer.textContent = seconds < 10 ? '0' + seconds : seconds | ||
minutesContainer.textContent = minutes < 10 ? '0' + minutes : minutes | ||
hoursContainer.textContent = hours< 10 ? '0' + hours : hours | ||
daysContainer .textContent = days < 10 ? '0' + days : days | ||
} | ||
|
||
|
||
|
||
const updadeCountdown = () => { | ||
const currentTime = new Date() | ||
const diffenrence = newYearTime - currentTime | ||
const days = Math.floor(diffenrence / 1000 / 60 / 60 / 24) | ||
const hours = Math.floor(diffenrence / 1000 / 60 / 60 ) % 24 | ||
const minutes = Math.floor(diffenrence / 1000 / 60) % 60 | ||
const seconds = Math.floor(diffenrence / 1000) % 60 | ||
|
||
insertContdowValues({ days, hours, minutes, seconds }) | ||
} | ||
|
||
const handleCountdowDisplay = () => { | ||
fogosloading.remove() | ||
countdownConteiner.style.display = 'flex' | ||
} | ||
|
||
setTimeout(handleCountdowDisplay, 3500) | ||
|
||
setInterval(updadeCountdown, 1000) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-31.6 KB
blogs/imagens/Recycling turns things into other things, which is almost magical..pdf
Binary file not shown.
Binary file removed
BIN
-476 KB
.../imagens/Recycling turns things into other things, which is almost magical..png
Binary file not shown.
Binary file removed
BIN
-979 Bytes
blogs/imagens/b5e8708b708ab3cccb704db3894ebca1f699b061r1-320-320_hq.gif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.