{"id":4500,"date":"2006-12-02T15:21:31","date_gmt":"2006-12-02T20:21:31","guid":{"rendered":"http:\/\/localhost:8888\/2006\/12\/02\/advent-graphic\/"},"modified":"2006-12-02T15:21:31","modified_gmt":"2006-12-02T20:21:31","slug":"advent-graphic","status":"publish","type":"post","link":"https:\/\/www.splendoroftruth.com\/curtjester\/2006\/12\/advent-graphic\/","title":{"rendered":"Advent Graphic"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/home.comcast.net\/%7Ecurtjester\/curtjester_advent.gif\" width=\"170\" height=\"189\"> <\/p>\n<p class=\"blog\">Last year I decided to create my own Advent Wreath graphic instead of just using the normal animated gif that I used previously Same as last year if you would like it for your own blog you can use the html code below which uses some homepage server space that won&#8217;t effect the bandwidth for my blog. I will replace the graphic each week so that it correctly shows the number of candles that should be lit. On Christmas I will change it to another graphic I created for Christmastide.<\/p>\n<p>\n<textarea name=\"textarea\" cols=\"60\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/home.comcast.net\/%7Ecurtjester\/curtjester_advent.gif\" width=\"170\" height=\"189\"><\/textarea>\n<\/p>\n<p>If you need the graphic at a smaller size use the following dimensions in the width and height tags.<\/p>\n<table width=\"256\" border=\"1\">\n<tr bgcolor=\"#FFFFCC\">\n<td width=\"74\">\n<div align=\"center\"><strong>Reduction<\/strong><\/div>\n<\/td>\n<td width=\"64\">\n<div align=\"center\"><strong>Width<\/strong><\/div>\n<\/td>\n<td width=\"96\">\n<div align=\"center\"><strong>Height<\/strong><\/div>\n<\/td>\n<\/tr>\n<tr bgcolor=\"#FFFFFF\">\n<td>75%<\/td>\n<td>128<\/td>\n<td>142<\/td>\n<\/tr>\n<tr bgcolor=\"#FFFFFF\">\n<td height=\"23\">50%<\/td>\n<td>85<\/td>\n<td>95<\/td>\n<\/tr>\n<\/table>\n<p>Additionally underneath my Advent graphic on my left side I have created a JavaScript that gives a countdown to Christmas. If you want to do the same thing you can insert this script into your blog template with the following code underneath where you place the graphic.<\/p>\n<p>\n<textarea name=\"textarea2\" cols=\"60\"><!-- Christmas Countdown - Jeff Miller--><br \/>\n<script language=\"JavaScript\">\nfunction eventcount() {\nvar now = new Date();\nvar message = \"\";\nvar event = new Date(\"Dec 25 2006 00:00:01\");\nvar seconds = (event - now) \/ 1000;\nvar minutes = seconds \/ 60;\nvar hours = minutes \/ 60;\nvar days = hours \/ 24;\nif ( (days%1)<.5)\ndays++;\ndays = Math.round(days);\nif (hours< 0 &#038;&#038; hours >= -24)\nmessage = \"Merry Christmas; Christ is born!\";\nelse if (days > 0)\nmessage = \"Only \"+days+\" praying day\"+ (days>1?'s':'')+ \" till Christmas!\";\ndocument.write(\"<\/p>\n<p>\"+message+\"<\/p>\n<p>\");\n}\neventcount();\n<\/script><br \/>\n<!-- End Christmas Countdown --><\/textarea>\n<\/p>\n<p><font color=\"#FF0000\">Update<\/font>: Due to reader suggestions I modified the JavaScript code due to a spelling error and a bug. Though maybe since this is a Christmas related script it should be called a Bah, Humbug.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last year I decided to create my own Advent Wreath graphic instead of just using the normal animated gif that I used previously Same as last year if you would&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-4500","post","type-post","status-publish","format-standard","hentry","category-other"],"_links":{"self":[{"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts\/4500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/comments?post=4500"}],"version-history":[{"count":0,"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts\/4500\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/media?parent=4500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/categories?post=4500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/tags?post=4500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}