Line 68: | Line 68: | ||
for (i=0; i < entryBlocks.length; i++){ | for (i=0; i < entryBlocks.length; i++){ | ||
entryBlocks[i].ulList = document.createElement("ul"); | entryBlocks[i].ulList = document.createElement("ul"); | ||
+ | if(entryBlocks[i].length){ | ||
for (k=0; k < entryBlocks[i].a.length;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]); | ||
entryBlocks[i].ulList.appendChild(list_item); | entryBlocks[i].ulList.appendChild(list_item); | ||
+ | } | ||
} | } | ||
document.getElementById("div").appendChild(entryBlocks[i].Header); | document.getElementById("div").appendChild(entryBlocks[i].Header); |
Revision as of 16:36, 13 June 2018