Git Product home page Git Product logo

notifyme.js's Introduction

notifyMe.js


notifyMe.js is a pure lightweight JavaScript library to create graphical text notifications on screen corners. It has no jQuery dependecy. You only need to load the javascript and css files to your page, and use the simple API to start launching notifications on your page. It is tested on Chrome, Firefox, Opera, Safari and IE 9+. It benefits CSS3 transitions when they are available.

Demo page: http://www.ayberkakici.com/notifyMe.js

##Setting Up

Please include the CSS and JS files!

 <link rel="stylesheet" href="styles/notifyMe.min.css">
 <script src="js/notifyMe.min.js"></script>

##Usage


notifyMe.create({
    position: 'topLeft', //Positions are: ['topRight', 'topLeft', 'bottomLeft', 'bottomRight'],optional field with default value: 'topRight'
    type: 'info', // Types are: ['info', 'warning', 'success', 'error'], optional field with default value: 'info'
    title: 'NotifyMe Example with 5000ms timeout', //required field
    text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent consequat enim non sapien venenatis sollicitudin', //required field
    timeout: 5000, //Remove notification after timeout expire, optional field without default value
    pauseOnHover: true, //Pause the timeout when mouse is over the notification, true or false, optional field with default value: false
    closeBtn: true, //Shows a close button, true or false, optional field with default value: true
    addClass: 'additional-class', // Add 'additional-class' into existing class names, optional field without default value
    click: function(){ //Click event handler function, optional field without default value
        alert('clicked');
    }
});

notifyme.js's People

Contributors

akici avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.