Skip to content

mattlockyer/diajs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dia.js

Simple, Plain, Customizable JS Dialogs.

Demo

http://mattlockyer.github.io/diajs/

Dependencies

jQuery (loaded from google if undefined)

Setup

<script src="dia.js"></script>

How to:

Alert

DIA.alert('Hip Hop, Horray');

Confirm

DIA.confirm('Which type of music do you prefer?', function(value) {
  console.log(value);
}, {'Hip Hop':'Hooray', 'Metal':'Burn Everything'});

Prompt

DIA.prompt('How old are you?', function(value) {
  console.log(value);
}, 'my age', {'Yes, that is correct':true});

About

Simple, Plain, Customizable JS Dialogs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published