Modifica posizione avvisi in basso a destra

This commit is contained in:
Pek5892 2023-12-01 13:28:39 +01:00
parent 925f7da15f
commit 6aa15f0da3
2 changed files with 8 additions and 9 deletions

View File

@ -39,7 +39,7 @@ $(document).ready(function () {
"debug": false, "debug": false,
"newestOnTop": false, "newestOnTop": false,
"progressBar": true, "progressBar": true,
"positionClass": "toast-top-center", "positionClass": "toast-bottom-right",
//"preventDuplicates": true, //"preventDuplicates": true,
"onclick": null, "onclick": null,
"showDuration": "300", "showDuration": "300",

View File

@ -451,18 +451,17 @@ function alertPush() {
$('.alert-success.push').each(function () { $('.alert-success.push').each(function () {
i++; i++;
tops = 60 * i + 95; bottoms = 60 * i;
$(this).css({ $(this).css({
'position': 'fixed', 'position': 'fixed',
'z-index': 3000, 'z-index': 300000,
'left': '50%', 'right': '10px',
'transform': 'translate(-50%, -50%)', 'bottom': -100,
'top': -100,
}).delay(1000).animate({ }).delay(1000).animate({
'top': tops, 'bottom': bottoms,
}).delay(3000).animate({ }).delay(3000).animate({
'top': -100, 'bottom': -100,
}); });
}); });
} }
@ -470,7 +469,7 @@ function alertPush() {
// Nascondo la notifica se passo sopra col mouse // Nascondo la notifica se passo sopra col mouse
$('.alert-success.push').on('mouseover', function () { $('.alert-success.push').on('mouseover', function () {
$(this).stop().animate({ $(this).stop().animate({
'top': -100, 'bottom': -100,
'opacity': 0 'opacity': 0
}); });
}); });