Skip to content

Commit 9483267

Browse files
committed
agora foi
1 parent d3a6425 commit 9483267

30 files changed

+169
-565
lines changed

_config.yml

-1
This file was deleted.

app.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
const secondsContainer = document.querySelector('#seconds')
2+
const minutesContainer = document.querySelector('#minutes')
3+
const hoursContainer = document.querySelector('#hours')
4+
const daysContainer = document.querySelector('#days')
5+
const fogosloading = document.querySelector('#loading')
6+
const countdownConteiner = document.querySelector('#countdown')
7+
8+
9+
const nextmonth = new Date().getFullYear()
10+
const newYearTime = new Date(`February 23 ${nextmonth} 00:00:00`)
11+
12+
const insertContdowValues = ({ days, hours, minutes, seconds }) => {
13+
secondsContainer.textContent = seconds < 10 ? '0' + seconds : seconds
14+
minutesContainer.textContent = minutes < 10 ? '0' + minutes : minutes
15+
hoursContainer.textContent = hours< 10 ? '0' + hours : hours
16+
daysContainer .textContent = days < 10 ? '0' + days : days
17+
}
18+
19+
20+
21+
const updadeCountdown = () => {
22+
const currentTime = new Date()
23+
const diffenrence = newYearTime - currentTime
24+
const days = Math.floor(diffenrence / 1000 / 60 / 60 / 24)
25+
const hours = Math.floor(diffenrence / 1000 / 60 / 60 ) % 24
26+
const minutes = Math.floor(diffenrence / 1000 / 60) % 60
27+
const seconds = Math.floor(diffenrence / 1000) % 60
28+
29+
insertContdowValues({ days, hours, minutes, seconds })
30+
}
31+
32+
const handleCountdowDisplay = () => {
33+
fogosloading.remove()
34+
countdownConteiner.style.display = 'flex'
35+
}
36+
37+
setTimeout(handleCountdowDisplay, 3500)
38+
39+
setInterval(updadeCountdown, 1000)

blogs/Racismo.html

-14
This file was deleted.

blogs/ajuda.html

-78
This file was deleted.

blogs/bullying.html

-52
This file was deleted.

blogs/deficiências.html

-57
This file was deleted.

blogs/estilos/style.css

-29
This file was deleted.

blogs/estilos/style3.css

-29
This file was deleted.
Binary file not shown.
-19.3 KB
Binary file not shown.
Binary file not shown.

blogs/imagens/micacalala-michi.gif

-108 KB
Binary file not shown.

blogs/imagens/rip-dead.png

-106 KB
Binary file not shown.

blogs/imagens/teste.png.jpg

-174 KB
Binary file not shown.

blogs/imagens/waiting-be-patient.gif

-20.1 KB
Binary file not shown.

blogs/pobresa menstrual.html

-25
This file was deleted.

blogs/relato bruna.html

-33
This file was deleted.

0 commit comments

Comments
 (0)