fix wrong syntax

master
Aevann1 2022-09-14 13:44:16 +02:00
parent af2b69d7bb
commit c3c7b20ccd
1 changed files with 11 additions and 9 deletions

View File

@ -237,14 +237,16 @@
<script defer src="/assets/js/lite-youtube.js?v=4000"></script>
<script defer src="/chat.js?h=5"></script>
<script>
document.addEventListener('click', function (e) {
if (!e.target.classList.contains('del')) {
for (const btn in document.querySelectorAll('.delmsg:not(.d-none)')) {
btn.classList.add('d-none');
btn.previousElementSibling.classList.remove('d-none');
{% if v.admin_level > 1 %}
<script>
document.addEventListener('click', function (e) {
if (!e.target.classList.contains('del')) {
for (const btn of document.querySelectorAll('.delmsg:not(.d-none)')) {
btn.classList.add('d-none');
btn.previousElementSibling.classList.remove('d-none');
}
}
}
});
</script>
});
</script>
{% endif %}
</body>