jquery-lifestream
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Show a stream of your online activity with jQuery
# jQuery Lifestream Plug-in

![jQuery Lifestream Logo](http://christianvuerings.github.com/jquery-lifestream/design/logo_v1_64.png)

Show a stream of your online activity.
Check out [the example][example] or create [your own lifestream][melifestream] instantly.

[![Follow us on twitter](http://f.cl.ly/items/2z1p0w320g1q0T061m1u/twitter_follow.png)](http://twitter.com/jq_lifestream)

## Requirements
* [jQuery 1.4.2+](http://www.jquery.com)

## Supported feeds

Currently supports the following feeds:

* [Bitbucket](https://bitbucket.org/)
* [Bitly](http://bitly.com)
* [Blogger](http://blogger.com)
* [Citeulike](http://www.citeulike.org)
* [Dailymotion](http://dailymotion.com)
* [Delicious](http://delicious.com)
* [DeviantART](http://deviantart.com)
* [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)
* [Forrst](http://forrst.com)
* [Foursquare](http://foursquare.com)
* [Gimmebar](http://gimmebar.com)
* [Github](http://github.com)
* [Google+](http://plus.google.com)
* [Hypem](http://hypem.com/)
* [Instapaper](http://www.instapaper.com)
* [Iusethis](http://osx.iusethis.com/)
* [Last.fm](http://last.fm)
* [LibraryThing.com](http://librarything.com)
* [Linkedin.com](http://linkedin.com) (via [Network Updates RSS feed](http://www.linkedin.com/rssAdmin?display=&trk=uscp_rss))
* [Mendeley](http://mendeley.com)
* [Miso](http://gomiso.com)
* [Mlkshk](http://mlkshk.com)
* [Pinboard](http://pinboard.in)
* [Pocket](http://getpocket.com)
* [Posterous](http://posterous.com)
* [Quora](http://quora.com)
* [Reddit](http://reddit.com)
* [RSS](http://en.wikipedia.org/wiki/RSS)
* [Slideshare](http://slideshare.com)
* [Snipplr](http://snipplr.com)
* [Stackoverflow](http://stackoverflow.com)
* [Tumblr](http://tumblr.com)
* [Twitter](http://twitter.com)
* [Vimeo](http://vimeo.com)
* [Wikipedia](http://wikipedia.com)
* [Wordpress](http://wordpress.com)
* [Youtube](http://youtube.com)
* [Zotero](http://zotero.com)

Feel free to fork the project and add your own feeds in.
Just send a pull request to [christianvuerings/jquery-lifestream][jquery-lifestream] when you're finished.

## Extensions

* [Drupal - Social River](http://drupal.org/project/social_river) - jQuery lifestream as a drupal module called Social River.
* [Filter feeds](https://gist.github.com/1170205) - used by [codeandstuff.com](http://www.codeandstuff.com/)
* [Wordpress - WP Social Stream](https://wordpress.org/plugins/wp-social-stream)

## Build

    cd build
    make

### Available targets

Use `make target` and replace _target_ with the target you want to use.

* **jls**:
  Build jquery.lifestream.js, the non-minified version of jQuery Lifestream
* **jls-min**:
  Build jquery.lifestream.min.js, the minified version of jQuery Lifestream
* **jls-css**:
  Build css/lifestream.css, the stylesheet containing the favicons
* **script-min**:
  Build download/js/script.min.js, this script is the main script for the
  download page
* **uglifyjs**:
  Build download/js/uglify-cs.js, a custom version of UglifyJS patched
  to work in the browser
* **uglifyjs-min**:
  Build download/js/uglify-cs.min.js, minified version of UglifyJS
* **service-list**:
  Build download/services.json, a list of all the services which are available

### Requirements

* [Node](https://github.com/joyent/node/wiki/Installation)
* [Npm](http://npmjs.org/)
* [UglifyJS 2](https://github.com/mishoo/UglifyJS2)

## Usage

Add the following to the `` or `` tag of your HTML page.

``` html



```
The above code will always use the latest version of the script.
If you want to use it in production, download the [minified](https://github.com/christianvuerings/jquery-lifestream/raw/master/jquery.lifestream.min.js)
or [uncompressed](https://github.com/christianvuerings/jquery-lifestream/raw/master/jquery.lifestream.js) file and host it yourself.

You also need to add a bit of HTML:

```html
 
``` ### jQuery Templates You have the ability to use jQuery templates for your feed. Checkout the [template page](http://christianvuerings.github.com/jquery-lifestream/template.html) to see an overview of the current available templates. Usage: ``` javascript { service: 'deviantart', user: 'gabbyd70', template: { deviationpost: 'heeft hetvolgende gepost: ${title}' } } ``` ## Configuration The plug-in accepts one configuration JSON object: ``` javascript $("#lifestream").lifestream({ classname: "lifestream", feedloaded: feedcallback, limit: 30, list:[ { service: "github", user: "christianvuerings" }, { service: "twitter", user: "christianvuer" } ] }); ``` `classname`: The name of the main lifestream class. We use this for the main ul class e.g. lifestream and for the specific feeds e.g. lifestream-twitter `feedloaded`: (_function_) A callback function which is triggered each time a feed was loaded. `limit`: (_integer_) Specify how many elements you want in your lifestream (default = 10). `list`: (_array_) Array containing other JSON objects with information about each item. Each item should have a _service_ and a _user_. For more information about each _service_, check out the [source code][examplesource] of the [example page][example]. ## Commit to the project ### Add your own feed Adding in your own feed is pretty easy. Have a look at [this commit](https://github.com/christianvuerings/jquery-lifestream/commit/529a06db159b4123ee3b2cc604f3a3ed698c6e9a) which adds support for the last.fm feed. ### Add your favicon 1. [Convert](http://converticon.com/) the favicon.ico of a site to a .png file. (e.g. http://google.com/favicon.ico) 2. [Optimize](http://www.smushit.com/ysmush.it/) the .png file. Save it in src/favicons/. ### How to commit? 1. Push the finished code to your own remote repository. 2. Send a pull request to [christianvuerings/jquery-lifestream][jquery-lifestream]. ### Code Style Guidelines * Indentation: 2 spaces * Max column width: 78 characters * Trailing spaces: not allowed * Always use curly brackets {} for if/else/for * Put all `var` statements in the beginning of a function * Use === & !== for comparing variables * Use the following spacing rules: ``` javascript for (var i = 0, j = length; i < j; i++) { ``` * Use jshint on your files. `.jshintrc` contains the necessary configuration ## Ideas Stuff that isn't implemented yet, but would be nice to have: * Add support for [Twitter Web Intents](http://dev.twitter.com/pages/intents) ## Mentions Places on the web where this plug-in got mentioned: * [Andref.it](http://andref.it/blog/2011/aggrega-la-tua-attivita-online-con-jquery-lifestream/) - Italian * [Bitconfig](http://bitconfig.com/lifestream/bitconfig_lifestream.html) * [BlogUpstairs](http://blogupstairs.com/framework/javascript-framework/jquery/jquery-lifestream-show-a-stream-of-your-online-activity-with-jquery/) * [ChurchMag](http://churchm.ag/jquery-lifestream/) * [Codevisually](http://codevisually.com/jquery-lifestream-create-a-stream-of-your-online-activity/) * [DailyJS](http://dailyjs.com/2011/06/21/jquery-roundup/) * [DesignBeep](http://designbeep.com/2011/06/02/17-fresh-and-functional-jquery-plugins-you-will-love/) * [Devl.im](http://devl.im/jquery-lifestream-show-a-stream-of-your-online-activity/) * [Doejo](http://doejo.com/blog/jquery-lifestream-a-simple-way-to-track-your-online-activity-in-one-spot) * [Eire Media](http://repo.eire-media.com/go/) * [Elliptips](http://elliptips.info/2011/09/lifestream-votre-vie-virtuelle-sous-forme-de-timeline-en-jquery/) - French * [Erik Ostrom Blog](http://slapdash.erikostrom.com/post/9797738423/just-finally-added-something-to-my-ostensible-web) * [Forrst](http://forrst.com/posts/jQuery_Lifestream_Create_a_stream_of_your_on-ruG) * [HTML.it](http://javascript.html.it/script/vedi/6468/le-nostre-attivita-su-internet-con-il-plugin-jquery-lifestream/) - Italian * [JavaScript Experiments](http://javascriptexperiments.blogspot.com/2012/03/my-lifestream-example.html) * [jQuery Plugins](http://jquery-plugins.net/jquery-lifestream-show-stream-of-your-online-activity) * [jQuery Rain](http://www.jqueryrain.com/2011/06/jquery-lifestream/) * [jQuery this](http://www.jquerythisplugin.com/plugins/jquery-lifestream-your-social-feed/) * [jqueryitalia](http://twitter.com/jqueryitalia/status/77999618046169088) * [jQueryScript.Net](http://www.jqueryscript.net/other/Show-A-Stream-of-Your-Online-Activity-With-jQuery-lifestream.html) * [Lifestream Blog](http://lifestreamblog.com/create-a-dynamic-activity-stream-with-the-jquery-lifestream-script/) * [Maddyzone](http://tech-blog.maddyzone.com/plugins/lifestream-jquery-plugin) * [Script Tutorials](http://www.script-tutorials.com/10-interesting-jquery-plugins-november-2011/) * [Simong Gaeremynck Blog](http://blog.gaeremynck.com/jquery-lifestream-and-followmy-tv/) * [Slodive.com](http://slodive.com/web-development/jquery-plugins/) * [Softpedia](http://webscripts.softpedia.com/script/Modules/jQuery-Plugins/jQuery-Lifestream-68762.html) - Softpedia pick * [Speckyboy](http://speckyboy.com/2011/12/07/the-50-most-useful-jquery-plugins-from-2011/) * [Spyrestudios](http://spyrestudios.com/31-fantastic-new-jquery-plugins-for-web-developers/) * [phpspot](http://phpspot.org/blog/archives/2011/06/jquerylifestrea.html) - Japanese * [ProgrammableWeb](http://www.programmableweb.com/mashup/jquery-lifestream) - Mashup of the Day on 17/06/2011 * [Sitepoint](http://www.sitepoint.com/top-5-jquery-social-feed-plugins-2013/) * [Smashing Magazine](http://twitter.com/smashingmag/status/77993263981797376) * [Splashnology](http://www.splashnology.com/article/50-new-jquery-plugins-for-web-developers/4141/) * [Tactoom.com](http://tactoom.com/interest/Hardcore/4ed34793de3b117715002952) * [The Changelog](http://thechangelog.com/post/7262848148/jquery-lifestream-show-a-stream-of-your-online-activity) * [The Next Web](http://thenextweb.com/dd/2011/07/08/jquery-lifestream-makes-it-easy-to-pop-your-online-activity-onto-any-page/) * [Unheap](http://www.unheap.com/other/social-rss/lifestream/) * [Webhouse](http://www.webhouseit.com/jquery-lifestream-aggregriamo-le-nostre-attivita-online/) * [Weboptimize](http://www.aranda.se/2011/12/17/10-interesting-jquery-plugins/) * [YJL](http://blog.yjl.im/2012/02/jquery-lifestream-plugin.html) ## Used By A list of sites that use the jQuery Lifestream plug-in: [Alesh Houdek](http://alesh.com), [Armin Roșu](http://armin.ro/), [BrainDump2.0](http://mgiulio.altervista.org/), [Dennis Metzcher](http://lifestream.metzcher.com/), [Devin Berg](http://www.devinberg.com/), [Erik Ostrom](http://www.erikostrom.com/), [Ethan Brown](http://www.etano.net/), [Libby Baldwin](http://libbybaldwin.github.com/), [Sam Tardif](http://www.codeandstuff.com/), [Sebastix](http://www.sebastix.nl/), [Simon Gaeremynck](http://gaeremynck.com/), [Song Gao](https://song.gao.io/), [Sunny Walker](http://miraclesalad.com/), [Roni Laukkarinen](http://rolle.io/) ## Special Thanks Special thanks all the [committers](https://raw.github.com/christianvuerings/jquery-lifestream/master/COMMITTERS) and [gabbyd70](http://gabbyd70.deviantart.com/) for letting us use her DeviantART username. ## Version log Have a look at [our tags](https://github.com/christianvuerings/jquery-lifestream/tags) to see what we've been working on. [jquery-lifestream]: https://github.com/christianvuerings/jquery-lifestream [melifestream]: http://christianvuerings.github.com/jquery-lifestream/me/ [example]: http://christianvuerings.github.com/jquery-lifestream/example.html "Example page" [examplesource]: https://github.com/christianvuerings/jquery-lifestream/blob/master/example.html#files "Source code of the example page"

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。