{"id":8,"date":"2024-10-31T22:23:08","date_gmt":"2024-10-31T22:23:08","guid":{"rendered":"https:\/\/pro.sporati.com\/?page_id=8"},"modified":"2024-10-31T22:23:09","modified_gmt":"2024-10-31T22:23:09","slug":"home_stream","status":"publish","type":"page","link":"https:\/\/pro.sporati.com\/","title":{"rendered":"Home_Stream"},"content":{"rendered":"\r\n        <div class=\"sporati-container\">\r\n            <!-- New Post Form -->\r\n            <div class=\"sporati-new-post\">\r\n                <textarea id=\"sporati-post-content\" placeholder=\"What's happening?\" rows=\"3\"><\/textarea>\r\n                <select id=\"sporati-post-audience\">\r\n                    <option value=\"public\">Public<\/option>\r\n                    <option value=\"friends\">Friends<\/option>\r\n                    <option value=\"only_me\">Only Me<\/option>\r\n                <\/select>\r\n                <button id=\"sporati-post-submit\" onclick=\"submitPost()\">Post<\/button>\r\n            <\/div>\r\n\r\n            <!-- Posts Feed -->\r\n            <div class=\"sporati-posts-feed\">\r\n                                    <p>No posts available for today.<\/p>\r\n                            <\/div>\r\n        <\/div>\r\n\r\n        <script>\r\n        function submitPost() {\r\n            const content = document.getElementById('sporati-post-content').value;\r\n            const audience = document.getElementById('sporati-post-audience').value;\r\n\r\n            if (content.trim() === '') {\r\n                alert('Please enter some content before posting.');\r\n                return;\r\n            }\r\n\r\n            \/\/ For now, just display the post in an alert\r\n            alert(`Post Content: ${content}\\nAudience: ${audience}`);\r\n            \/\/ TODO: Send the post data to the server via AJAX\r\n        }\r\n        <\/script>\r\n\r\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-8","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pro.sporati.com\/index.php?rest_route=\/wp\/v2\/pages\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pro.sporati.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pro.sporati.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pro.sporati.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pro.sporati.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":1,"href":"https:\/\/pro.sporati.com\/index.php?rest_route=\/wp\/v2\/pages\/8\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/pro.sporati.com\/index.php?rest_route=\/wp\/v2\/pages\/8\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/pro.sporati.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}