diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c6e4337 Binary files /dev/null and b/.DS_Store differ diff --git a/Fetch-GitHub-User-And-Search-Opration/app.js b/Fetch-GitHub-User-And-Search-Opration/app.js new file mode 100644 index 0000000..e6592cc --- /dev/null +++ b/Fetch-GitHub-User-And-Search-Opration/app.js @@ -0,0 +1,19 @@ +function search () { + var name = document.getElementById("name").value; + + $.getJSON("https://api.github.com/users/"+name, function(result){ + console.log(result); + + $('#fullname').html(result.name); + $('#dp').attr("src",result.avatar_url); + $('#followers').html("followers : "+result.followers); + $('#following').html("following : "+result.following); + $('#created_at').html("created_at : "+result.created_at); + + }).fail(function() { + $('#fullname,#dp,#followers,#following,#created_at').hide(); + // $('#dp ').hide(); + $('#msg').html('This Username is not available'); + + }) +} \ No newline at end of file diff --git a/Fetch-GitHub-User-And-Search-Opration/index.html b/Fetch-GitHub-User-And-Search-Opration/index.html new file mode 100644 index 0000000..d699125 --- /dev/null +++ b/Fetch-GitHub-User-And-Search-Opration/index.html @@ -0,0 +1,26 @@ + + +
+