packages/auth/demo/public/script.js
function alertMessage_(message, cssClass) {
  var alertBox = $('<div></div>')
      .addClass(cssClass)
      .css('display', 'none')
      .text(message);
  $('#alert-messages').prepend(alertBox);
  alertBox.fadeIn({
    complete: function() {
      setTimeout(function() {
        alertBox.slideUp();
      }, 3000);
    }
  });
}
function alertMessage_(message, cssClass) {
  var alertBox = $('<div></div>')
      .addClass(cssClass)
      .css('display', 'none')
      .text(message);
  $('#alert-messages').prepend(alertBox);
  alertBox.fadeIn({
    complete: function() {
      setTimeout(function() {
        alertBox.slideUp();
      }, 3000);
    }
  });
}
function alertMessage_ ( message , cssClass ) { var alertBox = $ ( '<div></div>' ) . addClass ( cssClass ) . css ( 'display' , 'none' ) . text ( message ) ; $ ( '#alert-messages' ) . prepend ( alertBox ) ; alertBox . fadeIn ( { complete : function ( ) { setTimeout ( function ( ) { alertBox . slideUp ( ) ; } , 3000 ) ; } } ) ; }
Displays for a few seconds a box with a specific message and then fades
it out.
@param {string} message Small message to display.
@param {string} cssClass The class(s) to give the alert box.
@private
Displays for a few seconds a box with a specific message and then fades it out .