An open API service indexing awesome lists of open source software.

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.

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.

![Screenshot](http://farm8.staticflickr.com/7186/6895754387_b8286958b1_z.jpg)

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/