{"id":1388,"date":"2014-04-21T20:51:24","date_gmt":"2014-04-21T19:51:24","guid":{"rendered":"http:\/\/johnjohnston.info\/106\/?p=1388"},"modified":"2014-04-21T20:51:24","modified_gmt":"2014-04-21T19:51:24","slug":"pechagif","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/106\/pechagif\/","title":{"rendered":"pechaGif"},"content":{"rendered":"<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" style=\"max-width: 100%;\" alt=\"a random ds106 gif \" src=\"https:\/\/johnjohnston.info\/oddsandends\/ds106gif\" \/> <em>A random Gif<\/em><\/p>\n<p>A while back I posted about the DS106 random gif api, a rather daft piece of fun: <a href=\"http:\/\/johnjohnston.info\/106\/gif-scraping-and-a-ds106-gif-api\/\">106 drop in \u00bb Blog Archive \u00bb Gif Scraping and a DS106 Gif API<\/a>. The api seems to be working well and I&#8217;ve used it on <a href=\"http:\/\/johnjohnston.info\/ds106giftv\/\">DS106 GiF TV<\/a> which is still a work in progress.<\/p>\n<p>Yesterday I had a thought to make a simpler example of using the API and that an idea might be to riff off Alan&#8217;s <a href=\"http:\/\/pechaflickr.cogdogblog.com\/index.php\">pechaflickr<\/a> making a version that showed animated gifs.<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"http:\/\/johnjohnston.info\/oddsandends\/pechagif\/\">pechaGif<\/a><\/strong><\/p>\n<p>This afternoon I took a first run at this. I&#8217;ve not copied any of Alan&#8217;s code just borrowed the idea. The pechaGif loads 20 random gifs and them displays a start button. Clicking that will full screen 20 gifs for 20 seconds each.<\/p>\n<p>The page just uses javascript and I&#8217;ve kept everything in one file in case anyone wants to use it to see how the gif API works.<\/p>\n<p>I did not expect anyone to make use of this, but <a href=\"https:\/\/twitter.com\/mdvfunes\">Mariana<\/a> suggested:<\/p>\n<blockquote class=\"twitter-tweet\" lang=\"en\"><p><a href=\"https:\/\/twitter.com\/search?q=%23ds106&amp;src=hash\">#ds106<\/a> OMG we must make this into a writing assignment: a story from this <a href=\"http:\/\/t.co\/ZgAtkIeYNb\">http:\/\/t.co\/ZgAtkIeYNb<\/a> <a href=\"https:\/\/twitter.com\/johnjohnston\">@johnjohnston<\/a> <a href=\"https:\/\/twitter.com\/cogdog\">@cogdog<\/a><\/p>\n<p>\u2014 Mariana Funes (@mdvfunes) <a href=\"https:\/\/twitter.com\/mdvfunes\/statuses\/458315778119700480\">April 21, 2014<\/a><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>So I guess I may add that to the assignment bank, might give it a go myself first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A random Gif A while back I posted about the DS106 random gif api, a rather daft piece of fun: 106 drop in \u00bb Blog Archive \u00bb Gif Scraping and a DS106 Gif API. The api seems to be working well and I&#8217;ve used it on DS106 GiF TV which is still a work in &hellip; <a href=\"https:\/\/johnjohnston.info\/106\/pechagif\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;pechaGif&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74,49],"tags":[],"class_list":["post-1388","post","type-post","status-publish","format-standard","hentry","category-animatedgif","category-assignment"],"better_featured_image":null,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s3RLlC-pechagif","_links":{"self":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/comments?post=1388"}],"version-history":[{"count":1,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1388\/revisions"}],"predecessor-version":[{"id":1389,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1388\/revisions\/1389"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/media?parent=1388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/categories?post=1388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/tags?post=1388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}