Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Thizh authored Sep 13, 2023
1 parent fd6acd9 commit 6a151cc
Showing 1 changed file with 1 addition and 67 deletions.
68 changes: 1 addition & 67 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,7 @@
<meta name="color-scheme" content="dark light">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="aurora.css">
<link rel="stylesheet" type="text/css" href="contact.css">
<title>ThIzH WiCk</title>
<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('_HXwDZaoxvauiBKzd');
})();
</script>
<script type="text/javascript">
window.onload = function() {
document.getElementById('contact-form').addEventListener('submit', function(event) {
event.preventDefault();
// generate a five digit number for the contact_number variable
this.contact_number.value = Math.random() * 100000 | 0;
// these IDs from the previous steps
emailjs.sendForm('contact_service', 'contact_form', this)
.then(function() {
console.log('SUCCESS!');
}, function(error) {
console.log('FAILED...', error);
});
});
}
</script>
<script type="text/javascript">
window.onload = function() {
document.getElementById('contact-form').addEventListener('submit', function(event) {
event.preventDefault();
// generate a five digit number for the contact_number variable
this.contact_number.value = Math.random() * 100000 | 0;
// these IDs from the previous steps
emailjs.sendForm('contact_service', 'contact_form', this)
.then(function() {
console.log('SUCCESS!');
}, function(error) {
console.log('FAILED...', error);
});
});
}
</script>
</header>

<body>
Expand All @@ -71,32 +31,6 @@ <h1 class="name">Thisitha Wickramaarachchi</h1>
</div>
</div>
</div>
<form id="contact-form">
<input type="hidden" name="contact_number">
<label>Name</label>
<input type="text" name="user_name">
<label>Email</label>
<input type="email" name="user_email">
<label>Message</label>
<textarea name="message"></textarea>
<input type="submit" value="Send">
</form>
<article id="wrap">
<article id="lightings">
<section id="one">
<section id="two">
<section id="three">
<section id="four">
<section id="five">

</section>
</section>
</section>
</section>
</section>
</article>
</article>

</body>

</html>
</html>

0 comments on commit 6a151cc

Please sign in to comment.