Giter Site home page Giter Site logo

baitongda / zebra_dialog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stefangabos/zebra_dialog

0.0 2.0 0.0 379 KB

A small, compact, and highly configurable jQuery plugin for creating modal dialog boxes, meant to replace native Java Script “alert” and “confirmation” dialog boxes.

Home Page: http://stefangabos.ro/jquery/zebra-dialog/

License: GNU Lesser General Public License v3.0

JavaScript 83.06% HTML 1.13% CSS 15.81%

zebra_dialog's Introduction

##Zebra_Dialog

####A small, compact, and highly configurable jQuery plugin for creating modal dialog boxes

Zebra_Dialog is a small, compact, and highly configurable jQuery plugin for creating modal dialog boxes, meant to replace native Java Script “alert” and “confirmation” dialog boxes

Can also be used as a notification widget - when configured to show no buttons and to close automatically - for updates or errors, without distracting users from their browser experience by displaying obtrusive alerts.

Screenshot    Screenshot

##Features

  • great looks - out of the box, and 2 themes included
  • 5 types of dialog boxes available: confirmation, information, warning, error and question
  • content can also be added through AJAX calls, iFrames, or from inline elements (together with attached events)
  • easily customisable appearance by editing the stylesheet
  • create modal or non-modal dialog boxes - callback functions can be used for further customisations
  • easily add custom buttons
  • position the dialog box wherever you want - not just in the middle of the screen
  • use callback functions to handle user's choice
  • works in all major browsers (Firefox, Opera, Safari, Chrome, Internet Explorer 6+)

##Requirements

Zebra_Dialog has no dependencies other than jQuery 1.4.1+

##How to use

Zebra_Dialog is available as a Bower package. To install it use:

bower install zebra_dialog

Zebra_Dialog is also available as a npm package. To install it use:

npm install zebra_dialog

Load the latest version of jQuery from a CDN and provide a fallback to a local source, like:

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>window.jQuery || document.write('<script src="path/to/jquery-1.12.0.js"><\/script>')</script>

Load the Zebra_Dialog plugin

<script type="text/javascript" src="path/to/zebra_dialog.js"></script>

Load one of the plugin’s themes

<link rel="stylesheet" href="path/to/themes/default/zebra_dialog.css" type="text/css">

Now, within the DOM-ready event do

$(document).ready(function() {

    // show a dialog box when clicking on a link
    $(anchor).bind('click', function(e) {
        e.preventDefault();
        $.Zebra_Dialog('The link was clicked!');
    });

});

Configuration options and demos on the project's homepage

zebra_dialog's People

Contributors

stefangabos avatar not3 avatar

Watchers

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