Skip to content

Instantly share code, notes, and snippets.

@osmestad
Forked from codepo8/techthursday.js
Created November 13, 2010 12:01
Show Gist options
  • Save osmestad/675270 to your computer and use it in GitHub Desktop.
Save osmestad/675270 to your computer and use it in GitHub Desktop.
function ydntt(o){
var out = document.getElementById('results'),
cpy = document.getElementById('copy'),
html = '',
disp = '',
n,i,j;
for(i=0,j=o.length;i<j;i++){
n = o[i].n.replace('}','</a>');
n = n.replace('{','<a href="'+o[i].u+'">');
html+='<li>'+n+'</li>';
}
cpy.innerHTML = '<ul>'+html+'</ul>';
out.innerHTML = html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment