From 07dad0dca29ac415310baa9709bcc8f9218ff3d8 Mon Sep 17 00:00:00 2001 From: Anthony Dumas Date: Tue, 7 May 2019 15:24:21 +0200 Subject: [PATCH] Utilisation de bonsoir.js pour dire Bonjour (Ou Bonsoir) dans la popup de mail --- _javascript/main.js | 3 ++- index.html | 1 + lib/main.js | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_javascript/main.js b/_javascript/main.js index 7065a3a..5a57da1 100644 --- a/_javascript/main.js +++ b/_javascript/main.js @@ -4,9 +4,10 @@ $btnMail.removeAttr("disabled"); $btnMail.click(function (evt) { evt.preventDefault(); + var salutation = bonsoir.salutation(); Swal.fire({ title: 'Email', - html: "Vous pouvez m'envoyer un mail à anthony@dumas.cc !", + html: salutation + "! Vous pouvez m'envoyer un mail à anthony@dumas.cc !", imageUrl: './images/mail.jpg', imageWidth: 400, imageHeight: 200, diff --git a/index.html b/index.html index 39ba782..6f21464 100644 --- a/index.html +++ b/index.html @@ -331,6 +331,7 @@ + diff --git a/lib/main.js b/lib/main.js index 8b0f618..5e29259 100644 --- a/lib/main.js +++ b/lib/main.js @@ -6,9 +6,10 @@ $btnMail.removeAttr("disabled"); $btnMail.click(function (evt) { evt.preventDefault(); + var salutation = bonsoir.salutation(); Swal.fire({ title: 'Email', - html: "Vous pouvez m'envoyer un mail à anthony@dumas.cc !", + html: salutation + "! Vous pouvez m'envoyer un mail à anthony@dumas.cc !", imageUrl: './images/mail.jpg', imageWidth: 400, imageHeight: 200,