Skip to content

Instantly share code, notes, and snippets.

View mb-14's full-sized avatar
🏠
Working from home

Miroojin Bakshi mb-14

🏠
Working from home
View GitHub Profile
@mb-14
mb-14 / picasa.js
Last active December 19, 2015 15:29
pull picasaweb images for ColorBox with jquery
var user='117087180594749809131' //replace with your userID
var album='5629167390655395985' // and albumId
var url = 'http://picasaweb.google.com/data/feed/base/user/:user_id/albumid/:album_id?alt=json&kind=photo&hl=en_US&fields=entry(title,gphoto:numphotos,media:group(media:content,media:thumbnail)) ';
url = url.replace(/:user_id/, user).replace(/:album_id/, album);
function buildLinks(json) {
var photo,
$thumb,
$anchor;