Compare commits
2 Commits
3faeabb299
...
49bf6bc058
Author | SHA1 | Date |
---|---|---|
Remi Rampin | 49bf6bc058 | |
Remi Rampin | 56686647a8 |
13
form.html
13
form.html
|
@ -20,7 +20,7 @@
|
||||||
<label class="form-label" for="topic">What would you like to discuss?</label>
|
<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>
|
<textarea class="form-control" id="topic" name="topic" placeholder="What would you like to discuss?" style="height: 10rem;"></textarea>
|
||||||
</div>
|
</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>
|
<label class="form-label d-block">Which day and time works best for us to meet on Zoom?</label>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue