tomato-confirming

A lightweight script for creating custom alert box


License
GPL-3.0
Install
bower install tomato-confirming

Documentation

confirming.js

A lightweight library for creating confirm boxes in JavaScript

Basic usage

var myConfirmObject = confirm({
    className: 'classNameOfTheConfirmBoxContainer',
    statement: 'Statement label here',
    disagree: 'Disagree button label here',
    agree: 'Agree button label here'
});

myConfirmObject.open(function agreed(){
    console.log('agreed');
},function(){
    console.log('disagreed');
});

Confirm box structure (for styling)

div.givenClassName>div>span+div>button*2

Install

Bower

bower install --save tomato-confirming