Content in this section may be copyrighted to respective sites and authors.
');
//w('Under maintenance. Sorry for inconvenience.
');
for (var i = 0; i < obj.count ; i++) {
try{
var ent = obj.value.items[i];
var links = ent.link;
var comments = " ";
var siteUrl = links;
if (isArray(links)){
if (links.length > 4 ){
url = links[4].href;
}else{
url = links[links.length - 1].href;
}
comments = l(links[1].href,links[1].title,true);
}else{
url = links;
}
pos =url.indexOf("/",10);
if (pos > 0){
siteUrl = url.substring(0,pos);
}else{
siteUrl = url;
}
var pDate = ent.pubDate;
var title = ent.title ;
var author = "";
/* Proprietary author extraction*/
var authorRegex = /author="[^"]*"/;
var authr = title.match(authorRegex);
if (authr != null){
title = title.replace(authr,"");
authr = authr[0].replace("author=\"","");
authr = authr.replace("\"","");
}
if (ent.author != null){
author = ent.author.name;
if (ent.author.uri != null){
author = l(ent.author.uri,author,true);
}
if (authr != null){
author = authr;
}
author = ' - ' + author ;
}
temp = ent.description;
if (isNotDefined(temp)){
temp = ( ent.content == null ? ent.summary : ent.content).content;
temp = (temp.length == 0 && ent.summary != null ? ent.summary.content : temp);
if (isNotDefined(temp)){
temp = summary;
}else if (temp.length == 0){
temp = ent.summary.content;
}
}
if (temp.length == 0){
temp = ent.summary.content;
}
/*
To extract image tag first. TSome img tags has height and width attributes which limit resize. So extract src link and reconstrcut img tag.
Andy
*/
var regimg = /');
}else{
w('
');
}
d("FeedPeekTitle",title);
d("FeedPeekAuthor", ma[parseInt(mnth,10)] + ' ' + pDate.substring(8,10) + author);
d("FeedPeekSummary", pCnt + rmLink );
if (comments != " " && tags != 'Tags - '){
d("FeedPeekTags",tags);
d("FeedPeekComments",comments);
}
w('
');
}catch(err){
d("FeedPeekSummary",err );
}
}
}
function makeTagLink(main,tag){
if (tag == null)
return '';
if (tag.indexOf('undefined') > -1) {
return '';
}
var h = main + '/search/label/' + tag;
return l(h,tag,true);
}
function isNotDefined( variable)
{
return (typeof variable == "undefined");
}
function isArray(obj) {
return (obj.constructor.toString().indexOf("Array") > 0 );
}