Skip to content

Instantly share code, notes, and snippets.

@alexstrat
Created June 13, 2012 11:20
Show Gist options
  • Save alexstrat/2923510 to your computer and use it in GitHub Desktop.
Save alexstrat/2923510 to your computer and use it in GitHub Desktop.
case 'FIND_VALUE':
if(args[1] !== null) {
html = [
'<ul>',
'<i>FOUND</i><br>',
'<li><b>Value : </b><code>'+args[1].value+'</code></li>',
'<li><b>Expiration : </b>',
(args[1].exp<0) ?
'<i>never</i>':
'<time rel=\'tooltip\' datetime=\''+(new Date(args[1].exp)).toISOString()+'\' data-placement=\'bottom\'>'+(new Date(args[1].exp).toString())+'</time>',
'</li>',
'</ul>'].join('\n');
} else{
html = '<i>NOT FOUND</i>';
}
html = html + '<br>' + KadOHui.helper.peerTable(args[0], rpc.getTarget())
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment