<syntaxhighlight lang="js"> /* ---------------------------- */ /* 1. Single Press Counter: On action*/ /* ---------------------------- */