add comments to the code

This commit is contained in:
Spedon
2023-03-14 01:49:35 +08:00
parent 5076455acd
commit f1820a851c
4 changed files with 17 additions and 1 deletions

View File

@@ -8,10 +8,12 @@ const threshold: number[] = [0, 40, 80, 120, 160, 200]
export const thresholdSensitivityArray: number[] = [100, 40, 18, 14, 9, 5]
export let thresholdIndex: number = 2
// update inner text of threshold display element
function thresholdUpdate(): void {
thresholdDisp.innerText = duper(threshold[thresholdIndex])
}
// threshold control initialization
export function thresholdCtlInit(): void {
thresholdUpdate()
const dec = document.getElementById('thresholdDec') as HTMLButtonElement