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.

106 lines
4.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  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>Organization - 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/createOrgRepoGraph.js"></script>
  19. <script src="js/utilities.js"></script>
  20. <script src="js/profileGen.js"></script>
  21. <script src="js/createOrgTable.js"></script>
  22. <script src="js/createOrgInfo.js"></script>
  23. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.18/datatables.min.css"/>
  24. <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.18/datatables.min.js"></script>
  25. <script type="text/javascript" src="js/vis/vis.js"></script>
  26. <link href="js/vis/vis-network.min.css" rel="stylesheet" type="text/css" />
  27. </head>
  28. <body>
  29. <nav class="navbar navbar-dark bg-dark navbar-expand-md">
  30. <a class="navbar-brand" href="/"><img src="img/githubgraph-logo.svg" alt=""></a>
  31. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
  32. <span class="navbar-toggler-icon"></span>
  33. </button>
  34. <div id="main-menu" class="collapse navbar-collapse">
  35. <ul class="navbar-nav flex-fill justify-content-end">
  36. <li class="nav-item">
  37. <a class="nav-link" href="./GraphGenerator.html">Generate graphs</a>
  38. </li>
  39. <li class="nav-item">
  40. <a class="nav-link" href="https://github.com/jrtechs/github-graphs/">View on GitHub</a>
  41. </li>
  42. <li class="nav-item">
  43. <a class="nav-link" href="./about.html">About</a>
  44. </li>
  45. </ul>
  46. </div>
  47. </nav>
  48. <div class="main containerCustom">
  49. <div class="row containerCustom">
  50. <div class="col-md-2 col-12">
  51. <div id="profileGen"></div>
  52. </div>
  53. <div class="col-md-6 col-12">
  54. <div id="graphLoading"></div>
  55. <div id="organizationInfo"></div>
  56. <div id="myGraph" class="w-100"></div>
  57. <pre id="eventSpan"></pre>
  58. </div>
  59. <div class="col-md-4 col-12 bg-light">
  60. <div class="w-100"></div>
  61. <center><h1>Repositories</h1></center>
  62. <table class="table table-striped" id="dataTable">
  63. <thead class="thead-dark">
  64. <tr>
  65. <td>Name</td>
  66. <td>Forks</td>
  67. <td>Language</td>
  68. </tr>
  69. </thead>
  70. <tbody id="repositoryTable">
  71. </tbody>
  72. </table>
  73. </div>
  74. </div>
  75. <script>
  76. function createGraphs(orgname) {
  77. options.width = $("#myGraph").width() + "px";
  78. options.height = "700px";
  79. createOrgRepoGraph(orgname, "myGraph", "graphLoading");
  80. createOrgTable(orgname, 'repositoryTable');
  81. createOrgInfo(orgname, 'organizationInfo')
  82. }
  83. if(findGetParameter("name") !== null)
  84. {
  85. createGraphs(findGetParameter("name"))
  86. }
  87. </script>
  88. </div>
  89. </body>
  90. </html>