{"id":49,"date":"2006-06-19T00:40:56","date_gmt":"2006-06-19T00:40:56","guid":{"rendered":"http:\/\/www.martintod.org.uk\/blog\/?p=49"},"modified":"2006-06-18T23:34:18","modified_gmt":"2006-06-18T23:34:18","slug":"lib-dem-buttons-via-javascript","status":"publish","type":"post","link":"https:\/\/www.martintod.org.uk\/blog\/2006\/06\/lib-dem-buttons-via-javascript\/","title":{"rendered":"Lib Dem buttons via Javascript"},"content":{"rendered":"<p>Another nifty piece of Javascript for you all&#8230;<\/p>\n<p>This one generates the following party campaign buttons shown on the right hand side <a href=\"\/blog\/\">front page of this site<\/a> (just below the Lib Dem blogs box):<\/p>\n<pre>&lt;script type=\"text\/javascript\" \r\n   src=\"http:\/\/petitions.libdems.org.uk\/showButtons.php\"&gt;&lt;\/script&gt;<\/pre>\n<p>And when new campaigns are launched nationally, the buttons should update automatically.<\/p>\n<p>Now to widgetise it&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another nifty piece of Javascript for you all&#8230; This one generates the following party campaign buttons shown on the right hand side front page of this site (just below the Lib Dem blogs box): &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;http:\/\/petitions.libdems.org.uk\/showButtons.php&#8221;&gt;&lt;\/script&gt; And when new campaigns are launched nationally, the buttons should update automatically. Now to widgetise it&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2,3],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-javascript","category-politics","category-technology"],"_links":{"self":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/49"}],"collection":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":0,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}