Skip to content

Commit

Permalink
Rodapé adicionado e cod. ano
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruz-Andre committed Dec 2, 2024
1 parent f6e8229 commit e5bd6c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ <h3 style="text-align: center;">

<br><br>

<footer>
<p style="font-family: Verdana, sans-serif; margin: 1rem 0;">&copy; André Cruz - 2024 / <span id="ano"></span></p>
</footer>

<script src="script.js"></script>
</body>

Expand Down
3 changes: 3 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ function clearError() {
const errorMessages = document.getElementById('errorMessages');
errorMessages.textContent = '';
}

const ano = document.getElementById('ano')
ano.textContent = new Date().getFullYear()

0 comments on commit e5bd6c4

Please sign in to comment.