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

Is there a way to change the timeout duration at runtime? #28

Open
linux-nerd opened this issue Mar 18, 2016 · 5 comments
Open

Is there a way to change the timeout duration at runtime? #28

linux-nerd opened this issue Mar 18, 2016 · 5 comments
Assignees

Comments

@linux-nerd
Copy link

Hi,

I have a use case where a parent domain can have multiple applications and each application can have different timeout. But to have the consistency, the max timeout of the opened application will be used.

The timeout can be stored in local storage and can be shared with all the opened application of that particular parent domain. But how to change the timeout duration at run time without re-instantiating the idleTimeout plugin?

@JillElaine
Copy link
Owner

The plugin would need to be modified to accept 'on the fly' configuration changes. I found some resources here:
http://jonathannicol.com/blog/2012/05/06/a-jquery-plugin-boilerplate/
http://keith-wood.name/pluginFramework.html
https://learn.jquery.com/jquery-ui/how-jquery-ui-works/

Perhaps you'd like to modify it?

@linux-nerd
Copy link
Author

I have modified the plugin to accept on the fly idleTimeLimit change. And what is the build precess to create the .min.js file. Do I need to create a manually and push it to the git?

@linux-nerd
Copy link
Author

You can check the code changes here

@JillElaine
Copy link
Owner

Great job on the 'on the fly' fork. I will test it soon.

To minify, I typically use http://jscompress.com/
I also run my code through JSLint for consistency of style and syntax http://www.jslint.com/

@JillElaine
Copy link
Owner

I do not have time to work on this code right now. In the future, I hope to make the plugin easier to maintain by separating the iframe functionality into a separate script that could be loaded if needed. Right now, I have too much duplicate code, so makes it more difficult to make improvements to the code package.

@JillElaine JillElaine self-assigned this Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants