{"id":124640,"date":"2021-06-09T21:34:41","date_gmt":"2021-06-09T19:34:41","guid":{"rendered":"https:\/\/www.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:\/\/www.dogsie.cz\/sk\/test\/","title":{"rendered":"Test"},"content":{"rendered":"    <span id=\"dday-238918584\"><\/span>\n    <script>\n      var id = \"dday-238918584\";\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":{"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-124640","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"blog-featured":false,"blog-recommended":false,"single-featured":false,"review":false,"product-card":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"140-140":false},"uagb_author_info":{"display_name":"vaclav.greif","author_link":"https:\/\/www.dogsie.cz\/sk\/author\/vaclav-greif\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages\/124640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/users\/7367"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/comments?post=124640"}],"version-history":[{"count":1,"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages\/124640\/revisions"}],"predecessor-version":[{"id":124641,"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/pages\/124640\/revisions\/124641"}],"wp:attachment":[{"href":"https:\/\/www.dogsie.cz\/sk\/wp-json\/wp\/v2\/media?parent=124640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}