forked from rDrama/rDrama
fix
parent
00c7ca4105
commit
9a03eb4fd2
|
@ -444,21 +444,23 @@
|
|||
<script defer src="/assets/js/popover.js?v=9"></script>
|
||||
<script defer src="/assets/js/submission_listing.js?v=2"></script>
|
||||
|
||||
<script defer>
|
||||
(() => {
|
||||
{% if (not v or v.highlightcomments) %}
|
||||
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
|
||||
{% endif %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
(() => {
|
||||
{% if (not v or v.highlightcomments) %}
|
||||
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
|
||||
{% endif %}
|
||||
|
||||
{% if p.stickied %}
|
||||
const pinned_info = document.getElementById('pinned-{{p.id}}')
|
||||
{% if p.stickied.startswith('t:') %}
|
||||
pinned_info.setAttribute("data-bs-original-title", `Pinned until ${new Date({{p.stickied[2:]}} * 1000).toString()}`)
|
||||
{% else %}
|
||||
pinned_info.setAttribute("data-bs-original-title", "Pinned by @{{p.stickied}}")
|
||||
{%endif%}
|
||||
{%endif%}
|
||||
})()
|
||||
{% if p.stickied %}
|
||||
const pinned_info = document.getElementById('pinned-{{p.id}}')
|
||||
{% if p.stickied.startswith('t:') %}
|
||||
pinned_info.setAttribute("data-bs-original-title", `Pinned until ${new Date({{p.stickied[2:]}} * 1000).toString()}`)
|
||||
{% else %}
|
||||
pinned_info.setAttribute("data-bs-original-title", "Pinned by @{{p.stickied}}")
|
||||
{%endif%}
|
||||
{%endif%}
|
||||
})()
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Reference in New Issue