From 9ae928560e278e14e00baf88188c41e801c3f25e Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Tue, 25 Aug 2020 12:11:34 +0200 Subject: [PATCH] update --- client/index.js | 4 ++-- client/package-lock.json | 21 +++++++++++++++++++++ client/style.css | 1 + 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 client/package-lock.json diff --git a/client/index.js b/client/index.js index 7e89962..917cc14 100644 --- a/client/index.js +++ b/client/index.js @@ -47,7 +47,7 @@ function interceptForm (formId) { /* Add loading text */ const submitButton = formElem.querySelector('[type="submit"]') const loadingText = document.createElement('span') - loadingText.textContent = 'Envoi en cours…' + loadingText.textContent = ' Envoi en cours…' submitButton.after(loadingText) /* XHR */ fetch(formElem.action, { @@ -79,7 +79,7 @@ link.type = "text/css"; link.rel = "stylesheet"; link.crossOrigin = 'anonymous'; link.href = path + "/style.css"; -link.integrity = 'sha384-ZMVeO+6AH9XFYHVaNjAylDyzMg30SupfmEQ2u2VjPGLF1ZK4ZF6MXle1JGO5vYLv' +link.integrity = 'sha384-9kSXtY4xhTP1f97JTT2J8tEHj1thIUfd9Ub7yOFsGLBQ/impvue07/UN1MhyCcyP' document.head.appendChild(link); interceptForm ('contact-mailer-form') diff --git a/client/package-lock.json b/client/package-lock.json new file mode 100644 index 0000000..de0852d --- /dev/null +++ b/client/package-lock.json @@ -0,0 +1,21 @@ +{ + "name": "jean-cloud-contact-mailer-client", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "npm-auto-version": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/npm-auto-version/-/npm-auto-version-1.0.0.tgz", + "integrity": "sha1-b21s8b2JEL5U71DnOMCfgSWE3jI=", + "requires": { + "semver": "^5.0.3" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + } + } +} diff --git a/client/style.css b/client/style.css index 81fcdf1..4e4cd07 100644 --- a/client/style.css +++ b/client/style.css @@ -5,6 +5,7 @@ .contact-mailer-message { border: 1px solid; padding: 3px; + padding-left: 8px; border-radius: 2px; cursor:pointer; }