MCPcopy Index your code
hub / github.com/codemistic/Web-Development / updatedata

Function updatedata

Github Search Profile App/script.js:26–53  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

24
25
26function updatedata(data){
27let filldata ='';
28const div = document.createElement("div");
29
30
31filldata =
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
49div.innerHTML = filldata;
50div.classList.add('card')
51const bottom = document.querySelector('.bottom').appendChild(div);
52
53}
54
55
56

Callers 1

getUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected