From 2a0c7d95147db5b68b8a1efc46b1c52711ee6f94 Mon Sep 17 00:00:00 2001 From: denise rigato Date: Mon, 2 Jan 2012 22:58:46 -0500 Subject: [PATCH] fixed indentation --- plugins/rdio/popcorn.rdio.js | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/plugins/rdio/popcorn.rdio.js b/plugins/rdio/popcorn.rdio.js index 7d2003de..82749ea9 100644 --- a/plugins/rdio/popcorn.rdio.js +++ b/plugins/rdio/popcorn.rdio.js @@ -1,4 +1,49 @@ // Rdio Plug-in +/** + * Rdio popcorn plug-in + * Appends Rdio album track listings to an element on the page. + * Can also append a user's playlist to an element on the page. + * Option paramter can be in two forms: + * Options parameter will take a start, end, target, artist, album, and type or + * Options parameter will take a start, end, target, person, id, playlist, and type + * Start is the time that you want this plug-in to execute + * End is the time that you want this plug-in to stop executing + * Target is the id of the document element that the images are appended to + * Artist is the name of who's album image will display + * Album is the album that will display of the specified Artist + * Person is the Rdio member who's playlist will display + * ID is the playlist's unqiue Rdio playlist identifier + * Playlist is the name of the playlist + * Type specifies if the element is an album or playlist + * + + * + * @param {Object} options + * + * Example 1: + var p = Popcorn( "#video" ) + .rdio({ + start: 2, + end: 10, + target: "rdiodiv", + artist: "Jamiroquai", + album: "Synkronized", + type: "album" + }) + * + * Example 2: + var p = Popcorn( "#video" ) + .rdio({ + start: 10, + end: 20, + target: "rdiodiv", + person: "diggywiggy", + id: 413517, + playlist: "sunday", + type: "playlist" + }) +**/ + (function( Popcorn ) { var _album = {}, _container = {},