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.

18 lines
849 B

  1. function profileGen(data, container)
  2. {
  3. let html = `
  4. <div class="card shadow-sm" style="font-size: 16px;">
  5. <div class="card-img-top" style="position: relative;">
  6. <img src="${data.avatar}" alt="${data.avatar}" width="100%" class="img-fluid"/>
  7. </div>
  8. <div class="card-body">
  9. ${data.name ? `<h5 class="card-title mb-1">${data.name}</h5>` : ""}
  10. <a href="${data.avatar}" class="card-subtitle text-muted">${data.realName}</a>
  11. <ul class="list-unstyled">
  12. <li><a href="https://steamcommunity.com/profiles/${data.id}">Steam profile</a></li>
  13. <li><a href="/friendsGraph.html?id=${data.id}">Friends Graph</a></li>
  14. </ul>
  15. </div>
  16. </div>
  17. `;
  18. $("#"+container).html(html);
  19. }