HTML = '<pre style="color: red">Please enter both title and content</pre>';
            }
        });

        elements.getPost.addEventListener('click', () => {
            const postId = parseInt(elements.getPostId.value);
            if (!isNaN(postId)) {
                worker.postMessage({ cmd: "get_post", post_id: postId });
            } else {
                elements.getResult.innerHTML = '<pre style="color: red">Please enter a valid post ID</pre>';
            }
        });

        elements.publi