remotes/1693045480750635534/spooky-22
Aevann1 2021-12-01 15:59:27 +02:00
parent 31b3af56f7
commit d0ff7cf8e9
3 changed files with 9 additions and 7 deletions

View File

@ -28,11 +28,13 @@
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
<script>
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
document.getElementById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Unread"></i>'
}
window.addEventListener("load",function(event) {
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
document.getElementById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Unread"></i>'
}
});
</script>
{% endif %}

View File

@ -30,7 +30,7 @@
</script>
{% endif %}
<script defer src="/assets/js/new_comments_count.js?v=53"></script>
<script src="/assets/js/new_comments_count.js?v=53"></script>
{% if p.award_count("train") %}
<style>

View File

@ -4,7 +4,7 @@
{% set cc='COUNTRY CLUB' %}
{% endif %}
<script defer src="/assets/js/new_comments_count.js?v=53"></script>
<script src="/assets/js/new_comments_count.js?v=53"></script>
{% for p in listing %}