Widget:Flickr

This widget function flickr_image(photo_id,size){ $.ajax(        {             url: "https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=8f5adadb0506295e25fc95dc6042296e&photo_id=" + photo_id + "&format=json&jsoncallback=?",             type: "GET",             cache: true,             dataType: 'jsonp',             success: function(data)              {               var id = data.photo.id;               var server = data.photo.server;               var secret = data.photo.secret;               var img_tag = '';               document.writeln('');               var flickr_html_id ="flickrx";               var elem = document.getElementById(flickr_html_id);               if(typeof elem !== 'undefined' && elem !== null) { elem.innerHTML = img_tag; }else{ console.log("no id") }

}        });      }

window.onload = function { if (window.jQuery) { // jQuery is loaded console.log("jQuery has loaded!"); } else { // jQuery is not loaded console.log("jQuery has not loaded!"); } }

. var photo_id = '52354120119'; var size = 'w'; flickr_image(photo_id,size); mmm