{"id":25,"date":"2019-10-27T19:02:45","date_gmt":"2019-10-27T19:02:45","guid":{"rendered":"http:\/\/gothrik.co.uk\/?p=25"},"modified":"2020-08-26T16:30:34","modified_gmt":"2020-08-26T16:30:34","slug":"56-days-to-the-winter-solstice","status":"publish","type":"post","link":"https:\/\/gothrik.co.uk\/?p=25","title":{"rendered":"THE WINTER SOLSTICE is NIGH :)"},"content":{"rendered":"\n<!-- Display the countdown timer in an element -->\n<p id=\"demo\"><\/p>\n\n<script>\n\/\/ Set the date we're counting down to\nvar countDownDate = new Date(\"Dec 23, 2019 00:01:00\").getTime();\n\n\/\/ Update the count down every 1 second\nvar x = setInterval(function() {\n\n  \/\/ Get today's date and time\n  var now = new Date().getTime();\n\n  \/\/ Find the distance between now and 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(\"demo\").innerHTML = days + \" Days to the Winter Solstice\";\n\n  \/\/ If the count down is finished, write some text\n  if (distance < 0) {\n    clearInterval(x);\n    document.getElementById(\"demo\").innerHTML = \"Happy New Year!!\";\n  }\n}, 1000);\n<\/script>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"500\" height=\"375\" src=\"http:\/\/gothrik.co.uk\/wp-content\/uploads\/2019\/10\/Winter-01I-signed-2-sm.jpg\" alt=\"\" class=\"wp-image-46\" srcset=\"https:\/\/gothrik.co.uk\/wp-content\/uploads\/2019\/10\/Winter-01I-signed-2-sm.jpg 500w, https:\/\/gothrik.co.uk\/wp-content\/uploads\/2019\/10\/Winter-01I-signed-2-sm-300x225.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><figcaption>Drawn with graphics tablet and pen - Digital<\/figcaption><\/figure>\n ","protected":false},"excerpt":{"rendered":"<p>Drawn with graphics tablet and pen &#8211; Digital<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":12,"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gothrik.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}