Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
webcat882 committed Jul 9, 2024
1 parent b64952d commit 1938408
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion contact.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
document.addEventListener('DOMContentLoaded', function() {
const form = document.getElementById('contact');

emailjs.init("tNJ1716vVd9rPzdJY");

const form = document.getElementById('contactForm');
const nameInput = document.getElementById('name');
const emailInput = document.getElementById('email');
const phoneInput = document.getElementById('phonenumber');
Expand Down
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h3>Markvii Loading</h3>
<section class="contact" id="contact">
<h2 class="heading">Contact <span>Me</span></h2>

<form action="#">
<form action="#" id="contactForm">
<div class="input-group">
<div class="input-box">
<input type="text" id ="name" placeholder="Full Name" />
Expand Down Expand Up @@ -294,6 +294,12 @@ <h2 class="heading">Contact <span>Me</span></h2>
link.click();
});
</script>
<script src="https://cdn.emailjs.com/dist/email.min.js"></script>
<script>
(function(){
emailjs.init("tNJ1716vVd9rPzdJY"); // Replace 'YOUR_USER_ID' with your EmailJS user ID
})();
</script>
<script src="script.js"></script>
<script src="contact.js"></script>
</body>
Expand Down

0 comments on commit 1938408

Please sign in to comment.