fsddsf
This commit is contained in:
parent
272101af14
commit
b3f22451fc
4 changed files with 27 additions and 24 deletions
|
@ -15,25 +15,27 @@ function collapse_comment(comment_id) {
|
|||
}
|
||||
};
|
||||
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
function poll_vote(cid, parentid) {
|
||||
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!";
|
||||
}
|
||||
|
||||
window.addEventListener("load",function(event) {
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
});
|
||||
});
|
||||
|
||||
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
||||
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
||||
|
||||
const popoverList = popoverTriggerList.map(function(popoverTriggerEl) {
|
||||
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,
|
||||
});
|
||||
})
|
||||
|
||||
function poll_vote(cid, parentid) {
|
||||
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!";
|
||||
}
|
||||
})
|
||||
});
|
|
@ -761,7 +761,7 @@
|
|||
{% include "expanded_image_modal.html" %}
|
||||
|
||||
<script defer src="/assets/js/popover.js?v=9"></script>
|
||||
<script defer src="/assets/js/comments.js?v=3"></script>
|
||||
<script defer src="/assets/js/comments.js?v=4"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
|
|
|
@ -125,12 +125,13 @@
|
|||
<script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
|
@ -878,7 +878,7 @@
|
|||
{% include "ban_modal.html" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<script defer src="/assets/js/comments.js?v=3"></script>
|
||||
<script defer src="/assets/js/comments.js?v=4"></script>
|
||||
{% include "expanded_image_modal.html" %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue