mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
484 B
16 lines
484 B
window.addEventListener('DOMContentLoaded', (event) => {
|
|
|
|
var links = document.getElementsByClassName('post-quoters');
|
|
|
|
var quote = function(e) {
|
|
const quoteNum = this.textContent.replace('[Reply]', '').split(' ')[0].trim();
|
|
const messageBox = document.getElementById('message');
|
|
messageBox.value += `>>${quoteNum}\n`;
|
|
messageBox.scrollTop = messageBox.scrollHeight;
|
|
};
|
|
|
|
for (var i = 0; i < links.length; i++) {
|
|
links[i].addEventListener('click', quote, false);
|
|
}
|
|
|
|
});
|
|
|