Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClickExtend #28

Open
Tchitchu opened this issue Jan 4, 2021 · 0 comments
Open

onClickExtend #28

Tchitchu opened this issue Jan 4, 2021 · 0 comments

Comments

@Tchitchu
Copy link

Tchitchu commented Jan 4, 2021

I'm using chrome(87.0.4280.88) but have tried firefox and edge

onClickExtend doesnt seem to do anything.

I am trying to allow onclick and onmousemove to reset timeout
the only way i was able to get the time out to reset onclick was to attach it to the $(document).on('click', function()
here is my testing code::

<title>jQuery Session Timeout Script</title>
<link rel='stylesheet' type='text/css' href='https://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css'>
<link rel="stylesheet" type="text/css" href="CSS/jAlert/dist/jAlert.css">

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

<script src='https://code.jquery.com/jquery-3.3.1.min.js'></script>
<script src='https://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js'></script>
<script src='https://htmlguyllc.github.io/jAlert/dist/jAlert.min.js'></script> <!--Needed -->
<script src='JS/jTimeout.js'></script>
<script> $(function(){ $(Document).on('click', function(){ $.jTimeout.reset(80); }); $.jTimeout({ timeoutAfter: 80, loginUrl: 'index.php', logoutUrl: 'index.php', extendOnMouseMove: true, });
                var timer,
  				setTimer = function(){
  					timer = window.setInterval(function(){
  						$('#secondsRemaining').val( $.jTimeout().getSecondsTillExpiration() );
  					}, 1000);
  				};

  				setTimer();

  			});

  		</script>

  </div>
	
</div>

any help would be appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant