在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:christianvuerings/jquery-lifestream开源软件地址:https://github.com/christianvuerings/jquery-lifestream开源编程语言:JavaScript 92.1%开源软件介绍:jQuery Lifestream Plug-inShow a stream of your online activity. Check out the example or create your own lifestream instantly. RequirementsSupported feedsCurrently supports the following feeds:
Feel free to fork the project and add your own feeds in. Just send a pull request to christianvuerings/jquery-lifestream when you're finished. Extensions
Build
Available targetsUse
RequirementsUsageAdd the following to the <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//rawgithub.com/christianvuerings/jquery-lifestream/master/jquery.lifestream.min.js"></script>
<script>
$("#lifestream").lifestream({
list:[
{
service: "github",
user: "christianvuerings"
},
{
service: "twitter",
user: "christianvuer"
}
]
});
</script> The above code will always use the latest version of the script. If you want to use it in production, download the minified or uncompressed file and host it yourself. You also need to add a bit of HTML: <div id="lifestream"> </div> jQuery TemplatesYou have the ability to use jQuery templates for your feed. Checkout the template page to see an overview of the current available templates. Usage: {
service: 'deviantart',
user: 'gabbyd70',
template: {
deviationpost: 'heeft hetvolgende gepost: <a href="${url}">${title}</a>'
}
} ConfigurationThe plug-in accepts one configuration JSON object: $("#lifestream").lifestream({
classname: "lifestream",
feedloaded: feedcallback,
limit: 30,
list:[
{
service: "github",
user: "christianvuerings"
},
{
service: "twitter",
user: "christianvuer"
}
]
});
Commit to the projectAdd your own feedAdding in your own feed is pretty easy. Have a look at this commit which adds support for the last.fm feed. Add your favicon
How to commit?
Code Style Guidelines
for (var i = 0, j = length; i < j; i++) {
IdeasStuff that isn't implemented yet, but would be nice to have:
MentionsPlaces on the web where this plug-in got mentioned:
Used ByA list of sites that use the jQuery Lifestream plug-in: Alesh Houdek, Armin Roșu, BrainDump2.0, Dennis Metzcher, Devin Berg, Erik Ostrom, Ethan Brown, Libby Baldwin, Sam Tardif, Sebastix, Simon Gaeremynck, Song Gao, Sunny Walker, Roni Laukkarinen Special ThanksSpecial thanks all the committers and gabbyd70 for letting us use her DeviantART username. Version logHave a look at our tags to see what we've been working on. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论