Website for visualizing a persons github network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
999 B

5 years ago
  1. function profileGen(username, container) {
  2. queryAPIByUser("", username, (data) => {
  3. console.log(data);
  4. html =
  5. "<div> \
  6. <img src=\""+data.avatar_url+"\"></img> \
  7. <h1>"+data.name+"</h1> \
  8. <h2>"+data.login+"</h2> \
  9. <p>Followers: "+data.followers+"</p> \
  10. <p>Following: "+data.following+"</p> \
  11. <p>"+(data.bio != null ? "Bio: "+data.bio : "")+"</p> \
  12. <p>"+(data.location != null ? "Location: "+data.location : "")+"</p> \
  13. <p>"+(data.email != null ? "Email: "+data.email : "")+"</p> \
  14. <p>"+(data.blog != null ? "Site: "+data.blog : "")+"</p> \
  15. <p>"+(data.company != null ? "Company: "+data.company : "")+"</p> \
  16. <a href=\""+data.html_url+"\">"+data.html_url+"</h2> \
  17. <h2></h2> \
  18. </div>"
  19. $("#"+container).html(html);
  20. }, () => {
  21. console.log("error");
  22. });
  23. }
  24. function parseOrgs(oranization_url) {
  25. }