Skip to content

Commit

Permalink
add link to button
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Feng authored and kokonut121 committed Sep 23, 2024
1 parent 0b69419 commit b6a567f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion views/public/indexV2.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@
<div class="modal-body">
<h2>Mutorials is hiring!</h2>
<p>We're looking for passionate individuals to fill our Marketing Director and Subject Lead Roles!</p>
<button class="btn btn-primary rounded-md" href="https://docs.google.com/forms/d/e/1FAIpQLSdApNSVCwUQSarhzrp9MboT0S_bCO5pwbL4xUGQm-0DXWaRpg/viewform?usp=sharing">Apply Now!</button>
<button class="btn btn-primary rounded-md" id="linkButton">Apply Now!</button>
<button class="btn btn-outline rounded-md" id="closePopupBtn">Close</button>
</div>
</div>

<script>
const popup = document.getElementById('announcementPopup');
const close = document.getElementById('closePopupBtn');
const link = document.getElementById('linkButton');
function showPopup() {
popup.style.display = 'block';
Expand All @@ -80,10 +81,15 @@
overlay.style.display = 'none';
}
function goToForm() {
window.location.href="https://docs.google.com/forms/d/e/1FAIpQLSdApNSVCwUQSarhzrp9MboT0S_bCO5pwbL4xUGQm-0DXWaRpg/viewform?usp=sharing";
}
window.onload = function() {
showPopup();
};
linkButton.addEventListener('click', goToForm);
closePopupBtn.addEventListener('click', closePopup);
</script>
Expand Down

0 comments on commit b6a567f

Please sign in to comment.