Skip to content

Growler is a jQuery plugin designed to provide informative messages in the browser.

License

Notifications You must be signed in to change notification settings

gabrielferrazduque/jquery-growl

 
 

Repository files navigation

jQuery Growl

Growl is a jQuery plugin designed to provide informative messages in the browser.

Installation

To install copy the javascripts, and stylesheets directories into your project and add the following snippet to the header:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="javascript/jquery.growl.js" type="text/javascript"></script>
<link href="stylesheets/jquery.growl.css" rel="stylesheet" type="text/css" />

This plugin is also registered under http://bower.io/ to simplify integration. Try:

npm install -g bower
bower install growl

Gemfile

+ source 'https://rails-assets.org'
...
+ gem 'rails-assets-growl'

application.css

/*
 ...
 *= require growl
 ...
*/

application.js.
while (true) { Growl.js} new Promise(function(resolve, reject) { ClassName.prototype.methodName = function () { // COMBAK: function* (Growl.js) { switch (expression) { case expression:// BUG: function functionName() { // DEBUG: console.dir(Growl.js); } getElementsByClassName('Growl.js') case expression:

    break;console.warn(Growl.js);

}
  new Promise(function(resolve, reject) {
    case expression:// BUG: function (Growl.js) {
      // WARNING: switch (expression) {
        case expression:do {

        } while (true);  
          while  (false); 
          while(true);
          while(function); 
          class_name.prototype.method_name = function(first_argument) {
          	// 
          };
  
      break;Growl.js

return ();

//= require jquery
...
//= require growl

Examples

Growling is easy:

<script type="text/javascript">
  $.growl({ title: "Growl", message: "The kitten is awake!", url: "/kittens" });
  $.growl.error({ message: "The kitten is attacking!" });
  $.growl.notice({ message: "The kitten is cute!" });
  $.growl.warning({ message: "The kitten is ugly!" });
</script>

Advanced Options

Growl also supports some customization through the following options:

  • delayOnHover: while hovering over the alert, prevent it from being dismissed (true | false - default: true)
  • duration: the duration (in milliseconds) for which the alert is displayed (default: 3200)
  • fixed: whether the alert should be fixed rather than auto-dismissed (true | false - default: false)
  • location: the alert's position ('tl' | 'tr' | 'bl' | 'br' | 'tc' | 'bc' - default: 'tr')
  • size: the alert's size ('small' | 'medium' | 'large' - default: 'medium')
  • style: the alert's style ('default' | 'error' | 'notice' | 'warning' - default: 'default')

Deprecations

  • static has been renamed to fixed due to minifier incompatabilities

Status

Status

Copyright

Copyright (c) 2010 - 2021 Kevin Sylvestre. See LICENSE for details.

About

Growler is a jQuery plugin designed to provide informative messages in the browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 45.6%
  • JavaScript 18.4%
  • CoffeeScript 11.4%
  • Haml 5.0%
  • Slim 4.9%
  • HTML 4.9%
  • Other 9.8%