18 lines
700 B
JavaScript
Vendored
18 lines
700 B
JavaScript
Vendored
// ES6 Modules or TypeScript
|
|
import Swal from 'sweetalert2'
|
|
|
|
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,
|
|
})
|
|
}
|
|
})
|