{"id":202,"date":"2011-08-26T18:19:42","date_gmt":"2011-08-26T18:19:42","guid":{"rendered":"http:\/\/www.coralbark.net\/blog\/?p=202"},"modified":"2011-08-26T18:19:42","modified_gmt":"2011-08-26T18:19:42","slug":"simple-graphical-javascript-timer","status":"publish","type":"post","link":"https:\/\/www.coralbark.net\/blog\/life\/2011\/08\/simple-graphical-javascript-timer\/","title":{"rendered":"Simple graphical Javascript Timer"},"content":{"rendered":"<p>A while ago, for a friend&#8217;s party I wrote a very simple <a href=\"http:\/\/www.coralbark.net\/javascriptTimer\/\">Javascript Timer<\/a>.<\/p>\n<p>The other day, my daughter (too young to understand a numeric countdown at the moment) was messing around at dinner (not unusual). I wanted a simple graphical way to explain that after a set amount of time I would take her dinner away to encourage her to eat up.<\/p>\n<p>Slightly to my surprise I couldn&#8217;t find anything with Google (my Google-fu is obviously weak). So I extended my little timer so that it shows a green ball for each second remaining. As the time ticks down, the balls turn red.<\/p>\n<p>I was originally going to use a progress bar but this way shows, at a glance, how much total time there was&#8230;<\/p>\n<p>I think it&#8217;s <a href=\"http:\/\/www.coralbark.net\/javascriptTimer\/\">working pretty well<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while ago, for a friend&#8217;s party I wrote a very simple Javascript Timer. The other day, my daughter (too young to understand a numeric countdown at the moment) was messing around at dinner (not unusual). I wanted a simple graphical way to explain that after a set amount of time I would take her [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts\/202"}],"collection":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":2,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts\/202\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}