update
This commit is contained in:
parent
da17e1c535
commit
9ae928560e
@ -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')
|
||||
|
21
client/package-lock.json
generated
Normal file
21
client/package-lock.json
generated
Normal file
@ -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=="
|
||||
}
|
||||
}
|
||||
}
|
@ -5,6 +5,7 @@
|
||||
.contact-mailer-message {
|
||||
border: 1px solid;
|
||||
padding: 3px;
|
||||
padding-left: 8px;
|
||||
border-radius: 2px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user