if ( document.getElementById( options.target ) ) {
document.getElementById( options.target ).appendChild( containerDiv );
} else {
- throw ( "flickr target container doesn't exist" );
+ throw ( "flickr target container doesn't exist" );
}
// get the userid from Flickr API by using the username and apikey
_uri = "http://api.flickr.com/services/rest/?method=flickr.people.findByUsername&";
_uri += "username=" + options.username + "&api_key=" + options.apikey + "&format=json&jsoncallback=flickr";
- Popcorn.xhr.getJSONP( _uri, function( data ) {
+ Popcorn.getJSONP( _uri, function( data ) {
_userid = data.user.nsid;
getFlickrData();
});
* of the video reaches the start time provided by the
* options variable
*/
- start: function( event, options ){
+ start: function( event, options ) {
containerDiv.style.display = "inline";
},
/**
* of the video reaches the end time provided by the
* options variable
*/
- end: function( event, options ){
+ end: function( event, options ) {
containerDiv.style.display = "none";
},
_teardown: function( options ) {
};
},
{
- about:{
+ about: {
name: "Popcorn Flickr Plugin",
version: "0.2",
author: "Scott Downe, Steven Weerdenburg, Annasob",
website: "http://scottdowne.wordpress.com/"
},
- options:{
+ options: {
start: {
elem: "input",
type: "number",