WIP availability
This commit is contained in:
parent
56686647a8
commit
49bf6bc058
11
form.html
11
form.html
|
@ -263,6 +263,17 @@ contactForm.addEventListener("change", function changeEventHandler(e) {
|
|||
document.getElementById("submitButton").classList.add("disabled");
|
||||
}
|
||||
});
|
||||
|
||||
fetch("https://contact.vicky.rampin.org/availability")
|
||||
.then(function(response) {
|
||||
if(response.status !== 200) {
|
||||
throw new Error();
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.then(function(obj) {
|
||||
console.log(obj.availability);
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue