bootstrap-notify icon indicating copy to clipboard operation
bootstrap-notify copied to clipboard

Persistent notifications while browsing the website/domain

Open younes0 opened this issue 12 years ago • 2 comments

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 ?

younes0 avatar Oct 09 '12 10:10 younes0

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

nijikokun avatar Oct 09 '12 20:10 nijikokun

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

younes0 avatar Oct 09 '12 20:10 younes0