{"id":124640,"date":"2021-06-09T21:34:41","date_gmt":"2021-06-09T19:34:41","guid":{"rendered":"https:\/\/test2.dogsie.cz\/?page_id=124640"},"modified":"2021-06-09T21:34:43","modified_gmt":"2021-06-09T19:34:43","slug":"test","status":"publish","type":"page","link":"https:\/\/test2.dogsie.cz\/sk\/test\/","title":{"rendered":"Test"},"content":{"rendered":"    <span id=\"dday-2098772008\"><\/span>\n    <script>\n      var id = \"dday-2098772008\";\n      \/\/ Set the date we're counting down to\n      var countDownDate = new Date(\"2021-06-30T23:59:00\").getTime();\n      console.log(countDownDate);\n      \/\/ Update the count down every 1 second\n      var x = setInterval(function () {\n\n        \/\/ Get todays date and time\n        var now = new Date().getTime();\n\n        \/\/ Find the distance between now an the count down date\n        var distance = countDownDate - now;\n\n        \/\/ Time calculations for days, hours, minutes and seconds\n        var days = Math.floor(distance \/ (1000 * 60 * 60 * 24));\n        var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) \/ (1000 * 60 * 60));\n        var minutes = Math.floor((distance % (1000 * 60 * 60)) \/ (1000 * 60));\n        var seconds = Math.floor((distance % (1000 * 60)) \/ 1000);\n\n        \/\/ Display the result in the element with id=\"demo\"\n        document.getElementById(id).innerHTML = days + \"d \" + hours + \"h \"\n          + minutes + \"m \" + seconds + \"s \";\n\n        \/\/ If the count down is finished, write some text\n        if (distance < 0) {\n          clearInterval(x);\n          document.getElementById(id).innerHTML = \"READY TO GO!\";\n        }\n      }, 1000);\n    <\/script>\n\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":7367,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-124640","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages\/124640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/users\/7367"}],"replies":[{"embeddable":true,"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/comments?post=124640"}],"version-history":[{"count":2,"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages\/124640\/revisions"}],"predecessor-version":[{"id":137690,"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages\/124640\/revisions\/137690"}],"wp:attachment":[{"href":"https:\/\/test2.dogsie.cz\/sk\/wp-json\/wp\/v2\/media?parent=124640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}