• This repository has been archived on 07/Oct/2023
  • Stars
    star
    344
  • Rank 123,066 (Top 3 %)
  • Language
    HTML
  • Created about 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Not Actively Maintained - Javascript library for Gnome / Growl type non-blocking notifications

Warning

Master branch maybe unstable. The latest stable branch is 1.0.0.

Notifier.js

Javascript library for Gnome / Growl type non-blocking notifications.

Links

Usage Guide

The master branch may be unstable from time to time. Use the downloadable archive for production.

Hack away, experiment on the master branch. Feel free to clone, fork and send pull requests.

Include Jquery and Notifier.js

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="notifier.js"></script>

Trigger Notifications

// Success notifs
Notifier.success('User registration successful')
Notifier.success('It\'s a boy!', 'Congrats!')

// Info notifs
Notifier.info('You have been informed!')
Notifier.info('Tomorrow is another day', 'Words of wisdom')

// Warning notifs
Notifier.warning('I warn you Ceasar!')
Notifier.warning('I warn you Ceasar!', 'Assassination Warning')

// Error notifs
Notifier.error('Something may be wrong..')
Notifier.error('Something may be wrong..', 'Ummm..')

// Notif with custom icon and timeout
Notifier.notify('Babe I\'m gonna leave you', 'Led Zeppelin', './icons/Music.png', 2000)

// HTMLs are escaped, XSS attempts are blunted
Notifier.error('<script>alert(\'xss attempt blunted\')</script>')

Configure

Default behavior of NotifierJS can be modified without having to muddle through the code.

Here's an example of reducing the default timeout and changing the position of the notifications:

<script>
  NotifierjsConfig.defaultTimeOut = 250;
  NotifierjsConfig.position = ["bottom", "right"];
</script>

More Repositories

1

googleplaces.js

Node.js library for the Google Places API
JavaScript
80
star
2

express-bootstrap

Not Actively Maintained - Template for an Express.js single page web app bundled with jQuery and Twitter Bootstrap
JavaScript
53
star
3

simplewebcrawler

Not Actively Maintained - A simple web crawler desgined to showcase scalability with Scala and GridGain
Scala
24
star
4

browserdb

Not Actively Maintained - Simple in-browser document based data store
JavaScript
22
star
5

squeryl-example

Not Actively Maintained - Example of Scala persistence with Squeryl
Scala
12
star
6

googleplaces.js-examples

Examples showing how the Google Places API can be used in a Node.js app
JavaScript
9
star
7

javascript-playground

Not Actively Maintained - I play with javascript
JavaScript
8
star
8

simple-scalatra-archetype

Not Actively Maintained - Apache Maven archetype to generate a simple Scalatra webapp
Scala
7
star
9

scala-playground

Not Actively Maintained - I play with scala
Scala
6
star
10

scalatra-maven-prototype

scalatra-maven-prototype is a port of scalatra-sbt-prototype as an Apache Maven project.
Scala
6
star
11

tweet-language-processing

Not Actively Maintained
Scala
4
star
12

hotflex

Not Actively Maintained - Hot reload / Build on save for Adobe Flex
JavaScript
4
star
13

youtube-player

Not Actively Maintained - minimalist youtube player
JavaScript
3
star
14

opencv-experiments

just playing with opencv
C++
2
star
15

scala-querulous-simple-migrations

Not Actively Maintained - Simple database migration utility created with Scala and Querulous
Scala
2
star
16

tapasya

Not Actively Maintained - Zone out everyday audio clutter - Sounds to help you meditate, study and sleep [Android app]
Java
2
star
17

generatetokens

Not Actively Maintained - Generate ERC20 Token Smartcontracts
JavaScript
1
star
18

sortable-challenge

Not Actively Maintained
Scala
1
star
19

foursquare-mapbox-venues

Show foursquare venues on a map for use's location
JavaScript
1
star
20

evina

Not Actively Maintained - minimalist in-app events library
JavaScript
1
star
21

scala-gridgain-archetype

Not Actively Maintained - Apache Maven archetype for Scala and GridGain
Scala
1
star
22

dom_js

Not Actively Maintained - a collection of dom utility functions
JavaScript
1
star
23

ajax-functions

Not Actively Maintained - A client side library that gives you AJAX functions. And nothing else.
JavaScript
1
star
24

DataAnalyzer

Not Actively Maintained - Sample application to leverage and demonstrate Flex's OLAP cube capabilities
JavaScript
1
star
25

django-kick-start

Not Actively Maintained - Code from training session conducted on the Django Framework at Inphina iBat on 21st May 2011
Python
1
star
26

flex-choropleth-map-component

Not Actively Maintained - An old, unmaintained choropleth map component built with Adobe Flex / ActionScript
ActionScript
1
star
27

jasba

Not Actively Maintained - minimalist build tool
JavaScript
1
star