Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // build index in html
- logger("Building Index HTML");
- var htmlIndex = "",
- indexItem = "",
- len = userNames.length;
- logger("userNames.length is: "+len);
- logger("(this is used to limit the counter for the indexing loop and should not be 0)");
- for ( var i=0; i<len; i++) {
- logger("Indexing Item");
- indexItem = "<div class='indexItem'><span class='indexItemName'>"+userNames[i]+"</span> ";
- var userPagesArray = userIndex[userNames[i]];
- for (var j=0;j<userPagesArray.length;j++) {
- indexItem = indexItem + userPagesArray[j] + ", ";
- console.log("IndexItem: "+indexItem);
- }
- htmlIndex = htmlIndex + indexItem.substr(0,indexItem.length-2) + "</div>";
- }
- console.log("htmlIndex contents: "+htmlIndex);
- logger("Invoking buildFinalPDF with htmlIndex");
- buildFinalPDF(htmlIndex);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement