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) {
|
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
|
||||||
myToast.show();
|
|
||||||
});
|
|
||||||
|
|
||||||
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,
|
|
||||||
});
|
|
||||||
})
|
|
||||||
|
|
||||||
function poll_vote(cid, parentid) {
|
function poll_vote(cid, parentid) {
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||||
myToast.show();
|
myToast.show();
|
||||||
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
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 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,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
});
|
|
@ -761,7 +761,7 @@
|
||||||
{% 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=3"></script>
|
<script defer src="/assets/js/comments.js?v=4"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener("load",function(event) {
|
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 defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var clipboard = new ClipboardJS('.copy-link');
|
window.addEventListener("load",function(event) {
|
||||||
clipboard.on('success', function(e) {
|
var clipboard = new ClipboardJS('.copy-link');
|
||||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
clipboard.on('success', function(e) {
|
||||||
myToast.show();
|
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||||
|
myToast.show();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -878,7 +878,7 @@
|
||||||
{% include "ban_modal.html" %}
|
{% include "ban_modal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% 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" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue