~cofob/AlfisViewer

d4ad460fb990365c50012d9c637bef1356e6e32b — Vasiliy Petrov 2 years ago da20cc1
Remove useless update countdown
2 files changed, 1 insertions(+), 12 deletions(-)

M static/js/all.js
M templates/footer.html
M static/js/all.js => static/js/all.js +0 -11
@@ 88,14 88,3 @@ function set_lang(lang) {
        }
    })
}

function refreshCountdown() {
    let obj = document.getElementById("refreshCountdown");
    let i = parseInt(obj.innerText);
    if (i != 0) {
        obj.innerText = i-1;
        setTimeout(refreshCountdown, 1000);
    }
}

setTimeout(refreshCountdown, 1000);

M templates/footer.html => templates/footer.html +1 -1
@@ 3,7 3,7 @@
    <a href="https://sr.ht/~cofob/AlfisViewer">{% trans "Source code" %}.</a>
    {% trans "Made with" %}
    <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-heart-fill" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z"/></svg>
    {% trans "by cofob" %}. {% trans "Site refresh in" %} <span id="refreshCountdown">{{ UPDATE_IN }}</span>.
    {% trans "by cofob" %}.
    <a href="{% url 'block_list' %}">{{ BLOCK_COUNT }}</a> {% trans "blocks" %}.
    <a href="{% url 'domain_list' %}">{{ DOMAIN_COUNT }}</a> {% trans "domains" %}.
    {% trans "Version" %} {{ COMMIT_HASH }}.