Check user idle and popup a passcode login


#1

How can I check user idle for 1min and display a popup in Ember CLI app. I did create an application route and add: http://guides.emberjs.com/v1.11.0/cookbook/user_interface_and_interaction/using_modal_dialogs/

I need to check user idle, fire application route action to display popup.

I follow this code to check user idle: http://www.bedroomlan.org/coding/idle-timeouts-in-javascript#sec_source. Where will I place this code in Ember and fire route action?

Thanks,

Phat Le