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.

19 lines
859 B

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. $('#dataTable').DataTable();
  16. }, function(error) {
  17. console.log("Unable to load table data");
  18. });
  19. }