-
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.
feat: adiciona modal de configurações, possibilidade de desativar som…
… da roleta e mantém o rodapé fixo
- Loading branch information
1 parent
51a6efb
commit ce9bf1b
Showing
4 changed files
with
172 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const btnOpenConfigModal = document.querySelector("#openConfigModal"); | ||
const btnCloseConfigModal = document.querySelector("#closeConfigModal"); | ||
const configModal = document.querySelector("#configModal"); | ||
|
||
function openConfigModal() { | ||
configModal.style.display = "flex"; | ||
document.body.style.overflow = "hidden"; | ||
} | ||
|
||
function closeConfigModal() { | ||
configModal.style.display = "none"; | ||
document.body.style.overflow = "auto"; | ||
} | ||
|
||
btnOpenConfigModal.addEventListener("click", openConfigModal); | ||
btnCloseConfigModal.addEventListener("click", closeConfigModal); |
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