This is a moal dialog without jQuery, and it is used to show a dialog.
<link rel="stylesheet" href="./ui-modal.css">
<script src="./modal.js"></script>
var m = modalx({
title: 'Hello modalx',
content: 'Here is content',
});
m.show();
##API
modal's title.
modal's content, you can use html
modal's width, default: 400px
modal's height default: 250px
close modal when click blank, default:false
ok's callback, hide this button by use false
ok button's value, default: ok
cancel's callback, hide this button by use false
cancel button's value, default: cancel
show modal
there is a shade when covered is true.
hide modal
remove modal element