<!DOCTYPE html>

<html lang="en">
<head>
        <?php echo view('partials/title-meta', array('title' => 'Idle Timer')) ?> <?= $this->include('partials/head-css') ?>
    </head>
<body>
<div class="wrapper">
            <?php echo view('partials/topbar', array('subtitle' => 'Plugins', 'title' => 'Idle Timer')) ?> <?= $this->include('partials/sidenav') ?>

            <!-- Start Page Content here -->
<div class="page-content">
<main>
                    <?php echo view('partials/page-title', array('subtitle' => 'Plugins', 'title' => 'Idle Timer')) ?>

                    <div class="container">
<div class="grid grid-cols-1 gap-base">
<div class="card">
<div class="card-header">
<h4 class="card-title">Idle Timer Plugin</h4>
</div>
<div class="card-body">
<!-- Alert placeholder (initially hidden) -->
<div class="bg-danger/15 text-danger idle-alert mb-4 hidden rounded px-4 py-3" role="alert">Your session has expired. Please move your mouse to resume your activity.</div>
<p class="text-default-400">The Idle Timer plugin allows you to monitor user activity on the page. Idle is defined as a lack of mouse movement, scrolling, or keyboard input.</p>
<div class="p-6 text-center">
<i class="iconify tabler--fingerprint block mb-5 text-4xl mx-auto"></i>
<h3 class="mb-2 text-2xl italic">Please stay idle for 5 seconds</h3>
</div>
<p>
                                        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
                                        <code>document</code>
                                        ,
                                        <code>document.documentElement</code>
                                        , or
                                        <code>document.body</code>
                                        . The initialization returns a jQuery object, allowing for method chaining.
                                    </p>
<div class="fixed end-0 top-0 z-100 m-10">
<!-- Success Toast -->
<div aria-atomic="true" aria-live="assertive" class="bg-success border-success mb-5 hidden w-xs max-w-full rounded shadow-lg" id="backToast" role="alert">
<div class="flex items-center gap-3 border-b border-white/20 px-3 py-2">
<strong class="me-auto text-base text-white">Welcome Back</strong>
<small class="text-white">Now</small>
<button aria-label="Close" class="flex text-white" data-hs-remove-element="#backToast" type="button">
<i class="iconify tabler--x"></i>
</button>
</div>
<div class="p-4 text-white italic">We missed you! Welcome back!</div>
</div>
<!-- Toast container -->
<div aria-atomic="true" aria-live="assertive" class="bg-warning border-warning hidden w-xs max-w-full rounded shadow-lg" id="liveToast" role="alert">
<div class="flex items-center gap-3 border-b border-white/20 px-3 py-2">
<img alt="..." class="h-5" src="/images/logo-sm.png"/>
<strong class="me-auto text-base text-white">Idle Alert</strong>
<small class="text-white">Just now</small>
<button aria-label="Close" class="flex text-white" data-hs-remove-element="#liveToast" type="button">
<i class="iconify tabler--x"></i>
</button>
</div>
<div class="p-4 text-white italic">You've been inactive for too long. Please interact with the page to continue.</div>
</div>
</div>
<!-- end toast-container-->
</div>
<!-- end card-body-->
</div>
<!-- end card-->
</div>
</div>
</main>

                <?= $this->include('partials/footer') ?>
            </div>
<!-- End Page content -->
</div>

        <?= $this->include('partials/customizer') ?> <?= $this->include('partials/footer-scripts') ?>

        <!-- idle Timer Plugin Js -->
<script src="/js/pages/plugins-idle-timer.js"></script>
</body>
</html>