1
0
generated from avinay/discord-bot

<feat>(all): adding configuration files

This commit is contained in:
avinay
2026-06-04 16:01:31 +02:00
parent eb4d9fc33e
commit 8c848d8986
11 changed files with 1424 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
function toggleArticle(btn) {
const article = btn.closest('.article');
const body = article.querySelector('.article-body');
const isOpen = body.style.display === 'block';
body.style.display = isOpen ? 'none' : 'block';
btn.classList.toggle('open', !isOpen);
btn.innerHTML = isOpen
? 'Lire <span class="toggle-arrow"></span>'
: 'Fermer <span class="toggle-arrow"></span>';
}