';
for (var i = 0; i < data.feed.entry.length; i++) {
for (var j = 0; j < data.feed.entry[i].link.length; j++) {
if (data.feed.entry[i].link[j].rel == "alternate") {
url = data.feed.entry[i].link[j].href;
break;
}
}
for (var k = 0; k < data.feed.entry[i].link.length; k++) {
var avatar = data.feed.entry[i].link[k].href;
break;
}
var title = data.feed.entry[i].title.$t;
var author = data.feed.entry[i].author[0].name.$t;
var gd = data.feed.entry[i].published.$t,
year = gd.substring(0, 4),
month = gd.substring(5, 7),
day = gd.substring(8, 10),
date = MONTH_FORMAT[parseInt(month, 10)] + " " + day + ", " + year;
var tag = data.feed.entry[i].category[0].term;
var content = data.feed.entry[i].content.$t;
var description =
content
.replace(/
/g, " ")
.replace(/<.*?>/g, "")
.replace(/[<>]/g, "")
.substring(0, description_length) + "...";
var $content = $("
").html(content);
if (
content.indexOf("http://www.youtube.com/embed/") > -1 ||
content.indexOf("https://www.youtube.com/embed/") > -1
) {
var src2 = data.feed.entry[i].media$thumbnail.url;
var src2_size = src2.replace("/default.jpg", "/mqdefault.jpg");
var image = src2_size;
} else if ("" != data.feed.entry[i].media$thumbnail.url) {
var image = data.feed.entry[i].media$thumbnail.url.replace(
"/s72-c/",
"/s1600/"
);
} else {
image =
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6W9tksAXH61ny_Bj8VxxdDlv4e3Y5YF97tZOQRtVeIlQh3VFDrghLFaV7PxoxWeRxTXe47jvA8xFL_STQPj3MUhyaMGeJ7ySKHLkJ1AWS1UkxJoyjvXSHMD9murDQTdFw454ClqRQjjIl/s1/default.png";
}
output += '
";
}
output += "
";
softwebtuts.html(output);
$(".option:first-child").addClass("active");
$(".option").click(function () {
$(".option").removeClass("active");
$(this).addClass("active");
});
}
});