This commit is contained in:
2024-09-25 20:49:15 +02:00
parent b572feeb5a
commit 73a9e04c2b
22 changed files with 1982 additions and 682 deletions

11
js/post.js Normal file
View File

@ -0,0 +1,11 @@
const textarea = document.getElementById('postInput');
textarea.addEventListener('input', function () {
textarea.style.height = 'auto'; // Reset az eredeti magasságra
textarea.style.height = textarea.scrollHeight + 'px'; // Dinamikusan növeli a szövegdoboz méretét
});
function toggleComments(button) {
const commentsSection = button.closest('.card').querySelector('.comments-section');
commentsSection.style.display = commentsSection.style.display === 'none' ? 'block' : 'none';
}