/* * If you want to copy the code below, please DO NOT delete or modify this note * * Author : Copycat91 * Website : http://infotentangblog.blogspot.com/ * Description : * Creating a recent post widget classified by labels. * * Inspired from : a comment on http://tutorial-jitu.blogspot.com/ * Thanks a lot for : http://buzz.blogger.com/ * Created by : NetBeans IDE 6.5 */ var num = jumlah_maksimum_post; var wsumm = dengan_ringkasan; var summlen = jumlah_karakter_ringkasan; var json; var labels; function entryHasLabel(entry, label){ if(label == "*"){return true;} // always true if label is "*" var labels = getPostLabels(entry); return isExists(labels, label); } function getAllLabels(json){ var labels = []; var entries = json.feed.entry; for(var i=0; i" + label; } s += ""; document.getElementById("pbl_labels").innerHTML = s; } function showPosts(posts){ var s = ""; if(!wsumm){s += "";} document.getElementById("pbl_posts").innerHTML = s; } function stripHTML(s) { var c; var intag = false; var newstr = ""; for(var i=0; i"){intag = false;} if(c == ">"){newstr += " ";} else if(!intag){newstr += c;} } return newstr; }