Apilable Top notificaciones de barras en Vanilla JavaScript-JS-Notify
| Autor: | keyml |
|---|---|
| Views Total: | 845 |
| Sitio oficial: | Ir a la web |
| Actualizado: | April 16, 2018 |
| Licencia: | MIT |
Vista prévia
Descripción
Una biblioteca JavaScript simple muerta para mostrar las barras de notificación superior apilables sin ninguna dependencia.
Funcionamiento
Inserte la versión minimizada de la biblioteca JS-Notify en la Página Web.
<script src="notify-min.js"></script>
Crear una barra de notificación superior.
notify.show('Notification', 'black', '#ffeb3b', 5, true) Parámetros posibles:
- texto: texto de notificación
- textColor: color del texto
- bgColor: color de fondo
- Timer: cierre automático después de este tiempo de espera (en segundos)
- Close: muestra el botón de cierre
notify.show(text, textColor, bgColor, timer, close);
Cierre la barra de notificaciones manualmente.
let myNotify = notify.show('Notification', 'black', '#ffeb3b', 5, true)
notify.remove(myNotify)





