Line 33: | Line 33: | ||
function addLink(Name_Url){ | function addLink(Name_Url){ | ||
− | for(i = 0; i<= | + | for(i = 0; i<=entryBlocks.length; i++){ |
if(entryBlocks[i].letter==(Name.toUpperCase())[0]){ | if(entryBlocks[i].letter==(Name.toUpperCase())[0]){ | ||
entryBlocks[i].addLink(Name_Url); | entryBlocks[i].addLink(Name_Url); | ||
Line 48: | Line 48: | ||
var subObj; | var subObj; | ||
var as; | var as; | ||
− | for (i = 0; i < | + | for (i = 0; i < entryBlocks.length; i++){ |
entryBlocks[i].Url_name.sort(); | entryBlocks[i].Url_name.sort(); | ||
− | for (k = 0; k < | + | for (k = 0; k < entryBlocks[i].Url_name.length; k++){ |
temp = entryBlocks[i].Url_name[k].split(",",1); | temp = entryBlocks[i].Url_name[k].split(",",1); | ||
as = document.createElement("a"); | as = document.createElement("a"); | ||
Line 64: | Line 64: | ||
//takes the link tags and adds them to a list | //takes the link tags and adds them to a list | ||
var list_item; | var list_item; | ||
− | for (i=0; i < | + | for (i=0; i < entryBlocks).length; i++){ |
entryBlocks[i].ulList = document.createElement("ul"); | entryBlocks[i].ulList = document.createElement("ul"); | ||
− | for (k=0; k < | + | for (k=0; k < entryBlocks[i].a.length;k++){ |
list_item = document.createElement("li"); | list_item = document.createElement("li"); | ||
list_item.appendChild(entryBlocks[i].a[k]); | list_item.appendChild(entryBlocks[i].a[k]); |
Revision as of 16:33, 13 June 2018