This widget shows last played tracks from last.fm for a user. It also shows ‘Now Playing’ track if available.
Download:https://github.com/isDipesh/lastfm-widget/zipball/master
Integration:
Insert: <table id="last_fm_tracks"></table> where you want the script to write the track lists.
Add:
<script type="text/javascript" src="last_widget.js"></script>
<script type="text/javascript">
loadLastFMTracks('your-username');
</script> just before the end of the body tag </body> Don’t forget to replace your-username with your username. If you are using ID for the <table> other than last_fm_tracks, make sure you pass the ID string as the second parameter for the loadLastFMTracks() method.
To Dos: -
- Use
<div>instead of<table> - Better styling
- Find a way to get the feed direct from Last.fm (w/o using Yahoo Pipe as Proxy for JSON
Fork this from Github : https://github.com/isDipesh/lastfm-widget