Created
November 12, 2010 17:40
-
-
Save codepo8/674405 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+'</a></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