jQuery Msg Popup
Simple and elegant popup messages :)

Parameters

Note: no one parameters is a callback, all functions is just executed before some action.

How to use

Download files from /dist folder

Add files to your project:
jQuery
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
Style
<link rel="stylesheet" href="/dist/jquery-msgpopup.css" />
Script
<script src="/dist/jquery-msgpopup.js"></script>

Code example

You can check some examples here.

Simple usage

$().msgpopup({ text: 'Test message', });

Some usage parameters

$().msgpopup({ text: 'Simple like that!', success: true, // false time: 5000, // or false x: true, // or false });

Define color of box

$().msgpopup({ text: 'Simple like that!', type: 'info', // or success, error, alert and normal time: 5000, // or false x: true, // or false });

Description of parameters

Parameter Type Default value Available parameters Example
text string '' Put some text or HTML message
type string normal normal, info, alert, success, error or custom name that result on class msgpopup-your-custom-class.
closeFunc function|bool true yourFunctionName that receive one parameter
$().msgpopup({ text: 'Custom text', closeFunc: 'myFunctionName' });
// Will be executed when // user close the message
function myFunctionName(param) { console.log("param: ", param); }
Sorry, I need more time to documentation all D: