From 916d28475f508a621c6fc971aa4700240ad0435e Mon Sep 17 00:00:00 2001 From: agleicesousa Date: Sat, 7 Sep 2024 05:53:55 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20adicionando=20msgs=20de=20alertas=20nec?= =?UTF-8?q?ess=C3=A1rios=20para=20o=20c=C3=B3digo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 24 ++++++--------- script.js | 17 +++++++++++ src/pages/filmes/index.html | 60 +++++++++++++++++-------------------- src/pages/filmes/script.js | 48 ++++++++++++++++++++++------- src/pages/filmes/style.css | 16 ++++++++-- 5 files changed, 104 insertions(+), 61 deletions(-) create mode 100644 script.js diff --git a/index.html b/index.html index 5e90ed5..95bf9ac 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + CinemaFlix @@ -19,13 +19,13 @@

CinemaFlix

- - + +
@@ -36,23 +36,17 @@

Maratonas Sem Fim, Emoções Inigualáveis!

Inscreva-se agora e seja o primeiro a receber novidades e surpresas exclusivas no seu e-mail!

- +
- - + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..877d1e2 --- /dev/null +++ b/script.js @@ -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); + }); +}); \ No newline at end of file diff --git a/src/pages/filmes/index.html b/src/pages/filmes/index.html index ed62f00..970e8cc 100644 --- a/src/pages/filmes/index.html +++ b/src/pages/filmes/index.html @@ -4,34 +4,34 @@ - + - + CinemaFlix -
+
+
- - + +
-
+
+
@@ -41,24 +41,27 @@

CinemaFlix

+
-
+
-