Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKhairnar06 authored Feb 29, 2024
0 parents commit 42c2849
Show file tree
Hide file tree
Showing 4 changed files with 618 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Aditya_K.com/c.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function sendMail() {
var params = {
name: document.getElementById("name").value,
email: document.getElementById("email").value,
message: document.getElementById("message").value,
};

const serviceID = "YOUR_SERVICE_ID";
const templateID = "YOUR_TEMPLETE_ID";

emailjs.send(serviceID, templateID, params)
.then(res=>{
document.getElementById("name").value = "";
document.getElementById("email").value = "";
document.getElementById("message").value = "";
console.log(res);
alert("Your message sent successfully!!")

})
.catch(err=>console.log(err));

}
84 changes: 84 additions & 0 deletions Aditya_K.com/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contact Us</title>
<link
rel="stylesheet"

href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<script src="index.js"></script>

<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"
></script>
<script type="text/javascript">
(function () {
emailjs.init("7xPFeY7Sa6wCbn_iM");
})();
</script>

</head>
<body>
<div class="container border mt-3 bg-light">
<div class="row">
<div class="col-md-6 p-5 bg-primary text-white">
<h1>Hi there!</h1>
<h4>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quo,
</h4>
</div>
<div class="col-md-6 border-left py-3">
<h1>Contact form</h1>
<div class="form-group">
<h5 for="name">Name</h5>
<input
type="text"
class="form-control"
id="name"
placeholder="Enter name"
/>
</div>
<div class="form-group">
<h5 for="email">Email</h5>
<input
type="email"
class="form-control"
id="email"
placeholder="Enter email"
/>
</div>
<div class="form-group">
<h5 for="message">Message</h5>
<textarea class="form-control" id="message" rows="3"></textarea>
</div>
<button class="btn btn-primary" onclick="sendMail()">Submit</button>
</div>
</div>
</div>
<hr>
</main>

<!--===== FOOTER =====-->
<footer class="footer">
<p class="footer__title">Aditya Khairnar</p>
<div class="footer__social">
<a href="#" class="footer__icon"><i class='bx bxl-facebook' ></i></a>
<a href="#" class="footer__icon"><i class='bx bxl-instagram' ></i></a>
<a href="#" class="footer__icon"><i class='bx bxl-twitter' ></i></a>
</div>
<p class="footer__copy">&#169; Bedimcode. All rigths reserved</p>
</footer>


<!--===== SCROLL REVEAL =====-->
<script src="https://unpkg.com/scrollreveal"></script>

</body>
</html>
23 changes: 23 additions & 0 deletions Aditya_K.com/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
function sendMail() {
var params = {
name: document.getElementById("name").value,
email: document.getElementById("email").value,
message: document.getElementById("message").value,
};

const serviceID = "service_gizayev";
const templateID = "template_0xll1t9";

emailjs.send(serviceID, templateID, params)
.then(res=>{
document.getElementById("name").value = "";
document.getElementById("email").value = "";
document.getElementById("message").value = "";
console.log(res);
alert("Your message sent successfully!!")

})
.catch(err=>console.log(err));

}

Loading

0 comments on commit 42c2849

Please sign in to comment.