\n `;\n postsContainer.appendChild(postElement);\n });\n }\n\n postForm.addEventListener('submit', function(event) {\n event.preventDefault();\n if (captchaInput.value === captchaText.textContent) {\n // Submit post to database\n // This is a placeholder for actual database interaction\n alert('Post submitted successfully!');\n postForm.reset();\n generateCaptcha();\n loadPosts();\n } else {\n alert('Invalid captcha!');\n }\n });\n\n window.likePost = function(postId) {\n // Like post in database\n alert('Liked post ' + postId);\n };\n\n window.dislikePost = function(postId) {\n // Dislike post in database\n alert('Disliked post ' + postId);\n };\n\n window.showReplyForm = function(postId) {\n const replyForm = document.getElementById('replyForm' + postId);\n replyForm.style.display = 'block';\n };\n\n window.submitReply = function(postId) {\n const replyName = document.getElementById('replyName' + postId).value;\n const replyContent = document.getElementById('replyContent' + postId).value;\n if (replyName && replyContent) {\n // Submit reply to database\n alert('Reply submitted successfully!');\n loadPosts();\n } else {\n alert('Please fill in all fields!');\n }\n };\n\n window.sharePost = function(postId) {\n // Share post on social media\n alert('Shared post ' + postId);\n };\n\n generateCaptcha();\n loadPosts();\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 347,
+ "completion_tokens": 2113,
+ "total_tokens": 2460,
+ "prompt_cache_hit_tokens": 64,
+ "prompt_cache_miss_tokens": 283
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # postit.scroll.pub
+ Website generated by DeepSeek from prompt: create a webpage with database, which anyone can post their text, saves on database and shows on website one by one as per the date and time they posted it with the name of the person posted. Add a random captcha for robot verification. add like, dislike, reply and social media share function with for the each post. Reply field should show when it clicked, and must ask name and comment to reply, and it needed to shown the same page, and stored in database. Like and dislike button should have a count which also need to be stored in database.