-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adicionando msgs de alertas necessários para o código.
- Loading branch information
agleicesousa
committed
Sep 7, 2024
1 parent
7733487
commit 916d284
Showing
5 changed files
with
104 additions
and
61 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,17 @@ | ||
// Script para inserir o ano atual no rodapé | ||
document.addEventListener('DOMContentLoaded', () => { | ||
document.getElementById('year').textContent = new Date().getFullYear(); | ||
}); | ||
|
||
// Script para mostrar alertas personalizados | ||
const alertButtons = document.querySelectorAll('.alertButton'); | ||
const authButtons = document.querySelectorAll('.auth-buttons button'); | ||
const searchButton = document.getElementById('newsletterButton'); | ||
const allButtons = [...alertButtons, ...authButtons, searchButton]; | ||
|
||
allButtons.forEach(button => { | ||
button.addEventListener('click', function () { | ||
const message = this.getAttribute('data-message'); | ||
alert(message); | ||
}); | ||
}); |
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