";
+ if (punchList[i].progress.toLowerCase() === "in progress") {
+ console.log(`in progress`);
+// list += "
";
+ list += "
"; //
+ list += "
";
+ list += "
" + punchList[i].subject + "
"; //
+ list += "
Status: " + punchList[i].progress + "
";
+ list += "
Priority: " + punchList[i].priority + "
";
+ list += "
Need By: " + punchList[i].nDate + "
";
+ list += "
";
+ list += "
";
+ list += "
";
+ list += "";
+ list += "
";
+ list += "start";
+ list += "done";
+ list += "edit";
+ list += "delete";
+ list += "
";
+ list += "
";
+ list += "
";
+ list += "
";
+ }
}
- list += "
";
+// then !done
+ for (i = 0; i < listLength; i++) {
+ if (punchList[i].progress.toLowerCase() != "in progress") {
+ if (punchList[i].progress.toLowerCase() != "done") {
+ console.log(`not in progress or not done`);
+ list += "
"; //
+ list += "
";
+ list += "
" + punchList[i].subject + "
"; //
+ list += "
Status: " + punchList[i].progress + "
";
+ list += "
Priority: " + punchList[i].priority + "
";
+ list += "
Need By: " + punchList[i].nDate + "
";
+ list += "
";
+ list += "
";
+ list += "
";
+ list += "";
+ list += "
";
+ list += "start";
+ list += "done";
+ list += "edit";
+ list += "delete";
+ list += "
";
+ list += "
";
+ list += "
";
+ list += "
";
+ }
+ }
+ }
+
+// then done
+ for (i = 0; i < listLength; i++) {
+ if (showDone === true) {
+ if (punchList[i].progress.toLowerCase() === "done") {
+ console.log(`show done.`);
+ list += "
"; //
+ list += "
";
+ list += "
" + punchList[i].subject + "
"; //
+ list += "
Status: " + punchList[i].progress + "
";
+ list += "
Priority: " + punchList[i].priority + "
";
+ list += "
Need By: " + punchList[i].nDate + "
";
+ list += "
";
+ list += "
";
+ list += "
";
+ list += "";
+ list += "
";
+ list += "start";
+ list += "done";
+ list += "edit";
+ list += "delete";
+ list += "