2023-06-27 04:45:24 +02:00
|
|
|
import {showInfoToast, showWarningToast, showErrorToast} from '../modules/toast.js';
|
|
|
|
|
2024-06-10 22:49:33 +02:00
|
|
|
document.querySelector('#info-toast').addEventListener('click', () => {
|
2023-06-27 04:45:24 +02:00
|
|
|
showInfoToast('success 😀');
|
|
|
|
});
|
2024-06-10 22:49:33 +02:00
|
|
|
document.querySelector('#warning-toast').addEventListener('click', () => {
|
2023-06-27 04:45:24 +02:00
|
|
|
showWarningToast('warning 😐');
|
|
|
|
});
|
2024-06-10 22:49:33 +02:00
|
|
|
document.querySelector('#error-toast').addEventListener('click', () => {
|
2023-06-27 04:45:24 +02:00
|
|
|
showErrorToast('error 🙁');
|
|
|
|
});
|