[Pyukiwiki-cvs 0009923] CVS update: PyukiWiki-Devel/skin

Back to archive index

PyukiWiki CVS Commit pyuki****@lists*****
2012年 3月 21日 (水) 06:19:03 JST


Index: PyukiWiki-Devel/skin/twitstat.js
diff -u /dev/null PyukiWiki-Devel/skin/twitstat.js:1.1
--- /dev/null	Wed Mar 21 06:19:03 2012
+++ PyukiWiki-Devel/skin/twitstat.js	Wed Mar 21 06:19:03 2012
@@ -0,0 +1,8 @@
+/* "PyukiWiki" ver 0.2.0-p3-dev2 $$
+ * $Id: twitstat.js,v 1.1 2012/03/20 21:19:03 papu Exp $
+ *
+ * Copyright 2009 Brandon Leonardo & Ryan McGrath
+ * Released under an MIT style license
+ */
+
+var tu="http://twitter.com/",qs='"',hs=' href="',as="<a",os=' onclick="return ou(';var twitstat={lol:false,jsonp:function(){if(d.all&&d.getElementById("twitstat_badge_call")){d.getElementById("twitstat_badge_call").src=twitstat.updateurl}else{if(d.getElementById("twitstat_badge_call")){var b=d.getElementById("twitstat_badge_call");b.parentNode.removeChild(b)}else{var c=d.createElement("script");if(twitstat.updateurl==""){c.src=twitstat.url}else{c.src=twitstat.updateurl}c.id="twitstat_badge_call";d.body.appendChild(c)}}if(!twitstat.lol&&/reddit/.test(d.referrer)){twitstat.lol=true}},init:function(b){twitstat.props=b;twitstat.url=twitstat.searchurl+"&rpp="+b.max+"&callback=twitstat.construct&q="+encodeURIComponent(b.keywords);if(b.near){twitstat.url+="&near="+b.near}if(b.within&&b.units){twitstat.url+="&within="+b.within+"&units="+b.units}if(typeof w.attachEvent!="undefined"){w.attachEvent("onload",twitstat.jsonp)}else{if(typeof d.addEventListener!=="undefined"){d.addEventList
 ener("DOMContentLoaded",twitstat.jsonp,false)}else{d.write(unescape('%3Cscript src="'+twitstat.url+'" type="text/javascript"%3E%3C/script%3E'))}}},loop:function(f,l){var e=tu,k=qs,g=hs;a=as;o=os;popup=twitter_popup(0);j=twitter_popup(1);var b=[];for(var c=0;c<f.length;c++){var m='<li style="margin: 5px; font: normal 12px/14px helvetica, sans-serif; min-height: 54px; height: auto !important; height: 54px;">';m+='<img src="'+f[c].profile_image_url+'" style="float: left; margin: 0 5px 10px 0; width: 48px; height: 48px;">';m+="<div>";m+=a+popup+g+e+f[c].from_user+'"';m+=o+"'"+e+f[c].from_user+"','"+j+"'";m+=');"  style="color: '+twitstat.props.link_color+'">'+f[c].from_user+"</a>:";m+="<span>"+twitstat.convertUrls(f[c].text)+"</span></div></li>";b[c]=m}return(l&&f.length>0?'<div style="display: none;">'+b.join("")+"</div>":b.join(""))},construct:function(f){var e=d.getElementById(twitstat.props.badge_container),c=twitstat.loop(f.results,false),i=d.createDocumentFragment();e.styl
 e.width=twitstat.props.width+"px";twitstat.holder=d.createElement("div");refresh=f.refresh_url;refresh=refresh.replace("?since_id","&since_id");twitstat.updateurl=twitstat.searchurl+refresh+"&callback=twitstat.update";var b='<ul style="list-style-type: none; overflow: hidden; height: '+(twitstat.props.max*60)+"px; padding: 0; margin: 0; color:"+twitstat.props.content_font_color+"; border: 1px solid "+twitstat.props.border_color+"; background-color: "+twitstat.props.content_background_color+';">',h='<div style="font: normal 14px/16px helvetica, sans-serif; -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; -webkit-border-top-left-radius: 2px; -webkit-border-top-right-radius: 2px; color: '+twitstat.props.header_font_color+"; background-color: "+twitstat.props.header_background+'; margin: 0; padding: 4px 4px 2px;">'+twitstat.props.title+"</div>",g='<div style="font: normal 11px/12px helvetica, sans-serif; color: '+twitstat.props.header_font_color+"; -moz-border-
 radius-bottomright: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px;background-color: "+twitstat.props.header_background+'; margin: 0; padding: 4px; text-align: right;"></div>';c=c.replace(/<img (.+?)>/g,"<img $1 />");twitstat.holder.innerHTML="<div>"+h+b+c+"</ul>"+g+"</div>";i.appendChild(twitstat.holder.firstChild);e.appendChild(i);twitstat.list=e.getElementsByTagName("UL")[0];return false},convertUrls:function(i){var c=tu,f=qs,e=hs,b=as,g=os;popup=twitter_popup(0);j=twitter_popup(1);tc=twitstat.props.link_color;tc=tc.replace(twitstat.linkcolorfromRE,"_C_$1");i=i.replace(twitstat.urlRE,function(h){return twitstat.replaceUrl(h)});i=i.replace(twitstat.twitterHashRE,b+popup+' title="#$1" style="color: '+tc+f+e+c+'search/%23$1"'+g+"'"+c+"search/%23$1','"+j+"');\">#$1</a>");i=i.replace(twitstat.twitterUsernameRE,b+popup+' title="@$1" style="color: '+tc+f+e+c+'$1"'+g+"'"+c+"$1','"+j+"');\">@$1</a>");i=i.rep
 lace(twitstat.linkcolortoRE,"#$1");return i},twitterUsernameRE:/@(\w+)/gm,twitterHashRE:/\#([A-Za-z0-9\-\_]+)/gm,urlRE:/((((ht|f){1}(tp:[/][/]){1})|((www.){1}))[-a-zA-Z0-9@:;%_\+.~#?\&//=]+)/gm,linkcolorfromRE:/\#([A-Za-z0-9]+)/gm,linkcolortoRE:/_C_([A-Za-z0-9]+)/gm,replaceUrl:function(c){var f=qs,e=hs,b=as,g=os;p=twitter_popup(0);j=twitter_popup(1);tc=twitstat.props.link_color;tc=tc.replace(twitstat.linkcolorfromRE,"_C_$1");return b+p+e+c+'"'+g+"'"+c+"','"+j+'\');" title="'+c+'" style="color: '+tc+'">'+((c.length>34)?(c.substring(0,20)+"&hellip;"):c)+"</a>"},badge:{init:function(b){twitstat.init(b)}},props:{},url:"",searchurl:"?cmd=twitter",updateurl:"",fxopac:0,list:{},holder:{}};function twitter_popup(b){var c="";if(twitstat.props.popup==1){if(b==1){c="_blank"}else{if(twitstat.props.xhtml==0){c=' target="_blank"'}}}return c};
Index: PyukiWiki-Devel/skin/twitstat.js.src
diff -u /dev/null PyukiWiki-Devel/skin/twitstat.js.src:1.1
--- /dev/null	Wed Mar 21 06:19:03 2012
+++ PyukiWiki-Devel/skin/twitstat.js.src	Wed Mar 21 06:19:03 2012
@@ -0,0 +1,189 @@
+// "PyukiWiki" ver 0.2.0-p3-dev2 $$
+// $Id: twitstat.js.src,v 1.1 2012/03/20 21:19:03 papu Exp $
+
+/* Copyright 2009 Brandon Leonardo (http://twitter.com/shiftb) & Ryan McGrath (http://twitter.com/ryanmcgrath) - Released under an MIT style license (http://media.twitstat.us/license.txt) */
+/* Changed by papu (@nanakochi123456) */
+
+var tu="http://twitter.com/",
+	qs='"',
+	hs=' href="',
+	as='<a',
+	os=' onclick="return ou(';
+
+var twitstat = {
+    lol: false,
+
+    jsonp: function() {
+		if(d.all && d.getElementById("twitstat_badge_call")) {
+            d.getElementById("twitstat_badge_call").src = twitstat.updateurl;
+        } else if(d.getElementById("twitstat_badge_call")) {
+            var lol = d.getElementById("twitstat_badge_call");
+            lol.parentNode.removeChild(lol);
+
+        } else {
+            var element = d.createElement("script");
+            if(twitstat.updateurl == "") element.src = twitstat.url;
+            else element.src = twitstat.updateurl;
+            element.id = "twitstat_badge_call";
+            d.body.appendChild(element);
+        }
+
+        if(!twitstat.lol && /reddit/.test(d.referrer)) {
+
+
+            twitstat.lol = true;
+        }
+//        setTimeout(twitstat.jsonp, 6000);
+    },
+
+//    fx: function(obj) {
+//        if(obj.style.display == "none") { obj.style.filter = "alpha(opacity:0)"; obj.style.opacity = 0; obj.style.display = "block"; }
+//        if(twitstat.fxopac < 100) {
+//            twitstat.fxopac += 4;
+//            var opdiv = twitstat.fxopac / 100;
+//            obj.style.filter = "alpha(opacity:" + twitstat.fxopac + ")";
+//            obj.style.opacity = opdiv;
+//            setTimeout(function() { twitstat.fx(obj); }, 30);
+//        } else {
+//            twitstat.fxopac = 0;
+//        }
+//    },
+
+    init: function(props) {
+        twitstat.props = props;
+//        twitstat.url = twitstat.searchurl + "?rpp=" + props.max + "&callback=twitstat.construct&q=" + encodeURIComponent(props.keywords);
+        twitstat.url = twitstat.searchurl + "&rpp=" + props.max + "&callback=twitstat.construct&q=" + encodeURIComponent(props.keywords);
+        if(props.near) twitstat.url += "&near=" + props.near;
+        if(props.within && props.units) twitstat.url += "&within=" + props.within + "&units=" + props.units;
+        if(typeof w.attachEvent != 'undefined') w.attachEvent('onload', twitstat.jsonp);
+        else if(typeof d.addEventListener !== 'undefined') d.addEventListener("DOMContentLoaded", twitstat.jsonp, false);
+        else d.write(unescape('%3Cscript src="' + twitstat.url + '" type="text/javascript"%3E%3C/script%3E'));
+    },
+
+    loop: function(results, hidden) {
+		var	t=tu,
+			q=qs,
+			h=hs;
+			a=as;
+			o=os;
+		popup=twitter_popup(0);
+		j=twitter_popup(1);
+        var resultListArr = [];
+        for(var i = 0; i < results.length; i++) {
+			var liStr = '<li style="margin: 5px; font: normal 12px/14px helvetica, sans-serif; min-height: 54px; height: auto !important; height: 54px;">';
+			liStr += '<img src="' + results[i].profile_image_url + '" style="float: left; margin: 0 5px 10px 0; width: 48px; height: 48px;">';
+			liStr += '<div>';
+			liStr += a + popup + h + t  + results[i].from_user + '"';
+			liStr += o + "'" + t + results[i].from_user + "','" + j + "'";
+			liStr += ');"  style="color: ' + twitstat.props.link_color + '">' + results[i].from_user + '</a>:';
+			liStr += '<span>' + twitstat.convertUrls(results[i].text) + '</span></div></li>';
+			resultListArr[i] = liStr;
+		}
+        return (hidden && results.length > 0 ? '<div style="display: none;">' + resultListArr.join("") + '</div>' : resultListArr.join(""));
+    },
+
+    construct: function(results) {
+        var badge_container = d.getElementById(twitstat.props.badge_container),
+		    resultListArr = twitstat.loop(results['results'], false),
+            frag = d.createDocumentFragment();
+
+        badge_container.style.width = twitstat.props.width + "px";
+        twitstat.holder = d.createElement('div');
+		refresh=results['refresh_url'];
+		refresh=refresh.replace("?since_id","&since_id");
+        twitstat.updateurl = twitstat.searchurl + refresh + "&callback=twitstat.update";
+        var list_container = '<ul style="list-style-type: none; overflow: hidden; height: ' + (twitstat.props.max * 60) + 'px; padding: 0; margin: 0; color:' + twitstat.props.content_font_color +
+        '; border: 1px solid ' + twitstat.props.border_color + '; background-color: ' + twitstat.props.content_background_color + ';">',
+        badge_header = '<div style="font: normal 14px/16px helvetica, sans-serif; -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; ' +
+        '-webkit-border-top-left-radius: 2px; -webkit-border-top-right-radius: 2px; color: ' + twitstat.props.header_font_color +
+        '; background-color: ' + twitstat.props.header_background + '; margin: 0; padding: 4px 4px 2px;">' + twitstat.props.title + '</div>',
+
+//        badge_footer = '<div style="font: normal 11px/12px helvetica, sans-serif; color: ' + twitstat.props.header_font_color +
+//        '; -moz-border-radius-bottomright: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px;background-color: '
+//        + twitstat.props.header_background + '; margin: 0; padding: 4px; text-align: right;">' + footerLinks + '</div>';
+
+        badge_footer = '<div style="font: normal 11px/12px helvetica, sans-serif; color: ' + twitstat.props.header_font_color +
+        '; -moz-border-radius-bottomright: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px;background-color: '
+        + twitstat.props.header_background + '; margin: 0; padding: 4px; text-align: right;"></div>';
+
+//		innerhtml = "<div>" + badge_header + list_container + resultListArr + "</ul>" + badge_footer + "</div>";
+resultListArr= resultListArr.replace(/<img (.+?)>/g,"<img $1 />");
+
+        twitstat.holder.innerHTML = "<div>" + badge_header + list_container + resultListArr + "</ul>" + badge_footer + "</div>";
+//        twitstat.holder.innerHTML = innerhtml;
+        frag.appendChild(twitstat.holder.firstChild);
+
+        badge_container.appendChild(frag);
+        twitstat.list = badge_container.getElementsByTagName("UL")[0];
+        return false;
+    },
+
+//    update: function(results) {
+//        if(results['results'].length > 0) {
+//			refresh=results['refresh_url'];
+//			refresh=refresh.replace("?since_id","&since_id");
+//            twitstat.updateurl = twitstat.updateurl = twitstat.searchurl + refresh + "&callback=twitstat.update";
+//            var resultListArr = twitstat.loop(results['results'], true);
+//                frag = d.createDocumentFragment();
+//            twitstat.holder.innerHTML = resultListArr;
+//            frag.appendChild(twitstat.holder.firstChild);
+//            twitstat.list.insertBefore(frag, twitstat.list.childNodes[0]);
+//            if(results['results'].length > 0) twitstat.fx(twitstat.list.childNodes[0]);
+//            return false;
+//        }
+//    },
+
+    convertUrls: function(text) {
+		var	t=tu,
+			q=qs,
+			h=hs,
+			a=as,
+			o=os;
+		popup=twitter_popup(0);
+		j=twitter_popup(1);
+		tc=twitstat.props.link_color;
+		tc=tc.replace(twitstat.linkcolorfromRE,'_C_$1');
+        text = text.replace(twitstat.urlRE, function(t){ return twitstat.replaceUrl(t); });
+//        return text.replace(twitstat.twitterUsernameRE, a + popup + ' style="color: ' + tc + q + h + t + '$1">@$1</a>');
+        text= text.replace(twitstat.twitterHashRE, a + popup + ' title="#$1" style="color: '+ tc +  q + h + t + 'search/%23$1"' + o + "'" + t + 'search/%23$1' + "','" + j + "'" + ');">#$1</a>');
+        text=text.replace(twitstat.twitterUsernameRE, a + popup + ' title="@$1" style="color: ' + tc + q + h + t + '$1"' + o + "'" + t + '$1' + "','" + j + "'" + ');">@$1</a>');
+        text= text.replace(twitstat.linkcolortoRE, '#$1');
+		return text;
+    },
+
+    twitterUsernameRE: /@(\w+)/gm,
+    twitterHashRE: /\#([A-Za-z0-9\-\_]+)/gm,
+    urlRE: /((((ht|f){1}(tp:[/][/]){1})|((www.){1}))[-a-zA-Z0-9@:;%_\+.~#?\&//=]+)/gm,
+    linkcolorfromRE: /\#([A-Za-z0-9]+)/gm,
+    linkcolortoRE: /_C_([A-Za-z0-9]+)/gm,
+    replaceUrl: function(t) {
+		var	q=qs,
+			h=hs,
+			a=as,
+			o=os;
+		p=twitter_popup(0);
+		j=twitter_popup(1);
+		tc=twitstat.props.link_color;
+		tc=tc.replace(twitstat.linkcolorfromRE,'_C_$1');
+		return a + p + h + t + '"' + o + "'" + t + "','" + j + "'" + ');" title="'+t+'" style="color: '+tc +'">'+ ((t.length > 34) ? (t.substring(0, 20) + '&hellip;') : t) +'</a>'; },
+    badge: { init: function(props) { twitstat.init(props); } },
+    props: {},
+    url: "",
+    searchurl: "?cmd=twitter",
+    updateurl: "",
+    fxopac: 0,
+    list: {},
+    holder: {}
+}
+
+function twitter_popup(jsflag) {
+	var target='';
+	if(twitstat.props.popup == 1) {
+		if(jsflag == 1) {
+			target="_blank";
+		} else if(twitstat.props.xhtml == 0) {
+			target=' target="_blank"';
+		}
+	}
+	return target;
+}
Index: PyukiWiki-Devel/skin/twitter.js
diff -u PyukiWiki-Devel/skin/twitter.js:1.435 PyukiWiki-Devel/skin/twitter.js:1.436
--- PyukiWiki-Devel/skin/twitter.js:1.435	Tue Mar 20 18:04:34 2012
+++ PyukiWiki-Devel/skin/twitter.js	Wed Mar 21 06:19:03 2012
@@ -1,8 +1,5 @@
 /* "PyukiWiki" ver 0.2.0-p3-dev2 $$
- * $Id: twitter.js,v 1.435 2012/03/20 09:04:34 papu Exp $
- *
- * Copyright 2009 Brandon Leonardo & Ryan McGrath
- * Released under an MIT style license
+ * $Id: twitter.js,v 1.436 2012/03/20 21:19:03 papu Exp $
  */
 
-var tu="http://twitter.com/",qs='"',hs=' href="',as="<a",os=' onclick="return ou(';var twitstat={lol:false,jsonp:function(){if(d.all&&d.getElementById("twitstat_badge_call")){d.getElementById("twitstat_badge_call").src=twitstat.updateurl}else{if(d.getElementById("twitstat_badge_call")){var b=d.getElementById("twitstat_badge_call");b.parentNode.removeChild(b)}else{var c=d.createElement("script");if(twitstat.updateurl==""){c.src=twitstat.url}else{c.src=twitstat.updateurl}c.id="twitstat_badge_call";d.body.appendChild(c)}}if(!twitstat.lol&&/reddit/.test(d.referrer)){twitstat.lol=true}},init:function(b){twitstat.props=b;twitstat.url=twitstat.searchurl+"&rpp="+b.max+"&callback=twitstat.construct&q="+encodeURIComponent(b.keywords);if(b.near){twitstat.url+="&near="+b.near}if(b.within&&b.units){twitstat.url+="&within="+b.within+"&units="+b.units}if(typeof w.attachEvent!="undefined"){w.attachEvent("onload",twitstat.jsonp)}else{if(typeof d.addEventListener!=="undefined"){d.addEventList
 ener("DOMContentLoaded",twitstat.jsonp,false)}else{d.write(unescape('%3Cscript src="'+twitstat.url+'" type="text/javascript"%3E%3C/script%3E'))}}},loop:function(f,l){var e=tu,k=qs,g=hs;a=as;o=os;popup=twitter_popup(0);j=twitter_popup(1);var b=[];for(var c=0;c<f.length;c++){var m='<li style="margin: 5px; font: normal 12px/14px helvetica, sans-serif; min-height: 54px; height: auto !important; height: 54px;">';m+='<img src="'+f[c].profile_image_url+'" style="float: left; margin: 0 5px 10px 0; width: 48px; height: 48px;">';m+="<div>";m+=a+popup+g+e+f[c].from_user+'"';m+=o+"'"+e+f[c].from_user+"','"+j+"'";m+=');"  style="color: '+twitstat.props.link_color+'">'+f[c].from_user+"</a>:";m+="<span>"+twitstat.convertUrls(f[c].text)+"</span></div></li>";b[c]=m}return(l&&f.length>0?'<div style="display: none;">'+b.join("")+"</div>":b.join(""))},construct:function(f){var e=d.getElementById(twitstat.props.badge_container),c=twitstat.loop(f.results,false),i=d.createDocumentFragment();e.styl
 e.width=twitstat.props.width+"px";twitstat.holder=d.createElement("div");refresh=f.refresh_url;refresh=refresh.replace("?since_id","&since_id");twitstat.updateurl=twitstat.searchurl+refresh+"&callback=twitstat.update";var b='<ul style="list-style-type: none; overflow: hidden; height: '+(twitstat.props.max*60)+"px; padding: 0; margin: 0; color:"+twitstat.props.content_font_color+"; border: 1px solid "+twitstat.props.border_color+"; background-color: "+twitstat.props.content_background_color+';">',h='<div style="font: normal 14px/16px helvetica, sans-serif; -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; -webkit-border-top-left-radius: 2px; -webkit-border-top-right-radius: 2px; color: '+twitstat.props.header_font_color+"; background-color: "+twitstat.props.header_background+'; margin: 0; padding: 4px 4px 2px;">'+twitstat.props.title+"</div>",g='<div style="font: normal 11px/12px helvetica, sans-serif; color: '+twitstat.props.header_font_color+"; -moz-border-
 radius-bottomright: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px;background-color: "+twitstat.props.header_background+'; margin: 0; padding: 4px; text-align: right;"></div>';c=c.replace(/<img (.+?)>/g,"<img $1 />");twitstat.holder.innerHTML="<div>"+h+b+c+"</ul>"+g+"</div>";i.appendChild(twitstat.holder.firstChild);e.appendChild(i);twitstat.list=e.getElementsByTagName("UL")[0];return false},convertUrls:function(i){var c=tu,f=qs,e=hs,b=as,g=os;popup=twitter_popup(0);j=twitter_popup(1);tc=twitstat.props.link_color;tc=tc.replace(twitstat.linkcolorfromRE,"_C_$1");i=i.replace(twitstat.urlRE,function(h){return twitstat.replaceUrl(h)});i=i.replace(twitstat.twitterHashRE,b+popup+' title="#$1" style="color: '+tc+f+e+c+'search/%23$1"'+g+"'"+c+"search/%23$1','"+j+"');\">#$1</a>");i=i.replace(twitstat.twitterUsernameRE,b+popup+' title="@$1" style="color: '+tc+f+e+c+'$1"'+g+"'"+c+"$1','"+j+"');\">@$1</a>");i=i.rep
 lace(twitstat.linkcolortoRE,"#$1");return i},twitterUsernameRE:/@(\w+)/gm,twitterHashRE:/\#([A-Za-z0-9\-\_]+)/gm,urlRE:/((((ht|f){1}(tp:[/][/]){1})|((www.){1}))[-a-zA-Z0-9@:;%_\+.~#?\&//=]+)/gm,linkcolorfromRE:/\#([A-Za-z0-9]+)/gm,linkcolortoRE:/_C_([A-Za-z0-9]+)/gm,replaceUrl:function(c){var f=qs,e=hs,b=as,g=os;p=twitter_popup(0);j=twitter_popup(1);tc=twitstat.props.link_color;tc=tc.replace(twitstat.linkcolorfromRE,"_C_$1");return b+p+e+c+'"'+g+"'"+c+"','"+j+'\');" title="'+c+'" style="color: '+tc+'">'+((c.length>34)?(c.substring(0,20)+"&hellip;"):c)+"</a>"},badge:{init:function(b){twitstat.init(b)}},props:{},url:"",searchurl:"?cmd=twitter",updateurl:"",fxopac:0,list:{},holder:{}};function twitter_popup(b){var c="";if(twitstat.props.popup==1){if(b==1){c="_blank"}else{if(twitstat.props.xhtml==0){c=' target="_blank"'}}}return c};
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('x P,H=1M,1H="1T",1F="1V",Z="1R",1h=15,1i="1U",11=13,X="#1x",16=12,14="#1x",1p=15,Q="S",K=0,29=/@(\\w+)/u,25=/\\#([^\\s]+)/u,1W=/((((1l|f){1}(1b:[/][/]){1})|((1j.){1}))[-a-1d-1e-9@:;%R\\+.~#?\\&\\/\\/=]+)/u,1B=/S([0-3-2-f][0-3-2-f][0-3-2-f]|[0-3-2-f][0-3-2-f][0-3-2-f][0-3-2-f][0-3-2-f][0-3-2-f])/u;8 1K(h,l,k,m,c,j,d,e,g,b,a){x f;f=\'<J 28="\'+b+\'" t="M-7:\'+4(d)+"; 1g:  1X 22 "+4(m)+\';">\';f=f+\'<C><1t t="M-7:\'+4(c)+"; 7:"+4(j)+\';">\'+l+"</1t></C>";f=f+\'<C><B t="M-7:\'+4(d)+"; 7:"+4(e)+\';"><z 26="v"></z></B></C>\';f=f+"</J>";f=f.y(1B,"#$1");H=k;5(a==1){K=1}5(h.W(/^@/)){h=h.y(/^@/,"");18(h)}1r{1D(h)}$("#1K").V(f)}8 1D(c,b,d,a){$.1k("D://T.v.E/T.1f
 ?23="+H+"&q="+1E(c)+"&1a=?",8(l){x q,m="",s=1H,g=1F,p=Z;5(b){s=b}5(d){g=d}5(a){p=a}19(i=0;i<H;i++){1c{q=l.27[i];x r=q.O,k=q.24,o=q.1Y,j=q.1m,h=q.1G,f=q.10;m=m+U(k,o,j,r,s,g,p,h,f)}Y(n){}}$("#v").V(m)})}8 18(c,b,d,a){$.1k("D://v.E/21/1Z/"+c+".1f?1a=?",8(j){x f="",g="",h="",l="";5(b){g=b}5(d){h=d}5(a){l=a}19(i=0;i<H;i++){1c{f=f+U(j[i].F.1S,j[i].F.1P,j[i].F.1m,j[i].O,g?g:j[i].F.1L,h?h:j[i].F.1O,l?1Q:j[i].F.1N,j[i].1G,j[i].10)}Y(k){}}$("#v").V(f)})}8 U(p,d,h,o,j,m,g,f,c){x b=/@(\\w+)/u,l=/\\#([A-2m-2p-9\\-\\R]+)/u,e=/\\#([^\\s]+)/u,a=/((((1l|f){1}(1b:[/][/]){1})|((1j.){1}))[-a-1d-1e-9@:;%R\\+.~#?\\&\\/\\/=]+)/u,n=/S([0-3-2-f][0-3-2-f][0-3-2-f]|[0-3-2-f][0-3-2-f][0-3-2-f][0-3-2-f][0-3-2-f][0-3-2-f])/u;P=m;o=o.y(a,8(q){6 1I(q)});o=o.y(b,G("D://v.E/$1","@$1","@$1"));o=o.y(e,8(q){6 1J(q)});x k="<1o t=\'M-7:"+4(g)+"\';><J><C><B>"+G("D://v.E/"+p,d)+"<2k 1g=\'0\' 2l=\'"+h+"\' /></a></B><B 2d=\'2a\'><1n t=\'L-I: "+1h+"N; 7:"+4(1i)+";\'>"+G("D://v.E/"+p,d,d)+"</a></1n><z t=\'L-I: "+11+"N
 ; 7:"+4(X)+"\'>&17;@"+p+"&17;</z><z t=\'L I:"+16+"N; 7:"+4(14)+"\'>("+2b 2f(f)+")</z><2g /><z t=\'L-I:"+1p+"N; 7:"+4(j)+"\'>"+o+"</B></C></J></1o>";k=k.y(n,"#$1");6 k}8 1J(a){6 G("D://v.E/T/"+1E(a),a,a)}8 1I(a){6 G(a,a,((a.2h>2e)?(a.2i(0,20)+"&2j;"):a))}8 G(a,d,b){x e;5(K==1){e=\'<a 1C="1q" K="1s" 1u="\'+a+\'" 1v="6 1A(\\\'\'+a+"\',\'1s\');\\" 1z=\\""+d+\'" t="O-1y:1w;7:\'+4(P)+\'";>\'}1r{e=\'<a 1C="1q" 1u="\'+a+\'" 1v="6 1A(\\\'\'+a+"\',\'2c\');\\" 1z=\\""+d+\'" t="O-1y:1w;7:\'+4(P)+\'";>\'}5(b){6 e+b+"</a>"}6 e}8 4(a){5(2r a==="2q"){6"2n"}a=a.y(/#/,"");a=a.2o();5(a.W(/^[0-3-2-f][0-3-2-f][0-3-2-f]/)){6 Q+a}5(a.W(/^......$/)){6 Q+a}6 a};',62,152,'||Fa|9A|mkcolor|if|return|color|function|||||||||||||||||||||style|gm|twitter||var|replace|span||td|tr|http|com|user|mklink|counts|size|table|target|font|background|px|text|lc|color_hash|_|____C____|search|twitter_line|html|match|screen_name_color|catch|default_profile_sidebar_fill_color|source|screen_name_font_size|||info_color||in
 fo_font_size|nbsp|getuser|for|callback|tp|try|zA|Z0|json|border|name_font_size|name_color|www|getJSON|ht|profile_image_url|strong|div|text_font_size|tlink|else|_blank|th|href|onclick|none|555|decoration|title|ou|colortoRE|class|getsearch|encodeURIComponent|default_profile_link_color|created_at|default_profile_text_color|replaceUrl|mkhash|twitwindow|profile_text_color|500|profile_sidebar_fill_color|profile_link_color|name|profile_sidebar_file_collor|e1e1e1|screen_name|333333|black|307ace|urlRE|1px|from_user_name|user_timeline||statuses|solid|rpp|from_user|twitterHashi18nRE|id|results|width|twitterUsernameRE|top|new|_self|valign|34|Date|br|length|substring|hellip|img|src|Za|transport|toLowerCase|z0|undefined|typeof'.split('|'),0,{}))
Index: PyukiWiki-Devel/skin/twitter.js.src
diff -u PyukiWiki-Devel/skin/twitter.js.src:1.430 PyukiWiki-Devel/skin/twitter.js.src:1.431
--- PyukiWiki-Devel/skin/twitter.js.src:1.430	Tue Mar 20 18:04:34 2012
+++ PyukiWiki-Devel/skin/twitter.js.src	Wed Mar 21 06:19:03 2012
@@ -1,189 +1,199 @@
 // "PyukiWiki" ver 0.2.0-p3-dev2 $$
-// $Id: twitter.js.src,v 1.430 2012/03/20 09:04:34 papu Exp $
+// $Id: twitter.js.src,v 1.431 2012/03/20 21:19:03 papu Exp $
 
-/* Copyright 2009 Brandon Leonardo (http://twitter.com/shiftb) & Ryan McGrath (http://twitter.com/ryanmcgrath) - Released under an MIT style license (http://media.twitstat.us/license.txt) */
-/* Changed by papu (@nanakochi123456) */
+/* jquery twitter client 0.1 by papu (@nanakochi123456) */
 
-var tu="http://twitter.com/",
-	qs='"',
-	hs=' href="',
-	as='<a',
-	os=' onclick="return ou(';
-
-var twitstat = {
-    lol: false,
-
-    jsonp: function() {
-		if(d.all && d.getElementById("twitstat_badge_call")) {
-            d.getElementById("twitstat_badge_call").src = twitstat.updateurl;
-        } else if(d.getElementById("twitstat_badge_call")) {
-            var lol = d.getElementById("twitstat_badge_call");
-            lol.parentNode.removeChild(lol);
-
-        } else {
-            var element = d.createElement("script");
-            if(twitstat.updateurl == "") element.src = twitstat.url;
-            else element.src = twitstat.updateurl;
-            element.id = "twitstat_badge_call";
-            d.body.appendChild(element);
-        }
-
-        if(!twitstat.lol && /reddit/.test(d.referrer)) {
-
-
-            twitstat.lol = true;
-        }
-//        setTimeout(twitstat.jsonp, 6000);
-    },
-
-//    fx: function(obj) {
-//        if(obj.style.display == "none") { obj.style.filter = "alpha(opacity:0)"; obj.style.opacity = 0; obj.style.display = "block"; }
-//        if(twitstat.fxopac < 100) {
-//            twitstat.fxopac += 4;
-//            var opdiv = twitstat.fxopac / 100;
-//            obj.style.filter = "alpha(opacity:" + twitstat.fxopac + ")";
-//            obj.style.opacity = opdiv;
-//            setTimeout(function() { twitstat.fx(obj); }, 30);
-//        } else {
-//            twitstat.fxopac = 0;
-//        }
-//    },
-
-    init: function(props) {
-        twitstat.props = props;
-//        twitstat.url = twitstat.searchurl + "?rpp=" + props.max + "&callback=twitstat.construct&q=" + encodeURIComponent(props.keywords);
-        twitstat.url = twitstat.searchurl + "&rpp=" + props.max + "&callback=twitstat.construct&q=" + encodeURIComponent(props.keywords);
-        if(props.near) twitstat.url += "&near=" + props.near;
-        if(props.within && props.units) twitstat.url += "&within=" + props.within + "&units=" + props.units;
-        if(typeof w.attachEvent != 'undefined') w.attachEvent('onload', twitstat.jsonp);
-        else if(typeof d.addEventListener !== 'undefined') d.addEventListener("DOMContentLoaded", twitstat.jsonp, false);
-        else d.write(unescape('%3Cscript src="' + twitstat.url + '" type="text/javascript"%3E%3C/script%3E'));
-    },
-
-    loop: function(results, hidden) {
-		var	t=tu,
-			q=qs,
-			h=hs;
-			a=as;
-			o=os;
-		popup=twitter_popup(0);
-		j=twitter_popup(1);
-        var resultListArr = [];
-        for(var i = 0; i < results.length; i++) {
-			var liStr = '<li style="margin: 5px; font: normal 12px/14px helvetica, sans-serif; min-height: 54px; height: auto !important; height: 54px;">';
-			liStr += '<img src="' + results[i].profile_image_url + '" style="float: left; margin: 0 5px 10px 0; width: 48px; height: 48px;">';
-			liStr += '<div>';
-			liStr += a + popup + h + t  + results[i].from_user + '"';
-			liStr += o + "'" + t + results[i].from_user + "','" + j + "'";
-			liStr += ');"  style="color: ' + twitstat.props.link_color + '">' + results[i].from_user + '</a>:';
-			liStr += '<span>' + twitstat.convertUrls(results[i].text) + '</span></div></li>';
-			resultListArr[i] = liStr;
+var lc, counts=500,
+	default_profile_text_color="333333",
+	default_profile_link_color="307ace",
+	default_profile_sidebar_fill_color="e1e1e1",
+	name_font_size=15,
+	name_color="black",
+	screen_name_font_size=13,
+	screen_name_color="#555",
+	info_font_size=12,
+	info_color="#555",
+	text_font_size=15,
+	color_hash="____C____",
+	target=0,
+	twitterUsernameRE= /@(\w+)/gm,
+//	twitterHashRE= /\#([A-Za-z0-9\-\_]+)/gm,
+	twitterHashi18nRE= /\#([^\s]+)/gm,
+	urlRE= /((((ht|f){1}(tp:[/][/]){1})|((www.){1}))[-a-zA-Z0-9@:;%_\+.~#?\&\/\/=]+)/gm,
+	colortoRE= /____C____([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]|[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])/gm;
+
+function twitwindow(keyword, title, max, border_color, header_background, header_font_color, content_background_color, content_font_color, link_color, width, popup) {
+	var html;
+	html='<table width="' + width + '" style="background-color:' + mkcolor(content_background_color) + '; border:  1px solid ' + mkcolor(border_color) + ';">';
+	html=html+'<tr><th style="background-color:' + mkcolor(header_background) + '; color:' + mkcolor(header_font_color) + ';">' + title + '</th></tr>';
+	html=html+'<tr><td style="background-color:' + mkcolor(content_background_color) + '; color:' + mkcolor(content_font_color) + ';"><span id="twitter"></span></td></tr>';
+	html=html+'</table>';
+	html = html.replace(colortoRE, '#$1');
+	counts=max;
+	if(popup == 1) target=1;
+	if(keyword.match(/^@/)) {
+		keyword=keyword.replace(/^@/, '');
+		getuser(keyword);
+	} else {
+		getsearch(keyword);
+	}
+	$("#twitwindow").html(html);
+}
+
+function getsearch(str, text_color, link_color, sidebar_color) {
+
+	$.getJSON("http://search.twitter.com/search.json?rpp=" + counts + "&q=" + encodeURIComponent(str) + "&callback=?", function(data) {
+		var a, html="",
+			profile_text_color=default_profile_text_color,
+			profile_link_color=default_profile_link_color,
+			profile_sidebar_fill_color=default_profile_sidebar_fill_color;
+
+		if(text_color) profile_text_color=text_color;
+		if(link_color) profile_link_color=link_color;
+		if(sidebar_color) profile_sidebar_fill_color=sidebar_color;
+
+		for(i=0; i< counts;i++) {
+			try {
+				a=data.results[i];
+					var	text=a.text,
+					user=a.from_user,
+					user_name=a.from_user_name,
+					image=a.profile_image_url,
+					time=a.created_at,
+					source=a.source;
+
+				html=html + twitter_line(
+					user, user_name, image, text,
+					profile_text_color,
+					profile_link_color,
+					profile_sidebar_fill_color,
+					time,source
+				);
+			} catch (e) {}
 		}
-        return (hidden && results.length > 0 ? '<div style="display: none;">' + resultListArr.join("") + '</div>' : resultListArr.join(""));
-    },
+		$("#twitter").html(html);
+	});
+}
+
+function getuser(str, text_color, link_color, sidebar_color) {
 
-    construct: function(results) {
-        var badge_container = d.getElementById(twitstat.props.badge_container),
-		    resultListArr = twitstat.loop(results['results'], false),
-            frag = d.createDocumentFragment();
-
-        badge_container.style.width = twitstat.props.width + "px";
-        twitstat.holder = d.createElement('div');
-		refresh=results['refresh_url'];
-		refresh=refresh.replace("?since_id","&since_id");
-        twitstat.updateurl = twitstat.searchurl + refresh + "&callback=twitstat.update";
-        var list_container = '<ul style="list-style-type: none; overflow: hidden; height: ' + (twitstat.props.max * 60) + 'px; padding: 0; margin: 0; color:' + twitstat.props.content_font_color +
-        '; border: 1px solid ' + twitstat.props.border_color + '; background-color: ' + twitstat.props.content_background_color + ';">',
-        badge_header = '<div style="font: normal 14px/16px helvetica, sans-serif; -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; ' +
-        '-webkit-border-top-left-radius: 2px; -webkit-border-top-right-radius: 2px; color: ' + twitstat.props.header_font_color +
-        '; background-color: ' + twitstat.props.header_background + '; margin: 0; padding: 4px 4px 2px;">' + twitstat.props.title + '</div>',
-
-//        badge_footer = '<div style="font: normal 11px/12px helvetica, sans-serif; color: ' + twitstat.props.header_font_color +
-//        '; -moz-border-radius-bottomright: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px;background-color: '
-//        + twitstat.props.header_background + '; margin: 0; padding: 4px; text-align: right;">' + footerLinks + '</div>';
-
-        badge_footer = '<div style="font: normal 11px/12px helvetica, sans-serif; color: ' + twitstat.props.header_font_color +
-        '; -moz-border-radius-bottomright: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px;background-color: '
-        + twitstat.props.header_background + '; margin: 0; padding: 4px; text-align: right;"></div>';
-
-//		innerhtml = "<div>" + badge_header + list_container + resultListArr + "</ul>" + badge_footer + "</div>";
-resultListArr= resultListArr.replace(/<img (.+?)>/g,"<img $1 />");
-
-        twitstat.holder.innerHTML = "<div>" + badge_header + list_container + resultListArr + "</ul>" + badge_footer + "</div>";
-//        twitstat.holder.innerHTML = innerhtml;
-        frag.appendChild(twitstat.holder.firstChild);
-
-        badge_container.appendChild(frag);
-        twitstat.list = badge_container.getElementsByTagName("UL")[0];
-        return false;
-    },
-
-//    update: function(results) {
-//        if(results['results'].length > 0) {
-//			refresh=results['refresh_url'];
-//			refresh=refresh.replace("?since_id","&since_id");
-//            twitstat.updateurl = twitstat.updateurl = twitstat.searchurl + refresh + "&callback=twitstat.update";
-//            var resultListArr = twitstat.loop(results['results'], true);
-//                frag = d.createDocumentFragment();
-//            twitstat.holder.innerHTML = resultListArr;
-//            frag.appendChild(twitstat.holder.firstChild);
-//            twitstat.list.insertBefore(frag, twitstat.list.childNodes[0]);
-//            if(results['results'].length > 0) twitstat.fx(twitstat.list.childNodes[0]);
-//            return false;
-//        }
-//    },
-
-    convertUrls: function(text) {
-		var	t=tu,
-			q=qs,
-			h=hs,
-			a=as,
-			o=os;
-		popup=twitter_popup(0);
-		j=twitter_popup(1);
-		tc=twitstat.props.link_color;
-		tc=tc.replace(twitstat.linkcolorfromRE,'_C_$1');
-        text = text.replace(twitstat.urlRE, function(t){ return twitstat.replaceUrl(t); });
-//        return text.replace(twitstat.twitterUsernameRE, a + popup + ' style="color: ' + tc + q + h + t + '$1">@$1</a>');
-        text= text.replace(twitstat.twitterHashRE, a + popup + ' title="#$1" style="color: '+ tc +  q + h + t + 'search/%23$1"' + o + "'" + t + 'search/%23$1' + "','" + j + "'" + ');">#$1</a>');
-        text=text.replace(twitstat.twitterUsernameRE, a + popup + ' title="@$1" style="color: ' + tc + q + h + t + '$1"' + o + "'" + t + '$1' + "','" + j + "'" + ');">@$1</a>');
-        text= text.replace(twitstat.linkcolortoRE, '#$1');
-		return text;
-    },
-
-    twitterUsernameRE: /@(\w+)/gm,
-    twitterHashRE: /\#([A-Za-z0-9\-\_]+)/gm,
-    urlRE: /((((ht|f){1}(tp:[/][/]){1})|((www.){1}))[-a-zA-Z0-9@:;%_\+.~#?\&//=]+)/gm,
-    linkcolorfromRE: /\#([A-Za-z0-9]+)/gm,
-    linkcolortoRE: /_C_([A-Za-z0-9]+)/gm,
-    replaceUrl: function(t) {
-		var	q=qs,
-			h=hs,
-			a=as,
-			o=os;
-		p=twitter_popup(0);
-		j=twitter_popup(1);
-		tc=twitstat.props.link_color;
-		tc=tc.replace(twitstat.linkcolorfromRE,'_C_$1');
-		return a + p + h + t + '"' + o + "'" + t + "','" + j + "'" + ');" title="'+t+'" style="color: '+tc +'">'+ ((t.length > 34) ? (t.substring(0, 20) + '&hellip;') : t) +'</a>'; },
-    badge: { init: function(props) { twitstat.init(props); } },
-    props: {},
-    url: "",
-    searchurl: "?cmd=twitter",
-    updateurl: "",
-    fxopac: 0,
-    list: {},
-    holder: {}
-}
-
-function twitter_popup(jsflag) {
-	var target='';
-	if(twitstat.props.popup == 1) {
-		if(jsflag == 1) {
-			target="_blank";
-		} else if(twitstat.props.xhtml == 0) {
-			target=' target="_blank"';
+	$.getJSON("http://twitter.com/statuses/user_timeline/" + str + ".json?callback=?", function(data) {
+		var html="",
+			profile_text_color="",
+			profile_link_color="",
+			profile_sidebar_fill_color="";
+		if(text_color) profile_text_color=text_color;
+		if(link_color) profile_link_color=link_color;
+		if(sidebar_color) profile_sidebar_fill_color=sidebar_color;
+
+		for(i=0; i< counts;i++) {
+			try {
+				html=html + twitter_line(
+					data[i].user.screen_name,
+						data[i].user.name,
+					data[i].user.profile_image_url,
+					data[i].text,
+					profile_text_color ? profile_text_color : data[i].user.profile_text_color,
+					profile_link_color ? profile_link_color : data[i].user.profile_link_color,
+					profile_sidebar_fill_color ? profile_sidebar_file_collor : data[i].user.profile_sidebar_fill_color,
+					data[i].created_at,
+					data[i].source
+				);
+			} catch (e) {}
 		}
+		$("#twitter").html(html);
+	});
+}
+
+function twitter_line(screen_name, name, image, text
+		    , text_color, link_color, sidebar_fill_color, time, source) {
+	var
+		twitterUsernameRE= /@(\w+)/gm,
+		twitterHashRE= /\#([A-Za-z0-9\-\_]+)/gm,
+		twitterHashi18nRE= /\#([^\s]+)/gm,
+		urlRE= /((((ht|f){1}(tp:[/][/]){1})|((www.){1}))[-a-zA-Z0-9@:;%_\+.~#?\&\/\/=]+)/gm,
+		colortoRE= /____C____([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]|[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])/gm;
+
+	lc=link_color;
+	text = text.replace(
+		urlRE, function(t) {
+			return replaceUrl(t);
+		}
+	);
+
+	text= text.replace(
+		twitterUsernameRE,
+			mklink("http://twitter.com/$1","@$1","@$1")
+	);
+
+	text= text.replace(
+		twitterHashi18nRE, function(t) {
+			return mkhash(t);
+		}
+	);
+	var html="<div style='background-color:" + mkcolor(sidebar_fill_color) + "';>" +
+		"<table><tr><td>" +
+		mklink(
+			"http://twitter.com/" + screen_name,
+			name) +
+		"<img border='0' src=\'" +
+		image +
+		"\' /></a>" +
+		"</td><td valign='top'>" +
+
+		"<strong style='font-size: " + name_font_size + "px; color:" + mkcolor(name_color) + ";'>" +
+		mklink(
+			"http://twitter.com/" + screen_name,
+			name, name) +
+		"</a></strong>" +
+		"<span style='font-size: " + screen_name_font_size + "px; color:" + mkcolor(screen_name_color) + "'>" +
+		"&nbsp;@" + screen_name +
+		"&nbsp;</span>" +
+		"<span style='font size:" + info_font_size + "px; color:" + mkcolor(info_color) + "'>(" +
+//		"ƒ\[ƒXF" + data[i].source + "A" +
+//		"Žž:" +
+		new Date(time) +
+		")</span><br />" +
+		"<span style='font-size:" + text_font_size + "px; color:" + mkcolor(text_color) +"'>" +
+		text +
+		"</td></tr></table></div>";
+
+	html = html.replace(colortoRE, '#$1');
+	return html;
+}
+
+function mkhash(keyword) {
+	return mklink("http://twitter.com/search/" + encodeURIComponent(keyword) , keyword, keyword)
+
+}
+function replaceUrl(t) {
+	return mklink(t, t, ((t.length > 34) ? (t.substring(0, 20) + '&hellip;') : t));
+}
+
+function mklink(url, title, title2) {
+	var c;
+	if(target == 1) {
+		c="<a class=\"tlink\" target=\"_blank\" href=\"" + url + "\" onclick=\"return ou(\'" + url + "\',\'_blank\');\" title=\"" + title + "\" style=\"text-decoration:none;color:" + mkcolor(lc) + "\";>";
+	} else {
+		c="<a class=\"tlink\" href=\"" + url + "\" onclick=\"return ou(\'" + url + "\',\'_self\');\" title=\"" + title + "\" style=\"text-decoration:none;color:" + mkcolor(lc) + "\";>";
+	}
+
+	if(title2) {
+		return c + title2 + "</a>";
+	}
+	return c;
+}
+
+function mkcolor(color) {
+	if(typeof color === "undefined") return "transport";
+	color = color.replace(/#/, '');
+	color=color.toLowerCase()
+
+	if(color.match(/^[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]/)) {
+ 		return color_hash + color;
+	}
+	if(color.match(/^......$/)) {
+		return color_hash + color;
 	}
-	return target;
+	return color;
 }



Pyukiwiki-cvs メーリングリストの案内
Back to archive index