WIP availability

This commit is contained in:
Remi Rampin 2022-05-12 23:39:45 -04:00
parent 56686647a8
commit 49bf6bc058
1 changed files with 11 additions and 0 deletions

View File

@ -263,6 +263,17 @@ contactForm.addEventListener("change", function changeEventHandler(e) {
document.getElementById("submitButton").classList.add("disabled"); 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> </script>
</body> </body>