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.

21 lines
1.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. function createOrgInfo(orgName, container) {
  2. queryAPIByOrg("", orgName, (orgData) => {
  3. console.log("called");
  4. var html = "<div class=\"card\" style=\"w-100;\"><div class='row m-0'><div class='col-2 col-centered p-auto'>"+
  5. "<img src='" + orgData.avatar_url + "' width='100%'/>" +
  6. "</div><div class='col-10'>\
  7. <div class=\"card-body\"> \
  8. <center><b><h3 class=\"card-title\">"+orgData.name+"</h3><b><center> " +
  9. (orgData.description != null ? "<div class=\"card-text\"><p>"+orgData.description+"</p></div>" : "") + " \
  10. </div> \
  11. <ul class=\"list-group list-group-flush\">"+
  12. (orgData.location !=null ? "<li class=\"list-group-item\">Location: "+orgData.location+"</li>" : "") + " \
  13. </ul> \
  14. </div></div></div>";
  15. $("#" + container).html(html);
  16. }, function(error) {
  17. alert("Organization Does Not Exist");
  18. window.location.href = "./GraphGenerator.html";
  19. });
  20. }