Last active
August 30, 2024 22:18
-
-
Save yusufusta/664a46aa67997598a3eb385d0d933ab0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<script> | |
var kadi; | |
function sonuc() { | |
kadi = document.getElementById("kadi").value; | |
$.getJSON('https://insta-node.herokuapp.com/_validate_username?username=' + kadi, function(data) { | |
if(data["valid"] == true){ | |
document.getElementById("test").innerHTML = '<font color="green"> Bulunmuyor! </font>'; | |
} else if(kadi === "") { | |
document.getElementById("test").innerHTML = '<font color="red"> Kullanıcı adı yazın! </font>'; | |
} else { | |
document.getElementById("test").innerHTML = '<font color="red"> Bulunuyor! </font>'; | |
} | |
}); | |
} | |
</script> | |
<input id="kadi" type=text onKeyup="sonuc()" value="Kullanıcı Adı"> | |
<h1 id="test" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chahed_bou_.html