forked from rDrama/rDrama
fsdsdf
parent
b2f006021f
commit
31b3af56f7
|
@ -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 %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue