Skip to content

Commit

Permalink
replace editors with team
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-lab12 committed Nov 2, 2023
1 parent 90fde22 commit ac12e9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@
<h1 class="mb-2">Contact</h1>
<div>
<ul>
<li class="text-base">
<a href="https://magazine.mindplex.ai/contact-editors/">Editors</a
>
<li class="text-base cursor-pointer">
<span id="openModalFooter">Team</span>
</li>
</ul>
</div>
Expand Down
8 changes: 7 additions & 1 deletion src/components/Modal/ModalForm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
const formContainer = document.getElementById("formContainer");
const successMessage = document.getElementById("successMessage");
const failureMessage = document.getElementById("failureMessage");
const openModalFooter = document.getElementById("openModalFooter");
if (
closeModalButton &&
modal &&
Expand All @@ -143,11 +144,13 @@
spinner &&
formContainer &&
successMessage &&
failureMessage
failureMessage &&
openModalFooter
) {
closeModalButton.addEventListener("click", function () {
modal.style.display = "none";
});

modal.addEventListener("click", function (event) {
if (!formContainer.contains(event.target)) {
modal.style.display = "none";
Expand All @@ -157,6 +160,9 @@
openModal.addEventListener("click", function () {
modal.style.display = "block";
});
openModalFooter.addEventListener("click", function () {
modal.style.display = "block";
});
form.addEventListener("submit", async function (event) {
event.preventDefault();
const formData = new FormData(event.target);
Expand Down

0 comments on commit ac12e9c

Please sign in to comment.