forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-01 15:58:05 +02:00
parent b2f006021f
commit 31b3af56f7
1 changed files with 5 additions and 7 deletions

View File

@ -28,13 +28,11 @@
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %} {% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
<script> <script>
window.addEventListener("load",function(event) { comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
comments = JSON.parse(localStorage.getItem("comment-counts")) || {} lastCount = comments['{{p.id}}']
lastCount = comments['{{p.id}}'] if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
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>'
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> </script>
{% endif %} {% endif %}