PageSourceSearch

http://ex-salon.com/nucleus/plugins/gadget07feed/js/box.js

js ex-salon.com collected 2026-10-08 20:25:16 UTC 1,273 bytes, 45 lines download raw bytes

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.