bootstrap-notify
bootstrap-notify copied to clipboard
Persistent notifications while browsing the website/domain
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:
- On "/page1": A notify instance is created: it stores a object consisting of its properties and its creation timestamp.
- 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)
- 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 ?
Sounds pretty good, I can see it being useful in some cases.
Good, let me know if you wish to see this as part of the plugin, or as a addon...