        if (title) {
                worker.postMessage({ cmd: "delete_post", title });
            } else {
                elements.deleteResult.innerHTML = '<pre style="color: red">Please enter a post title</pre>';
            }
        });

        // Load initial posts
        elements.showPosts.click();
    </script>
</body>
</html>
