lundi 5 octobre 2015

NodeJS detect if user doesn`t touch a button for a minute

I want to when the user doesn`t press a button for more than a minute the script just stop run for him. The only way would be puttin a code in every single button to add time to the clock and if the clock reaches 0 the script stop for the person.

Someone have a better way? Thanks :)

Aucun commentaire:

Enregistrer un commentaire