Graph database Analysis of the Steam 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.

28 lines
1.1 KiB

  1. function createOrgInfo(orgName, container) {
  2. queryAPIByOrg("", orgName, (orgData) => {
  3. var html = `
  4. <div class="card shadow py-4 px-3">
  5. <div class="row align-items-center">
  6. <div class="col-md-2 text-center">
  7. <img src="${orgData.avatar_url}" alt="${orgData.name}" class="img-fluid" style="max-width: 100px"/>
  8. </div>
  9. <div class="col-md-10">
  10. <div class="media-body">
  11. <h1 class="h4">${orgData.name}</h1>
  12. <p class="text-muted">${orgData.description}</p>
  13. <ul class="d-flex list-unstyled mb-0">
  14. <li>${orgData.location}</li>
  15. </ul>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. `;
  21. $("#" + container).html(html);
  22. }, function(error) {
  23. alert("Organization Does Not Exist");
  24. window.location.href = "./GraphGenerator.html";
  25. });
  26. }