Skip to content
This repository was archived by the owner on May 18, 2023. It is now read-only.

Repository files navigation

Please do not use jQuery in 2023

Repo is archived for history.

Try a modern implementations based on Web Components.


jQuery Notify bar

Please visit the project page for feedback and other details.

Simple plugin (basically it's not a plugin, but widget) to show notify bar (like on Twitter's webpage). It's very simple to use:

Installation

> bower install jqnotifybar

Usage

jQuery(function () {
jQuery.notifyBar({
html: "Thank you, your settings were updated!",
delay: 2000,
animationSpeed: "normal"
})
});

Usage position at bottom


jQuery(function () {
jQuery.notifyBar({
html: "Hi from below!",
cssClass: "Appear at bottom",
position: "bottom"
});
});

Options

OptionDescriptionTypeDefault
htmlWhat text will be inside bar. Can be HTML or just text.String [optional]"Your message here"
delayHow long bar will be delayed, doesn't count animation time.Integer [optional]2000
animationSpeedHow long this bar will be slided up and down.String | Integer"normal"
jqObjectCustom jQuery object for notify bar.jQuery object [optional]null
cssClassYou can define own CSS class for Notify bar. There are too premade classes "error", "warning" and "success".String""
closeIf set to true close button will be displayed.Booleanfalse
closeTextSets the text to close button.String"Close [X]"
closeOnClickIf enabled, user can hide notify bar just by click on it.Booleantrue
closeOnOverIf enabled, user can hide notify bar just by moving mouse cursor on it (suitable for really lazy people).Booleanfalse
waitingForCloseIf enabled, notify bar don't close until user presses the close button.Booleantrue
onBeforeShowCallback on before show.functionnull
onShowCallback on show.functionnull
onBeforeHideCallback on before hide.functionnull
onHideCallback on hide.functionnull
positionSet the position of notify bar. Possible values are top, bottom.string"top"

Please visit the project page for feedback and other details.

About

Twitter like notify bar

Resources

Stars

127 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages