Passage sur SweetAlert2 car maintenu + ajout d'une image dans la popup mail
This commit is contained in:
parent
27cb219db0
commit
d3f3f1b873
@ -4,9 +4,13 @@ $btnMail.removeAttr("disabled");
|
|||||||
|
|
||||||
$btnMail.click(function (evt) {
|
$btnMail.click(function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
swal({
|
Swal.fire({
|
||||||
text: "anthony@dumas.cc",
|
title: 'Email',
|
||||||
icon: "info",
|
html: "Vous pouvez m'envoyer un mail à <strong>anthony@dumas.cc</strong> !",
|
||||||
button: true,
|
imageUrl: './images/mail.jpg',
|
||||||
});
|
imageWidth: 400,
|
||||||
|
imageHeight: 200,
|
||||||
|
imageAlt: 'Custom image',
|
||||||
|
animation: false
|
||||||
|
})
|
||||||
});
|
});
|
BIN
images/mail.jpg
Normal file
BIN
images/mail.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
@ -249,7 +249,7 @@
|
|||||||
</footer>
|
</footer>
|
||||||
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
|
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="lib/main.js"></script>
|
<script type="text/javascript" src="lib/main.js"></script>
|
||||||
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
12
lib/main.js
12
lib/main.js
@ -6,9 +6,13 @@ $btnMail.removeAttr("disabled");
|
|||||||
|
|
||||||
$btnMail.click(function (evt) {
|
$btnMail.click(function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
swal({
|
Swal.fire({
|
||||||
text: "anthony@dumas.cc",
|
title: 'Email',
|
||||||
icon: "info",
|
html: "Vous pouvez m'envoyer un mail à <strong>anthony@dumas.cc</strong> !",
|
||||||
button: true
|
imageUrl: './images/mail.jpg',
|
||||||
|
imageWidth: 400,
|
||||||
|
imageHeight: 200,
|
||||||
|
imageAlt: 'Custom image',
|
||||||
|
animation: false
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user