| 24 | |
| 25 | |
| 26 | function updatedata(data){ |
| 27 | let filldata =''; |
| 28 | const div = document.createElement("div"); |
| 29 | |
| 30 | |
| 31 | filldata = |
| 32 | ` |
| 33 | <div class = "card"> |
| 34 | <img src="${data.avatar_url}" alt="Error"> |
| 35 | <p class="bold">Bio</p> |
| 36 | <p class="light">${data.bio}</p> |
| 37 | <p class="bold">Locataion</p> |
| 38 | <p class="light">${data.location}</p> |
| 39 | <p class="bold">Number of Public Repos</p> |
| 40 | <p class="light">${data.public_repos}</p> |
| 41 | <p class="bold">Number of Followers</p> |
| 42 | <p class="light">${data.followers}</p> |
| 43 | |
| 44 | <p class="light"><a href = "${data.blog}" class = "bold" target = "_blank" >LinkedIN</a></p> |
| 45 | </div> |
| 46 | |
| 47 | `; |
| 48 | |
| 49 | div.innerHTML = filldata; |
| 50 | div.classList.add('card') |
| 51 | const bottom = document.querySelector('.bottom').appendChild(div); |
| 52 | |
| 53 | } |
| 54 | |
| 55 | |
| 56 | |