Created
September 7, 2010 06:33
-
-
Save zachinglis/567960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
google.load("jquery", "1.3.2"); | |
</script> | |
<script type="text/javascript"> | |
function show_last_track(JSONdata) { | |
var last_track = JSONdata.recenttracks.track; | |
var track_artist = last_track.artist['#text']; | |
var track_name = last_track.name; | |
var track = track_artist + " - " + track_name; | |
$('#song').text(track); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment