Compare commits

...

2 Commits

Author SHA1 Message Date
Remi Rampin 49bf6bc058 WIP availability 2022-05-12 23:39:45 -04:00
Remi Rampin 56686647a8 overflow table 2022-05-12 23:35:46 -04:00
1 changed files with 12 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<label class="form-label" for="topic">What would you like to discuss?</label>
<textarea class="form-control" id="topic" name="topic" placeholder="What would you like to discuss?" style="height: 10rem;"></textarea>
</div>
<div class="mb-3">
<div class="mb-3" style="overflow-x: auto;">
<label class="form-label d-block">Which day and time works best for us to meet on Zoom?</label>
<table class="table">
<thead>
@ -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>