{{ define "footer" }}
<footer>
    <div>
        <img src="/assets/pic/UkkUKhV.gif?v={{ .version }}" width="100%" height="100%">
    </div>
    <div>
        <p>
            and also you can subscribe to my <a href="https://t.me/lolistack" target="_blank">telegram channel</a> with pictures!
        </p>
    </div>
    <div>
        <p>
            <strong>some system information</strong>:
        </p>
        <p>
            > unix timestamp of page rendering: <code>{{ .renderingTimestamp }}</code><br/>
            > <code>curl -X LIMINAL https://hikan.ru</code> - what do you know about liminal spaces<br/>
            > this site code repository - <a href="https://git.hikan.ru/serr/hikan.ru" target="_blank">git.hikan.ru/serr/hikan.ru</a><br/>
            > 24-hour server request count (<code>curl -X COUNT https://hikan.ru</code>):         
        </p>
        <p class="count">
            <img src="/assets/pic/1.gif?v={{ .version }}">
            <img src="/assets/pic/2.gif?v={{ .version }}">
            <img src="/assets/pic/0.gif?v={{ .version }}">
            <img src="/assets/pic/3.gif?v={{ .version }}">
        </p>
    </div>
    <div>
        <p>
            this site is written in Go, hosting is <a href="https://htk.ge" target="_blank">hostetski</a>, domain bought for the price of a can of beer
        </p>
        <p>
            <code>2024 - now</code>
        </p>
    </div>
</footer>
<script>
fetch('/', {method: 'COUNT'})
    .then(r => r.text())
    .then(num => num.trim())
    .then(number => {
        if (number.length > 0) {
            document.querySelector('p.count').innerHTML = 
            [...number].map(d => `<img src="/assets/pic/${d}.gif?v={{ .version }}">`).join('');
        }
    })
    .catch(console.error);
</script>
{{ end }}
