jackbox.js – library to notifications

I would like to indroduce java script library to show notifications on web page.
First of all we need to download jackbox.js. You can download it from github: https://github.com/ja1984/jackbox. You can find full documentation of jackbox.js there also.

<link href="css/jackbox.css" rel="stylesheet" type="text/css">
<script src="js/jackbox.min.js"></script>
<script src="js/jackbox.polyfills.js"></script>

And full index.html:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link href="css/jackbox.css" rel="stylesheet" type="text/css">
    <script src="js/jackbox.min.js"></script>
    <script src="js/jackbox.polyfills.js"></script>
  </head>
  <body>
    <button onClick="DisplayNotification('success', 'My notification message :-)')">Success</button>
    <button onClick="DisplayNotification('warning', 'My warning message :-(')">Warning</button>
    <button onClick="DisplayNotification('error', 'My error message !!!')">Error</button>
    <button onClick="DisplayNotification('information', 'My information message.')">Information</button>

    <script>
      Jackbox.init();

      function DisplayNotification(notificationType, message) {
        switch(notificationType) {
          case 'success':
            Jackbox.success(message);
            break;
          case 'warning':
            Jackbox.warning(message);
            break;
          case 'error':
            Jackbox.error(message);
            break;
          case 'information':
            Jackbox.information(message);
            break;
          default:
            break;
        }
      }
    </script>
  </body>
</html>

This is the final result: