diff --git a/README.md b/README.md index e4a65bc..f6bd9ae 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,37 @@ bootstrap-notify Bootstrap alert system made better. +Added [Font Awesome](http://fortawesome.github.io/Font-Awesome/) support. +It's now easy to customize your notifications. For example, you can create success and error messages: + +Code: + + $('#success-button').click(function(){ + $('#id').notify( + { message: + { text: 'Great! Operation successful :)' }, + type: 'success', + icon: { + symbol: 'icon-ok', + color: '#5A5' + } + } + ).show(); + }); + + $('#error-button').click(function(){ + $('#id').notify( + { message: + { text: 'Uh-oh.. there was an error :(' }, + type: 'danger', + icon: { + symbol: 'icon-warning-sign', + color: '#D54' + } + } + ).show(); + }); + # Copyright Copyright 2013 Nijiko Yonskai @nijikokun diff --git a/examples/index.html b/examples/index.html index 849b638..d33e452 100644 --- a/examples/index.html +++ b/examples/index.html @@ -12,6 +12,9 @@ + + + @@ -40,8 +43,8 @@