Coder Social home page Coder Social logo

notybar's Introduction

NotyBar

Installation

  1. Add the notybar.css file to the head of your html.

  2. Add the notybar.jquery.js file before closing body tag.

  3. Add this code after the notybar.jquery.js script tag to initialize the plugin.

    var op = {
        logs:  true, // true|false  - Display event logs in browser console (for dev purposes)
        overlay:  false //true|false - Dispaly Overlay or not
    };
    var  notyBar = new  $.NotyBar($(".mycta"), op);
    notyBar.InitEvents();
    

HTML

  • Add the notybar attribute to CTA " call to action" element, then add data-notybar-target to the target element.

  • You also have the option to choose the position of the target element by adding data-notybar-position attribute to the target element.

    <!-- CTA -->
     <a class="button is-medium mycta"notybar-cta="mytopbar">Top Postion</a>
     
     <!-- Target -->
     <aside data-notybar-position="top"  class="notybar"data-notybar-target="mytopbar"> 
     	<span notybar-close class="close"></span>
     <p>Lorem ipsum dolor sit amet, ut nec aliquam</p>
     </aside>
    

Screenshots

enter image description here

Contribute

If you think you know something i dont, please tell me i'd appreciate any help/feed back.

License (MIT)

You are free to use and/or modify the content of this library for personal or commercial use and free of charge. However it comes with absolutly no warranty.

notybar's People

Contributors

oluwaseye avatar seyz4all avatar

Watchers

James Cloos avatar  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.