diff options
author | luxagraf <sng@luxagraf.net> | 2020-02-16 15:57:40 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-02-16 15:57:40 -0500 |
commit | 2a9538f7711dcea71ba5702ca94a9d9c00287ea4 (patch) | |
tree | e0fe5ea7c909b01e10bf6a8dd4abcb619b6924c9 /bin/temp.js | |
parent | 3165ef5abdb298108efa2ba3d339f70ca966315a (diff) |
added the rest of bin
Diffstat (limited to 'bin/temp.js')
-rw-r--r-- | bin/temp.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/temp.js b/bin/temp.js new file mode 100644 index 0000000..51585b4 --- /dev/null +++ b/bin/temp.js @@ -0,0 +1,13 @@ +var targetDiv = document.getElementById("tag_cloud_header") +var ul = document.createElement("ul"); +var links = [ "/u:luxagraf/t:luxagraf/t:@post/", "/u:luxagraf/t:%2523lhp/t:@post/", "/u:luxagraf/t:%2523flw/","/u:luxagraf/t:%2523rei/t:@post/"] +var text = ["Luxagraf Post Research", "LongHandPixels Post Research", "Freelance Writing Ideas", "REI Post Research"]; +for (var i=0; i<links.length; i++) { + var li = document.createElement("li"); + var link = document.createElement("a"); + link.setAttribute('href',links[i]); + link.innerHTML = text[i]; + li.appendChild(link); + ul.appendChild(li); +} +targetDiv.appendChild(ul); |