From b66edee48730517757d25dcfff7dd1c371dfa6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20Ros=CC=A6u?= Date: Sun, 30 Jun 2013 11:18:51 +0300 Subject: [PATCH] added fancy support --- README.md | 1 + src/favicons/fancy.png | Bin 0 -> 218 bytes src/services/fancy.js | 47 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 src/favicons/fancy.png create mode 100644 src/services/fancy.js diff --git a/README.md b/README.md index 7447474d1..fe5945d33 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Currently supports the following feeds: * [Disqus](http://disqus.com) * [Dribbble](http://dribbble.com) * [Facebook Pages](http://www.facebook.com/pages) +* [Fancy](http://www.fancy.com) * [Flickr](http://flickr.com) * [Foomark](http://foomark.com) * [Formspring](http://formspring.com) diff --git a/src/favicons/fancy.png b/src/favicons/fancy.png new file mode 100644 index 0000000000000000000000000000000000000000..623cb41611f6167a9ec57fc120869ecc3c012498 GIT binary patch literal 218 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`3q4&NLn>}1Us$#O(6dcX9J@b1 zYWI(sZuifhhixV6OU9R}1(9Di%#G-MA+coo!OV}%;ZLL(E}d@hRVui8`M>r1x}X1l zzqdDF+vu2d<4Te#!xBc>h9ezj3@O@H44s0x40;AFJU>1>)^AIjAaRjx!EToMQn#c& zd^oIca4ef)-;y^Qd73_|rFt0&8-$k`Hf&n*coF;FbKY`x>QTx8x*q%<`V4OV-wM{{ S@_hq3mci52&t;ucLK6U!?pP}T literal 0 HcmV?d00001 diff --git a/src/services/fancy.js b/src/services/fancy.js new file mode 100644 index 000000000..f85ba36b0 --- /dev/null +++ b/src/services/fancy.js @@ -0,0 +1,47 @@ +(function($) { + 'use strict'; + + $.fn.lifestream.feeds.fancy = function( config, callback ) { + + var template = $.extend({}, + { + fancied: 'fancy\'d ${title}' + }, + config.template), + + parseFancy = function( input ) { + var output = [], i = 0, j; + + if(input.query && input.query.count && input.query.count > 0) { + j = input.query.count; + for( ; i