Materialized
This commit is contained in:
12374
js/materialize.js
vendored
Normal file
12374
js/materialize.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
24
js/script.js
Normal file
24
js/script.js
Normal 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")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user