Error: please choose a profile gallery or board gallery.")
} else {
if (profile === true) {
url = urlPrefix + username + "/feed.rss&num=" + thumbnailCount
} else {
if (board === true && boardname === "") {
$("#pinterest-gallery").append("
Error: Please specify a boardname.")
}
url = urlPrefix + username + "/" + boardname + "/rss&num=" + thumbnailCount
}
}
$.ajax({
url: url,
dataType: "jsonp",
success: function(e) {
$.each(e.responseData.feed.entries, function(t) {
var n = e.responseData.feed.entries;
var r = n[t].title;
var i = n[t].link;
var s = n[t].content;
var o = s.indexOf("http");
var u = s.indexOf('">');
var a = s.substring(o, u);
var f = $('
' + r + "");
if (newWindow === true) {
$(".pinterest-link").attr("target", "_blank")
}
f.appendTo("#pinterest-gallery").css("background-image", "url(" + a + ")")
})
}
});
//]]>