Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CusMeDroid authored Apr 13, 2024
1 parent 46531ab commit 4b8bbf8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions assets/js/contact/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const mUsername = document.getElementById("username").value;
const mEmail = document.getElementById("email").value;
const mSubject = document.getElementById("subject").value;

function mContact() {
const mUsername = document.getElementById("username").value;
const mEmail = document.getElementById("email").value;
const mSubject = document.getElementById("subject").value;
if (mUsername < 1 || mEmail < 1 || mSubject < 1) {
alert("Please do not ne empty!");
} else {
window.open('mailto:cusmedroidteam@gmail.com?subject='+mUsername+', '+mEmail+'&body='+mSubject);
}
}
}

0 comments on commit 4b8bbf8

Please sign in to comment.