Basic Usage
The most basic usage of MD.Test Code
$.md('The operation failed.');
Prompt
A prompt boxTest Code
$.md('Is this what you want?',{
fullscreen: true,
showMinimize: false,
type: 'prompt',
modalBG: '#000000'
buttons:{
'Yes':function(){$.md.hide()},
'No':function(){$.md.setPosition('100 100')}
}
});
Success
Success message with comfirmationTest Code
$.md('The operation is complete.',{
type: 'success',
title: 'Finished',
position: 'top left',
});
Warning Timeout
Warning with a 2 second delay to close.Test Code
$.md('Do not do it!',{
type:'warning',
timeout:2,
modal:false,
showClose: false,
fullscreen: false,
position: 'top center'
});
Download Source