https://github.com/thinkphp/last.fm.moo
Get the recent tracks from a last.fm account and it produces structured HTML with in-build CSS classes for styling based on MooTools.
https://github.com/thinkphp/last.fm.moo
Last synced: 3 months ago
JSON representation
Get the recent tracks from a last.fm account and it produces structured HTML with in-build CSS classes for styling based on MooTools.
- Host: GitHub
- URL: https://github.com/thinkphp/last.fm.moo
- Owner: thinkphp
- Created: 2012-02-18T10:28:54.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-08T06:38:59.000Z (almost 14 years ago)
- Last Synced: 2024-04-14T14:54:26.110Z (almost 2 years ago)
- Language: JavaScript
- Homepage: http://thinkphp.ro/apps/lastfm/mootools/getJSON
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lastfm
======
This plugin will get the recent tracks from a last.fm account and it produces structured HTML with in-build CSS classes for styling.

How to use
----------
First you must to include the JS files in the head of your HTML document.
#HTML
google.load("mootools", "1.4.1");
Define some DIVs to inject the badge
#HTML
Then you can apply the method.
#JS
window.addEvent('domready', function(){
$('result').lastfm({username: 'aline_e_b'});
$('result2').lastfm({username: 'thinkphp'});
});
Example #1: http://thinkphp.ro/apps/lastfm/mootools/getJSON/
Example #2: http://thinkphp.ro/apps/lastfm/mootools/jsonp/
Example #3: http://thinkphp.ro/apps/lastfm/mootools/jsonp2/