summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 77cdf65..8f3a987 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1,5 +1,15 @@
+const showOffering = function(element) {
+ const offeringModal = document.getElementById(element.id + "-modal");
+ offeringModal.classList.add("is-active");
+}
+
+const hideOffering = function(element) {
+ element.parentElement.classList.remove("is-active");
+}
+
/*
* Adds an event listener to all burgers to toggle navbar menu on click.
+ * TODO: would be better off as a single function and onclicks inlined in html
*/
document.addEventListener('DOMContentLoaded', function () {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
@@ -55,9 +65,9 @@ document.forms.inquiry.onsubmit = function() {
Email.send({
SecureToken : "cec9bc04-de48-48fd-b1ad-a95cffb41468",
- To : "atc@53hor.net",
+ To : "amy@carpentertutoring.com",
From : fromEmail,
- Subject : "Inquiry: " + name,
+ Subject : "Tutoring Inquiry from " + name,
Body : body,
}).then(message => {
if (message == "OK") {