1// feed 07gadget 2 3// -------------------------------------------------------------------- 4// feedã®box 5 6// gadgetã¤ã³ã¿ã¼ãã§ã¤ã¹ 7function feed07(gadget){ 8 gadget.loadCaption = feedLoadCaption; 9 gadget.loadBody = feedLoadBody; 10 gadget.help = null; 11 gadget.cfInitialize = null; 12}; 13 14function feedLoadCaption(){ 15 if(getParam(this.id,'caption')){ 16 this.header.innerHTML = getParam(this.id,'caption'); 17 }else{ 18 this.header.innerHTML = 'ææ°ã®è¨äº'; 19 }; 20}; 21 22function feedLoadBody(dvindex){ 23 getXml(getParam(this.id,'src'),'feedApplyFeed',this.id); 24}; 25 26function feedApplyFeed(o,dvindex){ 27 if(!o || !o.rss || !o.rss.channel || !o.rss.channel.items)return; 28 29 // body 30 var sHtml = ''; 31 for(var i in o.rss.channel.items){ 32 var it = o.rss.channel.items[i]; 33 sHtml += '<a href="'+it.link+'">'+it.title+'</a><br />'; 34 sHtml += it.description.replace(/<br *\/*>/gi,'')+'<br /><br />'; 35 } 36 sHtml = '<span class="feed07">'+sHtml+'</span>'; 37 ggadgets[dvindex].body.innerHTML = sHtml; 38 39 // header 40 if(getParam(ggadgets[dvindex].id,'caption')){ 41 var sCaption = getParam(ggadgets[dvindex].id,'caption'); 42 sCaption = sCaption.replace(/&caption;/g,o.rss.channel.title); 43 ggadgets[dvindex].header.innerHTML = '<a href="'+o.rss.channel.link+'">'+sCaption+'</a>'; 44 } 45}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.