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

Persistent notifications while browsing the website/domain #11

Open
younes0 opened this issue Oct 9, 2012 · 2 comments
Open

Persistent notifications while browsing the website/domain #11

younes0 opened this issue Oct 9, 2012 · 2 comments

Comments

@younes0
Copy link
Contributor

younes0 commented Oct 9, 2012

Example: I load the page, and get a notification on "/page1" but I barely see it since I get on page "/page2" shortly after.
Usecase: on my website, I have pushed (comet) events that the user should not miss...

Workflow:

  1. On "/page1": A notify instance is created: it stores a object consisting of its properties and its creation timestamp.
  2. On "/page2": when document is ready, a method retrieves all stored objects and init them.
    Before beeing reinitialised, the fadeOut.delay is adjusted :
    fadeOut.delay - (now_timestamp - creation_timestamp)
  3. When the notification is shown, localStorage is purged.

This would result in a new plugin option (boolean) "persistence" and a new public method $.notify.resume();

I'm thinking of adding this feature as an addon plugin or not, any comments ?

@nijikokun
Copy link
Contributor

Sounds pretty good, I can see it being useful in some cases.

@younes0
Copy link
Contributor Author

younes0 commented Oct 9, 2012

Good, let me know if you wish to see this as part of the plugin, or as a addon...

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

2 participants