Apr 24th 2021, 20:43:07
Me neither. Took too long to get my land and now tech is crap already.
Apr 24th 2021, 21:24:19
Apr 24th 2021, 22:37:15
Apr 24th 2021, 22:39:46
Apr 24th 2021, 23:12:06
Apr 25th 2021, 15:48:04
Apr 25th 2021, 15:51:08
Apr 25th 2021, 16:50:09
Apr 25th 2021, 17:30:13
const delete_btn = document.querySelector(".message a[title='Delete']");
delete_btn.addEventListener("click", asyc (e) => {
const msg_box= e.target.closest(".message");
const [ _, msg_id ] = msg_box.id.match(/^msg(\d+)$/);
const results = await fetch(url_to_endpoint, msg_id).then(x => x.json());
if (results.action === "deleted"){
const index = [...msg_box.parentElement.children].indexOf(msg_bx);
msg_box.parentElement.children[index].remove();
}
});
Apr 25th 2021, 19:24:23
Apr 25th 2021, 19:44:00
Apr 25th 2021, 22:17:29
Apr 25th 2021, 23:13:22