From 60915408f6b9549dd8f0279ab3f715f1a32dea15 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 27 Apr 2020 21:08:02 -0400 Subject: finished offerings --- src/js/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/js') 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") { -- cgit v1.2.3