Skip to content

About

This is a simple jQuery plugin to display your recently played tracks from last.fm. You can show multiple feeds on a single page and set a unique refresh time for every single one. Also you have various options to control what is showed.

Resources

Stars

2 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Last.fm jQuery Plugin

Just a simple jQuery plugin that shows data of a given last.fm username.

See the demo here

Recent Tracks

Here is an example to show the recently played tracks:

$('#lastBox').lastplayed({
	apikey:		'f65b2b...',
	username:	'YourName'
});

Options

Now Playing

Usage:

$('#nowPlayingBox').nowplaying({
	apikey:			'b25b9595...',
	username:		'Username',
	refresh:		30,
	icon:			'http://cdn.last.fm/flatness/global/icon_eq.gif'
});

Options

apikey: (string) Last.fm API key - get it from here: http://www.lastfm.com/api/account username: (string) username refresh: (int) number of seconds to check for new tracks - optional, default is 0 (no refresh) icon: (string) url of a Icon showed beside the text - optional, default is false hide: (bool) hides the element when nothing is playing - optional, default is false notplayingtext: (string) text that is shown when nothing is played - optional, default is 'nothing playing'

About

This is a simple jQuery plugin to display your recently played tracks from last.fm. You can show multiple feeds on a single page and set a unique refresh time for every single one. Also you have various options to control what is showed.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors