Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Customizable jQuery library for web applications flash messages & notifications

NotificationsYou must be signed in to change notification settings

TheodorGeo/flash.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a Customizable jQuery library for web applications flash messages & notifications to create instantly flash messages by only including one file !

Requirements:

  • JQuery version > 2.2.0
  • Include the flash.js or flash.min.js after the JQuery script

To create your first message call the function flash()

flash('Hello flash.js Users !');

ResultsMy first Flash Message

Default options :

$options={'bgColor' :'#5cb85c',//Background Color (any CSS color)'duration' :4000,//Duration of the message (ms)'ftColor' :'white',//Font color (any CSS color)'vPosition' :'bottom',//Vertical position of the message (bottom or top)'hPosition' :'right',//Horizontal position of the message (right or left)'fadeIn' :400,//Fade in time (ms)'fadeOut' :400,//Fade out time (ms)'clickable' :true,//Hide message when it is clicked'autohide' :true//Autohide message after the duration time};
Create a Custom Message

To create a custom message pass an object as a sescond parameter in the flash() function :

flash('Custom Message',{'bgColor' :'tomato','duration' :10000,'vPosition' :'top',});

License

MIT

About

Customizable jQuery library for web applications flash messages & notifications

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp