I have been searching, with tons of trial and error, yet to find a solution for this issue. I have found solutions but nothing that I have been successful at implementing.
I am using Meteor and want to create an input/button that is disabled for 60 seconds once clicked. I can make this part happen but my biggest issue is that refreshing the browser makes the button clickable again.
Is there any way to tie the timer to the user id? Any help would be greatly appreciated. I was reading about Date.now(); and Sugar JS, but was not able to make them work for my application.
you can use the html localstorage. eg:
and check everytime when button click weather localstorage is 0 or 1.