NanoModal
NanoModal copied to clipboard
modals with timeout?
I would like a dialog which returns with some predefined value after a short timeout if the user didn't click anything - is that doable?
Do you mean something like this? https://jsfiddle.net/psfz2gxg/
yes, this is exactly what I had on my mind. seems so easy once you see the solution..
of course it is a good idea to remove the timer if the user previously hit an option