Files
hustoj/web/bsadmin/assets/js/lib/toastr/toastr.init.js
2024-10-10 12:56:56 +08:00

758 lines
20 KiB
JavaScript

//...................................................
// 1. All Success Message
//...................................................
$('#toastr-success-top-right').click(function() {
toastr.success('This Is Success Message','Top Right',{
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"positionClass": "toast-top-right",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-bottom-right').click(function() {
toastr.success('This Is Success Message','Bottom Right',{
"positionClass": "toast-bottom-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-bottom-left').click(function() {
toastr.success('This Is Success Message','Bottom Left',{
"positionClass": "toast-bottom-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-top-left').click(function() {
toastr.success('This Is Success Message','Top Left',{
"positionClass": "toast-top-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-top-full-width').click(function() {
toastr.success('This Is Success Message','Top Full Width',{
"positionClass": "toast-top-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-bottom-full-width').click(function() {
toastr.success('This Is Success Message','Bottom Full Width',{
"positionClass": "toast-bottom-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-top-center').click(function() {
toastr.success('This Is Success Message','Top Center',{
"positionClass": "toast-top-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-success-bottom-center').click(function() {
toastr.success('This Is Success Message','Bottom Center',{
"positionClass": "toast-bottom-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
//...................................................
// 1. All Info Message
//...................................................
$('#toastr-info-top-right').click(function() {
toastr.info('This Is info Message','Top Right',{
"positionClass": "toast-top-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-bottom-right').click(function() {
toastr.info('This Is info Message','Bottom Right',{
"positionClass": "toast-bottom-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-bottom-left').click(function() {
toastr.info('This Is info Message','Bottom Left',{
"positionClass": "toast-bottom-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-top-left').click(function() {
toastr.info('This Is info Message','Top Left',{
"positionClass": "toast-top-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-top-full-width').click(function() {
toastr.info('This Is info Message','Top Full Width',{
"positionClass": "toast-top-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-bottom-full-width').click(function() {
toastr.info('This Is info Message','Bottom Full Width',{
"positionClass": "toast-bottom-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-top-center').click(function() {
toastr.info('This Is info Message','Top Center',{
"positionClass": "toast-top-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-info-bottom-center').click(function() {
toastr.info('This Is info Message','Bottom Center',{
"positionClass": "toast-bottom-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
//...................................................
// 1. All Warning Message
//...................................................
$('#toastr-warning-top-right').click(function() {
toastr.warning('This Is warning Message','Top Right',{
"positionClass": "toast-top-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-bottom-right').click(function() {
toastr.warning('This Is warning Message','Bottom Right',{
"positionClass": "toast-bottom-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-bottom-left').click(function() {
toastr.warning('This Is warning Message','Bottom Left',{
"positionClass": "toast-bottom-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-top-left').click(function() {
toastr.warning('This Is warning Message','Top Left',{
"positionClass": "toast-top-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-top-full-width').click(function() {
toastr.warning('This Is warning Message','Top Full Width',{
"positionClass": "toast-top-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-bottom-full-width').click(function() {
toastr.warning('This Is warning Message','Bottom Full Width',{
"positionClass": "toast-bottom-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-top-center').click(function() {
toastr.warning('This Is warning Message','Top Center',{
"positionClass": "toast-top-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-warning-bottom-center').click(function() {
toastr.warning('This Is warning Message','Bottom Center',{
"positionClass": "toast-bottom-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
//...................................................
// 1. All Error Message
//...................................................
$('#toastr-danger-top-right').click(function() {
toastr.error('This Is error Message','Top Right',{
"positionClass": "toast-top-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-bottom-right').click(function() {
toastr.error('This Is error Message','Bottom Right',{
"positionClass": "toast-bottom-right",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-bottom-left').click(function() {
toastr.error('This Is error Message','Bottom Left',{
"positionClass": "toast-bottom-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-top-left').click(function() {
toastr.error('This Is error Message','Top Left',{
"positionClass": "toast-top-left",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-top-full-width').click(function() {
toastr.error('This Is error Message','Top Full Width',{
"positionClass": "toast-top-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-bottom-full-width').click(function() {
toastr.error('This Is error Message','Bottom Full Width',{
"positionClass": "toast-bottom-full-width",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-top-center').click(function() {
toastr.error('This Is error Message','Top Center',{
"positionClass": "toast-top-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});
$('#toastr-danger-bottom-center').click(function() {
toastr.error('This Is error Message','Bottom Center',{
"positionClass": "toast-bottom-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
});