From f9049d42af9b51db0a4bd88375dd23bacf6b88d3 Mon Sep 17 00:00:00 2001
From: itsrishti <123953052+itsrishti@users.noreply.github.com>
Date: Sat, 15 Apr 2023 20:58:36 +0530
Subject: [PATCH] github user finder
---
index.html | 35 +++++++++++++++++++++++++++++++++++
script.js | 25 +++++++++++++++++++++++++
2 files changed, 60 insertions(+)
create mode 100644 index.html
create mode 100644 script.js
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..e2dcc25
--- /dev/null
+++ b/index.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ github user finder using github api
+
+
+
+
+
+
+
+
+ Github search user app
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..2c3f2cd
--- /dev/null
+++ b/script.js
@@ -0,0 +1,25 @@
+var form = document.getElementById("myform")
+
+
+form.addEventListener('submit',function(e){
+ e.preventDefault()
+
+ var search = document.getElementById("search").value
+
+
+
+ var originalName = search.split(' ').join('')
+
+ document.getElementById("result").innerHTML = ""
+
+fetch("https://api.github.com/users/"+originalName)
+.then((result) => result.json())
+.then((data) => {
+
+
+ console.log(data)
+ document.getElementById("result").innerHTML =`
+
+ `
+})
+})
\ No newline at end of file