Skip to content

Commit

Permalink
script para atualizar automaticamente o ano - footer
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Mar 29, 2024
1 parent 35e57d4 commit 9fca3c5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
<div class="Container">
<h1>HTML5 e CSS3</h1>
<h2>Você faz. Você vê. Você aprende.</h2>
<a href="https://youtube.com/playlist?list=PLbEOwbQR9lqySIIlPJ-Qwo4f4HSuXVeWk&si=WD8y1YWCcnSZPNHm" target="_blank" class="Botao">Saiba +</a>
<a href="https://youtube.com/playlist?list=PLbEOwbQR9lqySIIlPJ-Qwo4f4HSuXVeWk&si=WD8y1YWCcnSZPNHm"
target="_blank" class="Botao">Saiba +</a>
</div>
</main>
<!-- Sobre -->
Expand Down Expand Up @@ -162,7 +163,7 @@ <h3>BREAKPOINTS</h3>
<footer>
<div class="Container Flex5">
<div>
<p>&#169;2024 - <a href="https://joseassis.com.br/" target="_blank">Professor José de Assis</a></p>
<p>&#169;<span id="copyrightYear"></span> - <a href="https://joseassis.com.br/" target="_blank">Professor José de Assis</a></p>
</div>
<div id="social">
<a href="https://www.youtube.com/c/RoboticapraticaBr" target="_blank"><img src="img/youtube.png"
Expand All @@ -178,6 +179,13 @@ <h3>BREAKPOINTS</h3>
</div>
</footer>
<a href="#inicio" id="topo"><img src="img/topo.png" alt="topo do site"></a>

<script>
// Atualizar automaticamente o ano (footer - copyright)
let ano = document.getElementById("copyrightYear")
let anoAtual = new Date().getFullYear()
ano.textContent = anoAtual
</script>
</body>

</html>
</html>

0 comments on commit 9fca3c5

Please sign in to comment.