Skip to content

Commit

Permalink
using js to populate copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
kineticac committed May 13, 2021
1 parent 7998d53 commit 27be572
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<footer class="center">
<div class="measure">
<small>
© 2021 SUNSHINE HEALTH STUDIOS LLC.
© <span id="year">2021</span> SUNSHINE HEALTH STUDIOS LLC.
</small>
</div>
</footer>
Expand All @@ -16,3 +16,10 @@
navigator.serviceWorker.register("{{ '/sw.js' | relative_url }}")
}
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', (event) => {
var d = new Date();
var n = d.getFullYear();
document.getElementById("year").innerHTML = n;
});
</script>

0 comments on commit 27be572

Please sign in to comment.