Idle Timer Plugin

@if (showAlert) { Your session has expired. Please move your mouse to resume your activity. }

The Idle Timer plugin allows you to monitor user activity on the page.

Please stay idle for 5 seconds

You can instantiate the timer either statically or on a specific element. Element-bound timers will only track activity within that element, whereas global timers will monitor activity on the entire page. To set up page-level activity, you can initialize the timer on document, document.documentElement, or document.body. The initialization returns a jQuery object, allowing for method chaining.

@for (toast of toasts; track $index) {
{{ toast.header }}
Now
{{ toast.text }}
}