add event submit

This commit is contained in:
2022-07-20 22:54:46 +02:00
parent eb36c8d386
commit 1eb459c44b
2 changed files with 17 additions and 8 deletions

View File

@@ -1,5 +1,14 @@
instance.get("token", { withCredentials: true})
.then(function(response) { console.log(response) })
.catch(function(error){
});
});
document.getElementById("signin").addEventListener("submit", function(evt){
evt.preventDefault();
var email = document.getElementById("floatingEmail");
var password = document.getElementById("floatingPassword");
if((password.value.length > 0) || (email.value.length > 0)){
console.log("request");
}
})