add reply button functionality

This commit is contained in:
2025-05-24 01:07:58 +03:00
parent e7260090ac
commit ec3f144b4e
3 changed files with 22 additions and 4 deletions

8
js/thread.js Normal file
View File

@ -0,0 +1,8 @@
const ta = document.getElementById("post_content");
for (let button of document.querySelectorAll(".reply-button")) {
button.addEventListener("click", (e) => {
ta.value += button.value;
ta.scrollIntoView()
})
}