/**
 * == OhSnap!.js ==
 * A simple jQuery/Zepto notification library designed to be used in mobile apps
 *
 * author: Justin Domingue
 * date: september 5, 2013
 * version: 0.1.2
 * copyright - nice copyright over here
 */

function ohSnap(text, color) {
  // text : message to show (HTML tag allowed)
  // Available colors : red, green, blue, orange, yellow --- add your own!
  
  // Set some variables
  var time = '5000';
  var $container = $('#ohsnap');

  // Generate the HTML
  var html = '<div class="alert alert-' + color + '">' + text + '</div>';

  // Append the label to the container
  $container.append(html);
  
  // After 'time' seconds, the animation fades out
  setTimeout(function () {
    ohSnapX($container.children('.alert').first());
  }, time);
}

function ohSnapX(element) {
  // Called without argument, the function removes all alerts
  // element must be a jQuery object
  
  if (typeof element !== "undefined" ) {
    element.remove();
  } else {
    $('.alert').remove();
  }
}

// Remove the notification on click

$('.alert').live('click', function() { 
  ohSnapX($(this))
});

@@ -234,16 +234,22 @@
  ohSnap(
+icon, 
 text, co
@@ -535,16 +535,51 @@
 or + '%22%3E
+%3Cspan class=%22' + icon + '%22%3E%3C/span%3E 
 ' + text

Allowing alerts to accept icons before text.