remotes/1693045480750635534/spooky-22
Aevann1 2022-03-04 19:43:20 +02:00
parent 407710f138
commit e4bb7ef379
1 changed files with 7 additions and 2 deletions

View File

@ -897,8 +897,14 @@
<div id="viewmore-{{offset}}"><button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})">VIEW MORE COMMENTS</a></div>
{% endif %}
<script>
console.log('ajax test')
</script>
{% if p %}
<script>
console.log('ajax test 2')
document.getElementById("user-coins-amount").classList.add('unread2')
{% if p and (not v or v.highlightcomments) %}
{% if ajax %}
comments = JSON.parse(localStorage.getItem("old-comment-counts")) || {}
@ -912,8 +918,7 @@
{% for c in p.comments2 %}
{% if not (v and v.id==c[0]) %}
if ({{c[1]*1000}} > lastCount.t)
try {document.getElementById("comment-{{c.id}}-only").classList.add('unread2')}
catch(e) {}
document.getElementById("comment-{{c.id}}-only").classList.add('unread2')
{% endif %}
{% endfor %}
}