footer snippet
This commit is contained in:
parent
2007a27303
commit
480978dacc
1 changed files with 30 additions and 0 deletions
30
tem/html/snippets/footer.html
Normal file
30
tem/html/snippets/footer.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<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>
|
||||
<a href='/about'>about</a>
|
||||
</div>
|
||||
<div>
|
||||
<span id='copyright_year'>© 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>
|
Loading…
Add table
Reference in a new issue