Skip to content

Commit

Permalink
adding google site verification meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hmzi67 committed Feb 29, 2024
1 parent 2ce2f9f commit a5a4ed3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions Portfolio/google4dc9d964fdfc1a8e.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: google4dc9d964fdfc1a8e.html
8 changes: 5 additions & 3 deletions Portfolio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Hamza Waheed">
<meta name="google-site-verification" content="Gf0pqLGJrcBgpOgVjfsj4eQmBVfG_wMa2yfiSibtQj0" />
<link rel="shortcut icon" href="./assets/favicon/favicon-16x16.png" type="image/x-icon">
<title>Hamza Waheed</title>
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
Expand Down Expand Up @@ -376,10 +377,10 @@ <h2 class="title">Contact me</h2>
</div>
<div class="column right">
<div class="text">Message me</div>
<form action="https://getform.io/f/8ca660ec-05bb-4e2e-969e-b2e7cad2aadc" method="POST" id="my-form">
<form action="" method="POST" id="my-form">
<div class="fields">
<div class="field name">
<input type="text" placeholder="Name" required name="name">
<input type="text" id="userName" placeholder="Name" required name="name">
</div>
<div class="field email">
<input type="email" placeholder="[email protected]" required name="email">
Expand All @@ -393,7 +394,7 @@ <h2 class="title">Contact me</h2>
<input type="hidden" name="_gotcha" style="display:none !important">
</div>
<div class="button-area">
<button type="submit">Send message</button>
<button type="submit" onclick="sendEmail()">Send message</button>
</div>
</form>
</div>
Expand All @@ -412,6 +413,7 @@ <h2 class="title">Contact me</h2>
</footer>

<script src="script.js"></script>
<script src="https://smtpjs.com/v3/smtp.js"></script>
</body>

</html>
23 changes: 23 additions & 0 deletions Portfolio/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,26 @@ $(document).ready(function () {
},
});
});


function sendEmail() {

let userName = document.querySelector("userName");
let userEmail = document.getElementById()



console.log("hello " + userName);

Email.send({
Host : "smtp.elasticemail.com",
Username : "[email protected]",
Password : "540080562F6AE78214EDD7F5136BAB7EB452",
To : '[email protected]',
From : "[email protected]",
Subject : "This is the subject",
Body : "And this is the body"
}).then(
message => alert(message)
);
}

0 comments on commit a5a4ed3

Please sign in to comment.