{"id":575,"date":"2025-10-26T13:04:34","date_gmt":"2025-10-26T13:04:34","guid":{"rendered":"https:\/\/www.aiaprivate.com.hk\/en\/?page_id=575"},"modified":"2025-11-01T07:48:53","modified_gmt":"2025-11-01T07:48:53","slug":"insights","status":"publish","type":"page","link":"https:\/\/www.aiaprivate.com.hk\/en\/insights\/","title":{"rendered":"Insights"},"content":{"rendered":"\n<p class=\"has-text-align-left\" style=\"padding-top:0;padding-right:0;padding-bottom:0;padding-left:0px\"><\/p>\n\n\n\n<p><br>The content is password-protected. To view it, please enter your password below:<\/p>\n\n\n<form id=\"passwordForm\">\n  <label for=\"password\">Password:<\/label>\n  <input type=\"password\" id=\"password\" name=\"password\" required>\n  <button class=\"button\" type=\"submit\">Submit<\/button>\n<\/form>\n<p id=\"message\"><\/p>\n \n <script>\ndocument.getElementById('passwordForm').addEventListener('submit', function(event) {\n  \/\/ Prevent the default form submission behavior\n  event.preventDefault();\n\n  \/\/ Get the password input element\n  const passwordInput = document.getElementById('password');\n\n  \/\/ Get the value of the password\n  const passwordValue = passwordInput.value;\n\n  \/\/ For demonstration, display the password value (in a real application, you would send this to a server)\n  const messageElement = document.getElementById('message');\n  if (passwordValue) {\n     messageElement.textContent = `Wrong Password!`;\n    \/\/messageElement.textContent = `Password submitted: ${passwordValue}`;\n    \/\/ In a real application, you would typically send this password to a server for authentication.\n    \/\/ Example: fetch('\/api\/login', { method: 'POST', body: JSON.stringify({ password: passwordValue }) });\n  } else {\n    messageElement.textContent = 'Please enter a password.';\n  }\n\n  \/\/ Clear the password field after submission (optional, for security)\n  passwordInput.value = '';\n});\n <\/script>","protected":false},"excerpt":{"rendered":"<p>The content is password-protected. To view it, please enter your password below: Password: Submit<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"no_header","meta":{"footnotes":""},"class_list":["post-575","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/pages\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/comments?post=575"}],"version-history":[{"count":26,"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/pages\/575\/revisions"}],"predecessor-version":[{"id":742,"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/pages\/575\/revisions\/742"}],"wp:attachment":[{"href":"https:\/\/www.aiaprivate.com.hk\/en\/wp-json\/wp\/v2\/media?parent=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}