Add SHOWDONE to settings.

This commit is contained in:
kor 2018-10-31 11:19:49 +13:00
parent cfa64acd6a
commit ae855de9b2
2 changed files with 14 additions and 10 deletions

View File

@ -16,6 +16,7 @@ const SETTINGS =
SHOWNOTE: true, SHOWNOTE: true,
SHOWQOTE: true, SHOWQOTE: true,
SHOWTERM: true, SHOWTERM: true,
SHOWDONE: false,
SHOWPROG: true, SHOWPROG: true,
SHOWIMAG: true, SHOWIMAG: true,
SHOWFILE: true, SHOWFILE: true,

View File

@ -291,16 +291,19 @@ function View()
menuContent += `</div>`; menuContent += `</div>`;
// DONE // DONE
menuContent += `<div class="menu-itemgroup">`; if (SETTINGS.SHOWDONE)
menuContent += `<a href='#done-true' class="menu-item">`; {
menuContent += `<div class="menu-itemcount">${value.done}</div>`; menuContent += `<div class="menu-itemgroup">`;
menuContent += `<i class="menu-itemicon fas fa-check"></i>`; menuContent += `<a href='#done-true' class="menu-item">`;
menuContent += `</a>`; menuContent += `<div class="menu-itemcount">${value.done}</div>`;
menuContent += `<a href='#done-false' class="menu-item">`; menuContent += `<i class="menu-itemicon fas fa-check"></i>`;
menuContent += `<div class="menu-itemcount">${value.total - value.done}</div>`; menuContent += `</a>`;
menuContent += `<i class="menu-itemicon fas fa-times"></i>`; menuContent += `<a href='#done-false' class="menu-item">`;
menuContent += `</a>`; menuContent += `<div class="menu-itemcount">${value.total - value.done}</div>`;
menuContent += `</div>`; menuContent += `<i class="menu-itemicon fas fa-times"></i>`;
menuContent += `</a>`;
menuContent += `</div>`;
}
menuContent += `<div class="menu-itemgroup">`; menuContent += `<div class="menu-itemgroup">`;
for (let ty = 0; ty < Math.min(value.types.length, SETTINGS.STATSNUMTYPE); ty++) for (let ty = 0; ty < Math.min(value.types.length, SETTINGS.STATSNUMTYPE); ty++)