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.

24 lines
964 B

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 =
  5. "<div class=\"card\" style=\"w-100;\"> \
  6. <div class=\"card-body\"> \
  7. <div class=\"card-header\"><h3 class=\"card-title\">"+orgData.name+"</h3></div> " +
  8. (orgData.description != null ? "<div class=\"card-text\"><p>"+orgData.description+"</p></div>" : "") + " \
  9. </div> \
  10. <ul class=\"list-group list-group-flush\">"+
  11. (orgData.location !=null ? "<li class=\"list-group-item\">Location: "+orgData.location+"</li>" : "") + " \
  12. </ul> \
  13. </div>"
  14. $("#" + container).html(html);
  15. setTimeout(function() {
  16. $('#dataTable').DataTable();
  17. }, 1500);
  18. }, function(error) {
  19. alert("Organization Does Not Exist");
  20. window.location.href = "./GraphGenerator.html";
  21. });
  22. }