diff --git a/index.html b/index.html index d7dd480..34ca256 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ -```html @@ -16,49 +15,46 @@

GitHub Profile Viewer

- - - - -``` \ No newline at end of file + function renderProfile(profileData) { + const profileDiv = document.getElementById("profile"); + const profileHTML = + "

" + profileData.name + "

" + + "

Username: " + profileData.login + "

" + + '

Profile URL: ' + profileData.html_url + '

' + + "

Email: " + profileData.email + "

" + + "

Bio: " + profileData.bio + "

"; + profileDiv.innerHTML = profileHTML; + } + + +