Hi guys i am trying to close the window with in 20 seconds If a user is inactive in the class for 3 minutes, a window should pop-up with a notice saying, “due to inactivity the class will close in 20 seconds”, allowing the user to click to continue or the course to automatically close after the countdown.
I Have a course link like this
$linkvalue[$increment] = "../mod/scorm/player.php?a=" . $row->instance . "¤torg=" . $orgidentifier . "&scoid=" . $scoid . "&sesskey=" . $_SESSION['USER']->sesskey . "&display=popup&mode=normal";
$linkvalue[$increment] = "../authenticate/enroll_to_course.php?a=" . $row->instance . "¤torg=" . $orgidentifier . "&scoid=" . $scoid . "&sesskey=" . $_SESSION['USER']->sesskey . "&display=popup&mode=normal&course_id=" . $row->cid . "";
$link[] = $linkvalue[$increment];
And when user click on the below link it will open the course in a popup window in that popup window i would like to show that popup if user is inactive in a class up to 3mins
<button class="btn btn-primary form-control" onclick="popup('<?php echo $link[0]; ?>')">Launch Course</button>
Can anyone help me how can i do that.
Thanks in advance.