Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// jQuery Alert Dialogs Plugin
//
// Version 1.1
//
// Cory S.N. LaViska
// A Beautiful Site (http://abeautifulsite.net/)
// 14 May 2009
//
// Visit http://abeautifulsite.net/notebook/87 for more information
//
// Usage:
// jAlert( message, [title, callback] )
// jConfirm( message, [title, callback] )
// jPrompt( message, [value, title, callback] )
//
// History:
//
// 1.00 - Released (29 December 2008)
//
// 1.01 - Fixed bug where unbinding would destroy all resize events
//
// License:
//
// This plugin is dual-licensed under the GNU General Public License and the MIT License and
// is copyright 2008 A Beautiful Site, LLC.
//
(function ( $ ) {
$.alerts = {
// These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
repositionOnResize: true, // re-centers the dialog on window resize
overlayOpacity: .01, // transparency level of overlay
overlayColor: '#FFF', // base color of overlay
draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
okButton: ' OK ', // text for the OK button
cancelButton: ' Cancel ', // text for the Cancel button
dialogClass: null, // if specified, this class will be applied to all dialogs
// Public methods
alert: function ( message, title, callback ) {
if ( title == null ) {
title = 'Alert';
}
$.alerts._show( title, message, null, 'alert', function ( result ) {
if ( callback ) {
callback( result );
}
} );
},
confirm: function ( message, title, callback ) {
if ( title == null ) {
title = 'Confirm';
}
$.alerts._show( title, message, null, 'confirm', function ( result ) {
if ( callback ) {
callback( result );
}
} );
},
prompt: function ( message, value, title, callback ) {
if ( title == null ) {
title = 'Prompt';
}
$.alerts._show( title, message, value, 'prompt', function ( result ) {
if ( callback ) {
callback( result );
}
} );
},
// Private methods
_show: function ( title, msg, value, type, callback ) {
$.alerts._hide();
$.alerts._overlay( 'show' );
$( "BODY" ).append( '