forked from rDrama/rDrama
sfdfsd
parent
c7e3174a9d
commit
94c9f02b18
|
@ -749,7 +749,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js"></script>
|
<script defer src="https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js"></script>
|
||||||
<script defer src="/assets/js/comments_v.js?v=75"></script>
|
<script defer src="/assets/js/comments_v.js?v=76"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
@ -761,30 +761,9 @@
|
||||||
{% include "expanded_image_modal.html" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
|
|
||||||
<script defer src="/assets/js/popover.js?v=9"></script>
|
<script defer src="/assets/js/popover.js?v=9"></script>
|
||||||
<script defer src="/assets/js/comments.js?v=1"></script>
|
<script defer src="/assets/js/comments.js?v=3"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function poll_vote(cid, parentid) {
|
|
||||||
{% if v %}
|
|
||||||
for(let el of document.getElementsByClassName('presult-'+parentid)) {
|
|
||||||
el.classList.remove('d-none');
|
|
||||||
}
|
|
||||||
for(let el of document.getElementsByClassName('presult')) {
|
|
||||||
el.classList.remove('d-none');
|
|
||||||
}
|
|
||||||
var type = document.getElementById(cid).checked;
|
|
||||||
var scoretext = document.getElementById('poll-' + cid);
|
|
||||||
var score = Number(scoretext.textContent);
|
|
||||||
if (type == true) scoretext.textContent = score + 1;
|
|
||||||
else scoretext.textContent = score - 1;
|
|
||||||
post('/vote/poll/' + cid + '?vote=' + type);
|
|
||||||
{% else %}
|
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
|
||||||
myToast.show();
|
|
||||||
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
|
||||||
{% endif %}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener("load",function(event) {
|
window.addEventListener("load",function(event) {
|
||||||
{% if p and (not v or v.highlightcomments) %}
|
{% if p and (not v or v.highlightcomments) %}
|
||||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||||
|
@ -812,17 +791,6 @@
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
})()
|
})()
|
||||||
|
|
||||||
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
|
||||||
|
|
||||||
const popoverList = popoverTriggerList.map(function(popoverTriggerEl) {
|
|
||||||
const popoverId = popoverTriggerEl.getAttribute('data-content-id');
|
|
||||||
const contentEl = document.getElementById(popoverId).innerHTML;
|
|
||||||
return new bootstrap.Popover(popoverTriggerEl, {
|
|
||||||
content: contentEl,
|
|
||||||
html: true,
|
|
||||||
});
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var perfEntries = performance.getEntriesByType("navigation");
|
var perfEntries = performance.getEntriesByType("navigation");
|
||||||
|
@ -831,7 +799,6 @@
|
||||||
var p = perfEntries[i];
|
var p = perfEntries[i];
|
||||||
console.log("DOM interactive = " + p.domInteractive);
|
console.log("DOM interactive = " + p.domInteractive);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
|
@ -383,7 +383,9 @@
|
||||||
<span data-bs-toggle="tooltip" data-bs-placement="bottom" id="timestamp" onmouseover="timestamp('timestamp','{{p.created_utc}}')"> {{p.age_string}}</span>
|
<span data-bs-toggle="tooltip" data-bs-placement="bottom" id="timestamp" onmouseover="timestamp('timestamp','{{p.created_utc}}')"> {{p.age_string}}</span>
|
||||||
({% if p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
({% if p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
||||||
|
|
||||||
{% if p.edited_utc %} Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('edited_timestamp','{{p.edited_utc}}')" id="edited_timestamp">{{p.edited_string}}</span>{% endif %}
|
{% if p.edited_utc %}
|
||||||
|
Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('edited_timestamp','{{p.edited_utc}}')" id="edited_timestamp">{{p.edited_string}}</span>
|
||||||
|
{% endif %}
|
||||||
{{p.views}} views
|
{{p.views}} views
|
||||||
</div>
|
</div>
|
||||||
{% if p.active_flags %}
|
{% if p.active_flags %}
|
||||||
|
@ -867,28 +869,8 @@
|
||||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
|
||||||
{% if not p.comment_count %}
|
{% if not p.comment_count %}
|
||||||
<script>
|
|
||||||
function poll_vote(cid) {
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
for(let el of document.getElementsByClassName('presult')) {
|
<script defer src="/assets/js/comments_v.js?v=76"></script>
|
||||||
el.classList.remove('d-none');
|
|
||||||
}
|
|
||||||
var type = document.getElementById(cid).checked;
|
|
||||||
var scoretext = document.getElementById('poll-' + cid);
|
|
||||||
var score = Number(scoretext.textContent);
|
|
||||||
if (type == true) scoretext.textContent = score + 1;
|
|
||||||
else scoretext.textContent = score - 1;
|
|
||||||
post('/vote/poll/' + cid + '?vote=' + type);
|
|
||||||
{% else %}
|
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
|
||||||
myToast.show();
|
|
||||||
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
|
||||||
{% endif %}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{% if v %}
|
|
||||||
<script defer src="/assets/js/comments_v.js?v=75"></script>
|
|
||||||
{% include "award_modal.html" %}
|
{% include "award_modal.html" %}
|
||||||
{% include "emoji_modal.html" %}
|
{% include "emoji_modal.html" %}
|
||||||
{% include "gif_modal.html" %}
|
{% include "gif_modal.html" %}
|
||||||
|
@ -896,6 +878,7 @@
|
||||||
{% include "ban_modal.html" %}
|
{% include "ban_modal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<script defer src="/assets/js/comments.js?v=3"></script>
|
||||||
{% include "expanded_image_modal.html" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,9 @@
|
||||||
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}"> {{p.age_string}}</span>
|
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}"> {{p.age_string}}</span>
|
||||||
|
|
||||||
({% if p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" target="_blank">{{p.domain}}</a>{% else %}text post{% endif %})
|
({% if p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" target="_blank">{{p.domain}}</a>{% else %}text post{% endif %})
|
||||||
{% if p.edited_utc %} Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="edited_timestamp-{{p.id}}" onmouseover="timestamp('edited_timestamp-{{p.id}}','{{p.edited_utc}}')">{{p.edited_string}}</span>{% endif %}
|
{% if p.edited_utc %}
|
||||||
|
Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="edited_timestamp-{{p.id}}" onmouseover="timestamp('edited_timestamp-{{p.id}}','{{p.edited_utc}}')">{{p.edited_string}}</span>
|
||||||
|
{% endif %}
|
||||||
{{p.views}} views
|
{{p.views}} views
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue