{"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$blogger":"http://schemas.google.com/blogger/2008","xmlns$georss":"http://www.georss.org/georss","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$thr":"http://purl.org/syndication/thread/1.0","id":{"$t":"tag:blogger.com,1999:blog-1801029525997613401"},"updated":{"$t":"2024-09-04T08:28:06.768-07:00"},"title":{"type":"text","$t":"Mateusz developer's blog"},"subtitle":{"type":"html","$t":""},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"http:\/\/mat-dev.blogspot.com\/feeds\/posts\/default"},{"rel":"self","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/1801029525997613401\/posts\/default?alt=json"},{"rel":"alternate","type":"text/html","href":"http:\/\/mat-dev.blogspot.com\/"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"Mateusz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/01603194520924339034"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"generator":{"version":"7.00","uri":"http://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"2"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"25"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-1801029525997613401.post-768667614178977567"},"published":{"$t":"2012-05-23T18:11:00.005-07:00"},"updated":{"$t":"2012-05-23T19:28:53.908-07:00"},"title":{"type":"text","$t":"Slideshow test"},"content":{"type":"html","$t":"Slideshow test from other's blogs images.\u003Cbr \/\u003E\n\u003Cbr\/\u003E\n\u003Cul\u003E\n\u003Cli\u003E1. Use json feed for blogger : url: \u003Ca href=\"http:\/\/mieszkamwlisciachbrzoz.blogspot.com\/feeds\/posts\/default?alt=json\u0026callback=?\"\u003Ehttp:\/\/mieszkamwlisciachbrzoz.blogspot.com\/feeds\/posts\/default?alt=json\u0026callback=?\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E2. parses all content and search for IMG\u003C\/li\u003E\n\u003Cli\u003E3. reuses slideshow created by Jon Raasch (jonraasch.com) at: \u003Ca href=\"http:\/\/jonraasch.com\/blog\/a-simple-jquery-slideshow\"\u003EBlog post\u003C\/a\u003E\u003C\/li\u003E\n\u003C\/ul\u003E\n\n\u003Cbr \/\u003E\n\u003Cscript src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js\"\u003E\u003C\/script\u003E\n\u003Cscript src=\"http:\/\/ajax.aspnetcdn.com\/ajax\/jquery.templates\/beta1\/jquery.tmpl.min.js\"\u003E\u003C\/script\u003E\n\n\n\u003Cscript id=\"imageTemplate\" type=\"text\/x-jquery-tmpl\"\u003E\n\u003Cdiv class=\"imageContainer\"\u003E\n    \u003Cdiv class=\"image\"\u003E\u003Cimg src=\"${url}\" alt=\"photo\" height=\"200px\"\/\u003E\u003C\/div\u003E\n \u003Cdiv class=\"link\"\u003E\u003Ca href=\"${linkUrl}\"\u003E${title}\u003C\/a\u003E\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/script\u003E\n\n\u003Cscript language=\"JavaScript\"\u003E\n$(function() {\n\/\/ get data\n\/\/loadData('http:\/\/mat-dev.blogspot.com\/feeds\/posts\/default?alt=json\u0026callback=?');\nloadData('http:\/\/mieszkamwlisciachbrzoz.blogspot.com\/feeds\/posts\/default?alt=json\u0026callback=?');\n\n});\nvar images=[];\n\nfunction loadData(url) {\n $.getJSON(url,null, blogLoaded);\n}\nfunction blogLoaded(dataFeed,b) {\n\n \/\/$('#jsonView').html('\u003Ccode\u003E'+$.dump(dataFeed)+\"\u003C\/code\u003E\");\n\/\/ $.dump(dataFeed)\n $.each(dataFeed.feed.entry, function(index, elem) {\n  \n  $(elem.content.$t).find('img').each(function (imgIndex, imgElem) {\n   var url = $(imgElem).attr('src');\n   var linkUrl = getLink(elem.link);\n   var title = elem.title.$t;\n   if (url.indexOf('blogspot')) {\n    images.push({url:url, linkUrl: linkUrl, title: title});\n   }   \n  });\n    \n });\n \/\/ produce from template\n $( \"#imageTemplate\" ).tmpl( images ).appendTo( \"#slideshow\" );\n \n slideSwitch();\n $(\"#slideshow img\").click(slideSwitch);\n}\nfunction getLink(link) {\n var url = null;\n $.each(link, function (index, elem) {\n  if (elem.rel=='self') {\n   url= elem.href;\n  }\n });\n if (!url) {\n  url =link[link.length-1].href;\n }\n return url;\n}\n\n\/*** \n    Simple jQuery Slideshow Script\n    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)\n***\/\nvar slideInterval=null;\nfunction slideSwitch() {\n    var $active = $('#slideshow .imageContainer.active');\n\n    if ( $active.length == 0 ) $active = $('#slideshow .imageContainer:last');\n\n    \/\/ use this to pull the images in the order they appear in the markup\n    var $next =  $active.next().length ? $active.next()\n        : $('#slideshow .imageContainer:first');\n\n    \/\/ uncomment the 3 lines below to pull the images in random order\n    \n    var $sibs  = $active.siblings();\n    var rndNum = Math.floor(Math.random() * $sibs.length );\n    var $next  = $( $sibs[ rndNum ] );\n\n\n    $active.addClass('last-active');\n $active.css({display: 'none'});\n    $next.css({opacity: 0.0, display: 'block'})\n        .addClass('active')\n        .animate({opacity: 1.0}, 1000, function() {\n            $active.removeClass('active last-active');   \n   $active.css({ display: 'none'});\n   slideInterval = null;\n        });\n  \n}\n\n$(function() {\n if (slideInterval)\n {\n  clearTimeout(slideInterval);\n }\n    slideInterval = setInterval( \"slideSwitch()\", 5000 );\n});\n\n\n\u003C\/script\u003E\n\u003Cstyle type=\"text\/css\"\u003E\n\n\/*** set the width and height to match your images **\/\n\n#slideshow {\n    position:relative;\n    height:350px;\n}\n\n#slideshow .imageContainer{\n    position:absolute;\n    top:0;\n    left:0;\n    z-index:8;\n    opacity:0.0;\n}\n\n#slideshow .imageContainer.active {\n    z-index:10;\n    opacity:1.0;\n}\n\n#slideshow .imageContainer.last-active {\n    z-index:9;\n}\n\n\u003C\/style\u003E\n\n\n\u003Cdiv id=\"slideshow\"\u003E\n\u003C\/div\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"http:\/\/mat-dev.blogspot.com\/feeds\/768667614178977567\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"http:\/\/mat-dev.blogspot.com\/2012\/05\/post-2.html#comment-form","title":"2 Comments"},{"rel":"edit","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/1801029525997613401\/posts\/default\/768667614178977567"},{"rel":"self","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/1801029525997613401\/posts\/default\/768667614178977567"},{"rel":"alternate","type":"text/html","href":"http:\/\/mat-dev.blogspot.com\/2012\/05\/post-2.html","title":"Slideshow test"}],"author":[{"name":{"$t":"Mateusz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/01603194520924339034"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"thr$total":{"$t":"2"}},{"id":{"$t":"tag:blogger.com,1999:blog-1801029525997613401.post-848207490500280808"},"published":{"$t":"2012-05-23T18:09:00.002-07:00"},"updated":{"$t":"2012-05-23T18:09:20.220-07:00"},"title":{"type":"text","$t":"Blog #1"},"content":{"type":"html","$t":"Test blog:\u003Cbr \/\u003E\nRetriving blog posts as JSON:\u0026nbsp;\u003Ca href=\"http:\/\/mat-dev.blogspot.com\/feeds\/posts\/default?alt=json\"\u003Ehttp:\/\/mat-dev.blogspot.com\/feeds\/posts\/default?alt=json\u003C\/a\u003E\u003Cbr \/\u003E\n\u003Cbr \/\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"http:\/\/mat-dev.blogspot.com\/feeds\/848207490500280808\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"http:\/\/mat-dev.blogspot.com\/2012\/05\/blog-1.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/1801029525997613401\/posts\/default\/848207490500280808"},{"rel":"self","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/1801029525997613401\/posts\/default\/848207490500280808"},{"rel":"alternate","type":"text/html","href":"http:\/\/mat-dev.blogspot.com\/2012\/05\/blog-1.html","title":"Blog #1"}],"author":[{"name":{"$t":"Mateusz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/01603194520924339034"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"thr$total":{"$t":"0"}}]}}