[mirotalksfu] - replace alert with sweetalert
هذا الالتزام موجود في:
15
public/js/Utils.js
Normal file
15
public/js/Utils.js
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
function popup(icon, text, position = 'center') {
|
||||
Swal.fire({
|
||||
background: '#1D2026',
|
||||
position: position,
|
||||
icon: icon,
|
||||
text: text,
|
||||
color: '#FFFFFF',
|
||||
confirmButtonColor: '#1A84F5',
|
||||
showClass: { popup: 'animate__animated animate__fadeInDown' },
|
||||
hideClass: { popup: 'animate__animated animate__fadeOutUp' },
|
||||
});
|
||||
}
|
||||
//...
|
||||
المرجع في مشكلة جديدة
حظر مستخدم