Materialized

This commit is contained in:
2021-09-26 01:43:44 +02:00
parent 3383d1b614
commit f82aa4c734
13 changed files with 21611 additions and 133 deletions

12374
js/materialize.js vendored Normal file

File diff suppressed because it is too large Load Diff

24
js/script.js Normal file
View File

@ -0,0 +1,24 @@
function updateHost(input) {
input.style.backgroundImage = 'url(img/wait.gif)'
input.style.fontStyle = "italic"
fetch(new Request("updateHost.php", {
method:"POST",
body:new FormData(input.form),
mode:"cors"
})).then(response => {
if (response.ok) {
input.style.backgroundImage = ''
input.style.fontStyle = ""
} else {
input.style.backgroundImage = 'url(img/nok.png)'
}
})
}
function checkMask(input) {
if (input.checkValidity()) {
} else {
input.setCustomValidity("Masque incorrect")
}
}