A simple and light jquery library for toast notification!

Overview

notifyMessage version license

What is notify message?

Notify message it's a simple jquery library for create a simple and light push notification in your website!

How does this work?

When calling the jquery "runNotify()" method, a notification is displayed at the top right with the text being passed.

What are the display modes?

There are three ways available:

  • Fixed: Allows to keep the notification open and give the user the possibility to close it.
  • Notification: The notification is displayed and disappears after a period of time set by the user.
  • Readmore: If a text is too large, you can decide to embed a button to view the entire text, while in the notification the first 30 characters are displayed.

How can I set the library options?

For the moment the options are as follows:

  • Level Message: [levelMessage]
  • Type: [type]
  • Message: [message]
  • Message Title: [messageTitle]
  • ReadMoreMessage: [readMoreMessage]
  • Timer: [timer]
  • Position: [position]

Usage

Thi library required:

  • JQuery

You will need to include:

  • The JavaScript file notifyMessage.js (or its minified version notifyMessage.min.js)
  • The css file notifyMessage.css(or its minified version notifyMessage.min.css)

Including files:

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/silentgrave/notify-message/notifyMessage/css/notifyMessage.min.css" />

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/silentgrave/notify-message/notifyMessage/js/notifyMessage.min.js"></script>

Options

Message

The message of notification, is required for correct function of library.


Level Message

The level message is the type of message we can display. Notify message allows us to display 4 message levels that have different colors in the notification box:

  • notify
  • success
  • error
  • warning

The default value is notify.

Example
runNotify({
     message: 'Success message text!',
     levelMessage: 'success'
     });

Type

the type of notification display , there are 3 types of notification :

  • fixed
  • readmore
  • notify

The default value is notify.

Example
runNotify({
     message: 'Success message text!',
     levelMessage: 'success',
     type: 'fixed'
     });

Message Title

The title of the notification message, is an option that is used only in the notification type 'readmore', it represents the modal title that is displayed when the link is pressed within the notification.

Example
runNotify({
     message: 'Success message text!',
     levelMessage: 'success',
     type: 'readmore',
     messageTitle: 'Title of modal'
     });

Read more message

Represents the link text that displays the modal, it is only used within the 'readmore' notification type.

The default value is 'Read more...'.

Example
runNotify({
     message: 'Success message text!',
     levelMessage: 'success',
     type: 'readmore',
     messageTitle: 'Title of modal',
     readMoreMessage: 'Open the notify!'
     });

Timer

Represents the time that the notification remains visible.

This option is not available for the fixed message type and read more. The default value of timer is 3 seconds.

Example
runNotify({
     message: 'Success message text!',
     levelMessage: 'success',
     timer: 5000
     });

Position

Represents the positioning of the notification within the page, the values that can be chosen are:

  • top-right
  • bottom-right
  • top-left
  • bottom-left

The default value is top-right.

Example
runNotify({
     message: 'Success message text!',
     levelMessage: 'success',
     type: 'fixed',
     position: 'top-left'
     });

You might also like...

Lightweight and simple notification library in Vanilla JavaScript.

Lightweight and simple notification library in Vanilla JavaScript.

SimpleNotification SimpleNotification is a library to display simple yet customizable notifications. You can stylize text with a simple syntax, add bu

Dec 11, 2022

jQuery plugin for a Notification Bar

jquery.peekABar A jQuery plugin for a notification bar with customization options. Important Note We have stopped supporting bower as a package manage

Dec 11, 2022

✨ Small and Clean JavaScript Toast Notifications

✨ Small and Clean JavaScript Toast Notifications

BuzzNotify Small and Clean JavaScript Toast Notifications New version introduces breaking changes! Now the styles come separately and you will have to

Aug 23, 2022

Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options e.g custom text or HTML message, duration, custom class, toggle close button, position, custom close icon and backgorund color.

Pure Javascript Toaster Requires Nothing Demo Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options

Jun 21, 2022

Simple, cli-first, mobile push notification across systems.

Notify.sh Simple, cli-first, mobile push notification across systems. Install In each folder, run npm install. The expected node version is 14. (Highe

May 20, 2022

jQuery based scrolling Bar, for PC and Smartphones (touch events). It is modern slim, easy to integrate, easy to use. Tested on Firefox/Chrome/Maxthon/iPhone/Android. Very light 7ko min.js and 1Ko min.css.

Nice-Scrollbar Responsive jQuery based scrolling Bar, for PC and Smartphones (touch events). It is modern slim, easy to integrate, easy to use. Tested

Jan 18, 2022

Manage and monitorize your notification using only your terminal :3

Manage and monitorize your notification using only your terminal :3

Notifications Monitor Monitor your notifications and get a temporary list of the notifications. Dependencies Node.js (to run the program; by default,

Apr 12, 2022

Send slack notification with BQ results

Send slack notification with BQ results

bq2slack-github-action Send slack notification with BQ results. How to use Sample github actions workflow yaml name: Run SQL against BQ and notify sla

Dec 16, 2022

Adds a notification to hydrate yourself!

Adds a notification to hydrate yourself!

Water Break This plugin simply puts a notification in the upper-left of the window. This will alert you to drink some water! Install ipm install water

Sep 24, 2022
Comments
  • Implementation of the positioning of notifications

    Implementation of the positioning of notifications

    Implemented the positioning of notifications within the page, it is now possible to place the notification message in the four corners of the page, for more info take a look at the documentation.

    opened by Nopesound 0
  • Merge v1.0.0 to v1.1.0

    Merge v1.0.0 to v1.1.0

    What is new in notify message?

    • Bootstrap dependency removed

    Starting with version 1.1.0 the dependency with bootstrap is removed. In this way we want to make the use of the library more flexible and not to constrain its use to other libraries. However, the jquery reliance remains.

    • Code cleanup

    Some code cleaning has been done

    opened by Nopesound 0
Releases(v1.2.0)
  • v1.2.0(Sep 21, 2021)

    What is new in notify message?

    • Bootstrap dependency removed

    Starting from version 1.2.0, the positioning of the notification within the page is introduced, through the [position] option it is possible to choose in which of the four corners of the screen to place the notification.

    • Code cleanup

    Some code cleaning has been done

    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Aug 20, 2021)

    What is new in notify message?

    • Bootstrap dependency removed

    Starting with version 1.1.0 the dependency with bootstrap is removed. In this way we want to make the use of the library more flexible and not to constrain its use to other libraries. However, the jquery reliance remains.

    • Code cleanup

    Some code cleaning has been done

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Aug 10, 2021)

Notification handler. KISS, light and library free.

Notification.js Notification.js is a standalone ES6 module that allows you to easily handle several notifications from different types at the same tim

Arthur Beaulieu 2 Nov 25, 2020
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A simple, jQuery free Snackbar (Toast) alert

js-snackbar What is a SnackBar? According to Material Design a Snackbar or Toast provides "brief messages about app processes at the bottom of the scr

Michael Mickelson 43 Jan 5, 2023
jQuery quick notification plugin. jQuery плагин быстрых уведомлений

Note: English translation by Google Translate Notific About Description: this is a jQuery plugin that helps you display notifications on your site. Li

Webarion 2 Nov 7, 2021
EggyJS is a Javascript micro Library for simple, lightweight toast popups focused on being dependency-less, lightweight, quick and efficient.

EggyJS EggyJS is a Javascript micro Library for simple, lightweight toast popups. The goal of this library was to create something that meets the foll

Sam 10 Jan 8, 2023
It's an alert library build with JavaScript. You can replace your traditional JavaScript alert, confirm and toast with the library.

asteroid-alert It's an alert library build with JavaScript. You can replace your traditional JavaScript alert, confirm with the library. It has also e

Khan Md Sagar 4 Mar 12, 2021
Jquery Plugin for Make easy Toast

Nice Toast JS nice and easy toast for jquery Requirements jQuery Installation NPM npm install nice-toast-js Yarn yarn add nice-toast-js CDN - jsDelivr

Hasan Ahani 4 Jul 26, 2022
A vanilla JavaScript toast library

Vanilla Toasts (also refered to as vtoast) is a lightweight VanillaJS toast library. It does not require any framework to run. It is inspired from toa

Paper Development 4 Jan 18, 2022