forked from MarseyWorld/MarseyWorld
master
parent
719c26a729
commit
dd4d435ca0
|
@ -173,9 +173,9 @@
|
|||
<script>
|
||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||
lastCount = comments['{{p.id}}']
|
||||
console.log({{c.created_utc*1000}})
|
||||
console.log(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="Unread"></i>'
|
||||
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="Unread"></i>'
|
||||
}
|
||||
</script>
|
||||
<span id="reddot-{{c.id}}"></span>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue