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