{"id":9377,"date":"2025-05-21T22:25:57","date_gmt":"2025-05-21T22:25:57","guid":{"rendered":"https:\/\/presswiki.allmath.gr\/wpwiki18\/?p=9377"},"modified":"2025-05-21T22:32:06","modified_gmt":"2025-05-21T22:32:06","slug":"%cf%84%ce%b5%cf%83%cf%84-8","status":"publish","type":"post","link":"https:\/\/presswiki.allmath.gr\/wpwiki18\/2025\/05\/21\/22\/25\/57\/9377\/","title":{"rendered":"\u03c4\u03b5\u03c3\u03c4"},"content":{"rendered":"<p><meta charset=\"UTF-8\"><br \/>\n<title>\u0393\u03b5\u03bd\u03bd\u03ae\u03c4\u03c1\u03b9\u03b1 \u039a\u03c9\u03b4\u03b9\u03ba\u03bf\u03cd<\/title><\/p>\n<h2>\u0395\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc \u03c3\u03b1\u03c2:<\/h2>\n<p><input type=\"password\" id=\"codeInput\" placeholder=\"\u039a\u03c9\u03b4\u03b9\u03ba\u03cc\u03c2\"><br \/>\n<button onclick=\"submitCode()\">\u03a5\u03c0\u03bf\u03b2\u03bf\u03bb\u03ae<\/button><\/p>\n<p id=\"status\">\n<p>  <script><br \/>\n    async function submitCode() {<br \/>\n      const code = document.getElementById(\"codeInput\").value;<br \/>\n      if (!code) {<br \/>\n        document.getElementById(\"status\").textContent = \"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc.\";<br \/>\n        return;<br \/>\n      }<\/p>\n<p>      const ip = await fetch(\"https:\/\/api.ipify.org?format=json\")<br \/>\n        .then(res => res.json())<br \/>\n        .then(data => data.ip)<br \/>\n        .catch(() => \"IP not found\");<\/p>\n<p>      const number = generateRandom15DigitNumber();<\/p>\n<p>      fetch(\"https:\/\/script.google.com\/macros\/s\/AKfycbzo7tnzGG3ddWCvkBo0lCl9jo2cKz_b4XUZBnxs7eGH28qfRb2I-PeuC5pNTSvpaKumoQ\/exec\", {<br \/>\n        method: \"POST\",<br \/>\n        body: JSON.stringify({ code, number, ip }),<br \/>\n        headers: { \"Content-Type\": \"application\/json\" }<br \/>\n      })<br \/>\n      .then(res => res.text())<br \/>\n      .then(text => {<br \/>\n        document.getElementById(\"status\").textContent = `\u0391\u03c0\u03bf\u03c4\u03ad\u03bb\u03b5\u03c3\u03bc\u03b1: ${text}`;<br \/>\n      })<br \/>\n      .catch(err => {<br \/>\n        document.getElementById(\"status\").textContent = \"\u03a3\u03c6\u03ac\u03bb\u03bc\u03b1 \u03ba\u03b1\u03c4\u03ac \u03c4\u03b7\u03bd \u03b1\u03c0\u03bf\u03c3\u03c4\u03bf\u03bb\u03ae.\";<br \/>\n      });<br \/>\n    }<\/p>\n<p>    function generateRandom15DigitNumber() {<br \/>\n      let number = \"\";<br \/>\n      for (let i = 0; i < 15; i++) {\n        number += Math.floor(Math.random() * 10);\n      }\n      return number;\n    }\n  <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0393\u03b5\u03bd\u03bd\u03ae\u03c4\u03c1\u03b9\u03b1 \u039a\u03c9\u03b4\u03b9\u03ba\u03bf\u03cd \u0395\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc \u03c3\u03b1\u03c2: \u03a5\u03c0\u03bf\u03b2\u03bf\u03bb\u03ae<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/posts\/9377"}],"collection":[{"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/comments?post=9377"}],"version-history":[{"count":2,"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/posts\/9377\/revisions"}],"predecessor-version":[{"id":9379,"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/posts\/9377\/revisions\/9379"}],"wp:attachment":[{"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/media?parent=9377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/categories?post=9377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presswiki.allmath.gr\/wpwiki18\/wp-json\/wp\/v2\/tags?post=9377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}