PNotify.defaults.destroy = false;
The first time you click one of these buttons, you will be asked to grant permission for this site to show notices. Then you can click them again to see the desktop notification.
If your browser doesn't support Web Notifications, or you deny permission to show them, you will only see regular in-browser notices. You can check here.
I'm the context for the paginate demo. I'm here since the Paginate module works best with a certain kind of setup:
[data-pnotify].pnotify.stack-bar-top {
width: 100%;
border-radius: 0;
}
[data-pnotify].pnotify.stack-bar-bottom {
width: 70%;
border-radius: 0;
}
I'm the stack context where notices will be placed. I'm position: relative, so the notices will be positioned relative to me. My overflow is set to auto, so the notices won't show beyond my borders.
© 2011-2020 Hunter Perrin. All Rights Reserved.
Comments