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.

73 lines
2.9 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. <nav class="navbar navbar-dark bg-dark navbar-expand-md">
  25. <a class="navbar-brand" href="/"><img src="img/githubgraph-logo.svg" alt=""></a>
  26. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
  27. <span class="navbar-toggler-icon"></span>
  28. </button>
  29. <div id="main-menu" class="collapse navbar-collapse">
  30. <ul class="navbar-nav flex-fill justify-content-end">
  31. <li class="nav-item">
  32. <a class="nav-link" href="./GraphGenerator.html">Generate graphs</a>
  33. </li>
  34. <li class="nav-item">
  35. <a class="nav-link" href="https://github.com/jrtechs/github-graphs/">View on GitHub</a>
  36. </li>
  37. <li class="nav-item">
  38. <a class="nav-link" href="./about.html">About</a>
  39. </li>
  40. </ul>
  41. </div>
  42. </nav>
  43. <div class="main container">
  44. <div class="row">
  45. <div class="col-md-8 col-12">
  46. <h2 id="graphLoading"></h2>
  47. <div id="myGraph" class="w-100"></div>
  48. <pre id="eventSpan"></pre>
  49. </div>
  50. <div class="col-md-4 col-12 w-100">
  51. <div id="profileGen"></div>
  52. </div>
  53. </div>
  54. <script>
  55. function createGraphs(username)
  56. {
  57. options.width = $("#myGraph").width() + "px";
  58. options.height = "700px";
  59. createFriendsGraph(username, "myGraph", "graphLoading");
  60. profileGen(username, "profileGen");
  61. }
  62. if(findGetParameter("name") !== null)
  63. {
  64. createGraphs(findGetParameter("name"))
  65. }
  66. </script>
  67. </html>