login page added, no sql to db tho. bisou

This commit is contained in:
quoije
2022-02-21 00:57:00 -05:00
parent fea9b76208
commit 6ea9b8bce3
8 changed files with 280 additions and 17 deletions
+19
View File
@@ -0,0 +1,19 @@
var str = "Aucun pain bleu ici, malheureusement. keep looking tho, may find something.";
console.log(str);
function chkLogin(woof, miaw) {
$.post( "./api/yeet.php", { dog: woof, cat: miaw }, function(data) {
console.log("au moins ta fonction chkLogin se fait caller, c'est déjà ça...");
console.log(data);
document.getElementById("nomd").value = "";
document.getElementById("mdp").value = "";
if (typeof data.x === "string")
{
document.getElementById("oof").innerHTML = data.x;
}
});
}