Permalink
Browse files

0.0.15 pinboard & dailymotion support. Changes to pinboard:

 - formatting to 2 spaces indentation
 - add example
  • Loading branch information...
christianvuerings committed Jun 20, 2011
1 parent b957a04 commit 00e122286310d1f7d5354c55feee19b419af9cce
Showing with 45 additions and 38 deletions.
  1. +2 −0 README.md
  2. +4 −0 example.html
  3. +11 −10 jquery.lifestream-compiled.js
  4. +26 −26 jquery.lifestream.js
  5. +2 −2 jquery.lifestream.min.js
View
@@ -19,6 +19,7 @@ Currently supports the following feeds natively:
* [Github](http://github.com)
* [Google Reader](http://google.com/reader)
* [Last.fm](http://last.fm)
+* [Pinboard](http://pinboard.com)
* [Reddit](http://reddit.com)
* [Slideshare](http://slideshare.com)
* [Stackoverflow](http://stackoverflow.com)
@@ -121,6 +122,7 @@ Places on the web where this plug-in got mentioned:
## Version log
+* 0.0.15 Dailymotion & Pinboard support
* 0.0.14 Slideshare support
* 0.0.13 Vimeo support
* 0.0.12 Reddit support
View
@@ -113,6 +113,10 @@ <h2>Lifestream - formatted with CSS</h2>
service: "lastfm",
user: "denbuzze"
},
+ {
+ service: "pinboard",
+ user: "mattandrews"
+ },
{
service: "reddit",
user: "simongee"

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
/*!
* jQuery Lifestream Plug-in
- * @version 0.0.14
+ * @version 0.0.15
* Show a stream of your online activity
*
* Copyright 2011, Christian Vuerings - http://denbuzze.com
@@ -663,38 +663,38 @@
$.fn.lifestream.feeds.pinboard = function (obj, callback) {
- var parsePinboard = function (input) {
- var output = [], list, i = 0, j, item;
+ var parsePinboard = function (input) {
+ var output = [], list, i = 0, j, item;
- if (input.query && input.query.count && input.query.count > 0) {
- list = input.query.results.RDF.item;
- j = list.length;
- for ( ; i < j; i++) {
- item = list[i];
+ if (input.query && input.query.count && input.query.count > 0) {
+ list = input.query.results.RDF.item;
+ j = list.length;
+ for ( ; i < j; i++) {
+ item = list[i];
- output.push({
- date: new Date(item.date),
- service: obj.service,
- html: 'added bookmark <a href="' + item.link + '">'
- + item.title + '</a>'
- });
+ output.push({
+ date: new Date(item.date),
+ service: obj.service,
+ html: 'added bookmark <a href="' + item.link + '">'
+ + item.title + '</a>'
+ });
- }
}
+ }
- return output;
- };
+ return output;
+ };
- $.ajax({
- url: createYqlUrl('select * from xml where '
- + 'url="http://feeds.pinboard.in/rss/u:' + obj.user + '"'),
- dataType: "jsonp",
- success: function (data) {
- callback(parsePinboard(data));
- }
- });
+ $.ajax({
+ url: createYqlUrl('select * from xml where '
+ + 'url="http://feeds.pinboard.in/rss/u:' + obj.user + '"'),
+ dataType: "jsonp",
+ success: function (data) {
+ callback(parsePinboard(data));
+ }
+ });
- };
+ };
$.fn.lifestream.feeds.reddit = function(obj, callback){
Oops, something went wrong.

0 comments on commit 00e1222

Please sign in to comment.