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.

81 lines
2.8 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>Friends - GitHub Graphs</title>
  7. <link rel="icon" href="./favicon.ico" type="image/x-icon" />
  8. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  9. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  10. <link rel="stylesheet" href="./style.css" />
  11. <script
  12. src="https://code.jquery.com/jquery-3.3.1.min.js"
  13. integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  14. crossorigin="anonymous">
  15. </script>
  16. <script src="js/githubAPI.js"></script>
  17. <script src="js/friendsGraph.js"></script>
  18. <script src="js/profileGen.js"></script>
  19. <script src="js/utilities.js"></script>
  20. <script type="text/javascript" src="js/vis/vis.js"></script>
  21. <link href="js/vis/vis-network.min.css" rel="stylesheet" type="text/css" />
  22. </head>
  23. <body>
  24. <div id="header-bar" class="d-flex flex-column flex-md-row shadow-sm align-items-center">
  25. <div id="header-title">
  26. <a href="./index.html">
  27. <img id="logo" src="./logo.svg" />
  28. </a>
  29. </div>
  30. <div id="navigation">
  31. <ul class="nav">
  32. <li class="nav-item">
  33. <a href="./GraphGenerator.html">
  34. Generate graphs
  35. </a>
  36. </li>
  37. <div class="nav-sep"></div>
  38. <li class="nav-item">
  39. <a href="https://github.com/jrtechs/github-graphs">
  40. View on GitHub
  41. </a>
  42. </li>
  43. <div class="nav-sep"></div>
  44. <li class="nav-item">
  45. <a href="./about.html">
  46. About
  47. </a>
  48. </li>
  49. </ul>
  50. </div>
  51. </div>
  52. <div class="main container">
  53. <div class="row">
  54. <div class="col-md-8 col-12">
  55. <h2 id="graphLoading"></h2>
  56. <div id="myGraph" class="w-100"></div>
  57. <pre id="eventSpan"></pre>
  58. </div>
  59. <div class="col-md-4 col-12 w-100">
  60. <div id="profileGen"></div>
  61. </div>
  62. </div>
  63. <script>
  64. function createGraphs(username)
  65. {
  66. options.width = $("#myGraph").width() + "px";
  67. options.height = "700px";
  68. createFriendsGraph(username, "myGraph", "graphLoading");
  69. profileGen(username, "profileGen");
  70. }
  71. if(findGetParameter("name") !== null)
  72. {
  73. createGraphs(findGetParameter("name"))
  74. }
  75. </script>
  76. </html>