Dglgmut / wow-alert

jQuery Plugin to override native alert() method.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WOW Alert: A jQuery plugin to override native alert() method

Wow Alert is a simple jQuery plugin that turn default alerts in pretty nice dialog.

How to use

  • Just include the file wow-alert.js and wow-alert.css in your html file.
  • Run usually the method alert() - alert("Something")
  • Use the second parameter to set the button's label. - alert("Something", "OK")
  • All done!

Exemple with callback

    alert("Hello World!",
    {
        label: "YES",
        success: function () {
            console.log("User clicked YES");
        }
    }
);

About

jQuery Plugin to override native alert() method.


Languages

Language:JavaScript 49.8%Language:CSS 33.8%Language:HTML 16.4%