Giter Site home page Giter Site logo

zhangbg / emodal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saribe/emodal

0.0 1.0 0.0 330 KB

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.

Home Page: http://saribe.github.io/eModal

JavaScript 93.71% HTML 6.29%

emodal's Introduction

eModal for Bootstrap

eModal is a Easy way to manage modal dialogs using bootstrap.

Current Version

1.0.1

Quick Start

  1. Link to eModal.js <script src="//rawgit.com/saribe/eModal/master/dist/eModal.min.js"></script>

  2. use eModal to display a modal for alert, ajax, prompt or confirm

     // Display an alert modal with default title (Attention)
     eModal.alert('You shall not pass!');
    

Other Options

// Display a confirm modal, with custom title.
eModal.confirm('Do you really want to pass?', 'Gandalf question', function(answer){...});

// Display a ajax modal, with a title
eModal.ajax('http://mydomail.com/page.html', 'Jobs - Form apply')

// Display an prompt modal, with a title
eModal.prompt('What is the best song ever?', 'Fill the input')
	
// eModal default settings with your custom html loading template
eModal.setEModalOptions({ 
    loadingHtml: '<span class="fa fa-circle-o-notch fa-spin fa-3x text-primary"></span><h4>Loading</h4>',
    ...
});

Demo and documentation

Copyright

Copyright © 2014-2015

License

Under MIT license - http://www.opensource.org/licenses/mit-license.php

emodal's People

Contributors

saribe avatar

Watchers

zhangbg 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.