jQuery Plugin To Display Recently Scrobbled Tracks On Last.fm
File Size: | 5.17 KB |
---|---|
Views Total: | 365 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
Just another jQuery plugin which fetches and displays an user's recently scrobbled songs on Last.fm. Requires Last.fm API key.
How to use it:
1. Place the jQuery lastfm-recent-tracks.js script after you've added jQuery library.
<script src="//code.jquery.com/jquery-2.2.2.min.js"></script> <script src="lastfm-recent-tracks.js"></script>
2. Insert your Last.fm API key into the data-lfm-api
attribute and specify the username using the data-lfm-user
attribute.
<div class="container" data-lfm-user="USERNAME" data-lfm-api="API KEY"> </div>
3. You can also specify the maximum number of Last.fm tracks to display using the data-lfm-limit
attribute.
<div class="container" data-lfm-user="USERNAME" data-lfm-api="API KEY" data-lfm-limit="5"> </div>
4. Style the plugin with your own CSS rules.
.lfm { ... } .lfm-track { ... } .lfm-artwork { ... } .lfm-artwork img { ... } .lfm-trackname { ... }
This awesome jQuery plugin is developed by wiredimage. For more Advanced Usages, please check the demo page or visit the official website.