diff --git a/index.html b/index.html index a9c5036..5b7cbab 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,11 @@ +
+ Other: + +
+

diff --git a/index.ts b/index.ts index bddd083..93eb187 100644 --- a/index.ts +++ b/index.ts @@ -26,6 +26,10 @@ function init() { update(); }); } + let otherCheckBox = document.getElementById("discarded"); + otherCheckBox.addEventListener('change', function () { + update(); + }); } function update() { @@ -56,6 +60,9 @@ function isIncluded(contract) { included = false; } } + if (!(document.getElementById("discarded") as HTMLInputElement).checked && contract.discarded) { + included = false; + } return included; }