ldc-bogt/resources/js/alert.js

19 lines
720 B
JavaScript
Raw Permalink Normal View History

2022-04-04 14:30:39 +02:00
// ES6 Modules or TypeScript
import Swal from 'sweetalert2/dist/sweetalert2.js'
2022-04-04 14:30:39 +02:00
2022-08-09 14:05:38 +00:00
document.addEventListener('DOMContentLoaded', () => {
if (document.getElementsByClassName('oldEgg').length) {
Swal.fire({
width: 235,
imageUrl: '/assets/images/logo_bogt.png',
imageWidth: 200,
imageHeight: 200,
imageAlt: 'Logo Loué terre d\'action',
background: '#4b8764',
confirmButtonText: '<a href="https://www.loue.fr/article/Des-arbres-et-des-haies-pour-les-volailles-fermières-de-Loué/a3.aspx" target="_blank">Je valide mon achat</a>',
confirmButtonColor: '#005621',
showCloseButton: true,
})
}
})