-
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.
alteração tema escuro mconta mcursos
- Loading branch information
1 parent
a5765f8
commit 5a8d034
Showing
6 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
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
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
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,38 @@ | ||
const temaEscuro = document.querySelector(".tema-escuro") | ||
const input = document.querySelector(".input-pesquisa") | ||
const usuario = document.querySelector(".usuario") | ||
const Main = document.querySelector('.main') | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
temaEscuro.onclick = function(){ | ||
|
||
if (temaEscuro.textContent == "Tema Escuro"){ | ||
document.body.style.backgroundColor = "#282c27" | ||
temaEscuro.textContent = "Tema Claro" | ||
input.style.backgroundColor = "#282c27" | ||
input.style.color = "#FFFFFF" | ||
usuario.style.backgroundColor = "#282c27" | ||
usuario.style.color = "#FFFFFF" | ||
Main.style.color = "#FFFFFF" | ||
|
||
} else { | ||
document.body.style.backgroundColor = "#e8f8e6" | ||
temaEscuro.textContent = "Tema Escuro" | ||
input.style.backgroundColor = "#e8f8e6" | ||
input.style.color = "#000000" | ||
usuario.style.backgroundColor = "#e8f8e6" | ||
usuario.style.color = "#000000" | ||
Main.style.color = "#000000" | ||
|
||
|
||
|
||
} | ||
} | ||
console.log(temaEscuro) |
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,38 @@ | ||
const temaEscuro = document.querySelector(".tema-escuro") | ||
const input = document.querySelector(".input-pesquisa") | ||
const usuario = document.querySelector(".usuario") | ||
const Main = document.querySelector('.main') | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
temaEscuro.onclick = function(){ | ||
|
||
if (temaEscuro.textContent == "Tema Escuro"){ | ||
document.body.style.backgroundColor = "#282c27" | ||
temaEscuro.textContent = "Tema Claro" | ||
input.style.backgroundColor = "#282c27" | ||
input.style.color = "#FFFFFF" | ||
usuario.style.backgroundColor = "#282c27" | ||
usuario.style.color = "#FFFFFF" | ||
Main.style.color = "#FFFFFF" | ||
|
||
} else { | ||
document.body.style.backgroundColor = "#e8f8e6" | ||
temaEscuro.textContent = "Tema Escuro" | ||
input.style.backgroundColor = "#e8f8e6" | ||
input.style.color = "#000000" | ||
usuario.style.backgroundColor = "#e8f8e6" | ||
usuario.style.color = "#000000" | ||
Main.style.color = "#000000" | ||
|
||
|
||
|
||
} | ||
} | ||
console.log(temaEscuro) |
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
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