site/tem/html/snippets/footer.html
2024-11-03 02:30:33 -05:00

30 lines
No EOL
677 B
HTML

<div id='copyright' style='
padding-bottom: 16px 0;
font-family: "legible", sans-serif;
font-size: 10px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
'>
<div>
<a href='/license'>license</a>&nbsp;&nbsp;&nbsp;
<a href='/about'>about</a>
</div>
<div>
<span id='copyright_year'>&copy; 2018-_</span> <b>dofdev</b>
</div>
</div>
<script>
window.addEventListener('load', () => {
// replace _ in #copyright w/ current year
let date = new Date()
let year = date.getFullYear()
let c = elbyid('copyright_year')
c.innerHTML = c.innerHTML.replace('_', year)
})
</script>