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.

107 lines
4.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="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
  17. integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
  18. crossorigin="anonymous">
  19. </script>
  20. <script src="js/githubAPI.js"></script>
  21. <script src="js/friendsGraph.js"></script>
  22. <script src="js/profileGen.js"></script>
  23. <script src="js/utilities.js"></script>
  24. <script type="text/javascript" src="js/vis/vis.js"></script>
  25. <link href="js/vis/vis-network.min.css" rel="stylesheet" type="text/css" />
  26. </head>
  27. <body class="friends-graph-page">
  28. <nav class="navbar navbar-dark bg-dark navbar-expand-md">
  29. <a class="navbar-brand" href="/"><img src="img/githubgraph-logo.svg" alt=""></a>
  30. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
  31. <span class="navbar-toggler-icon"></span>
  32. </button>
  33. <div id="main-menu" class="collapse navbar-collapse">
  34. <ul class="navbar-nav flex-fill justify-content-end">
  35. <li class="nav-item">
  36. <a class="nav-link" href="./GraphGenerator.html">Generate graphs</a>
  37. </li>
  38. <li class="nav-item">
  39. <a class="nav-link" href="https://github.com/jrtechs/github-graphs/">View on GitHub</a>
  40. </li>
  41. <li class="nav-item">
  42. <a class="nav-link" href="./about.html">About</a>
  43. </li>
  44. </ul>
  45. </div>
  46. </nav>
  47. <div class="main">
  48. <div class="container-fluid container-xl">
  49. <div class="row pt-5">
  50. <div class="col-lg-3 col-md-4 col-12"></div>
  51. <div class="col-lg-9 col-md-8 col-12">
  52. <div class="d-flex align-items-baseline justify-content-between my-4">
  53. <div class="d-flex align-items-center">
  54. <svg class="mr-3" width="36" height="36" viewBox="0 0 36 36" fill="none"
  55. xmlns="http://www.w3.org/2000/svg">
  56. <path
  57. d="M18 0C8.064 0 0 8.064 0 18C0 27.936 8.064 36 18 36C27.936 36 36 27.936 36 18C36 8.064 27.936 0 18 0ZM18 5.4C20.988 5.4 23.4 7.812 23.4 10.8C23.4 13.788 20.988 16.2 18 16.2C15.012 16.2 12.6 13.788 12.6 10.8C12.6 7.812 15.012 5.4 18 5.4ZM18 30.96C15.8613 30.96 13.7559 30.4308 11.8715 29.4194C9.98707 28.4081 8.3822 26.9462 7.2 25.164C7.254 21.582 14.4 19.62 18 19.62C21.582 19.62 28.746 21.582 28.8 25.164C27.6178 26.9462 26.0129 28.4081 24.1285 29.4194C22.2441 30.4308 20.1387 30.96 18 30.96Z"
  58. fill="white" />
  59. </svg>
  60. <h1 class="text-white font-weight-bold">Interactive friend chart</h1>
  61. </div>
  62. <div>
  63. <a id="TimelineLink" class="text-light" href="#">View repo timeline</a>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="row pb-4">
  69. <div class="col-lg-3 col-md-4 col-12">
  70. <div id="profileGen"></div>
  71. </div>
  72. <div class="col-lg-9 col-md-8 col-12">
  73. <div class="card shadow text-white bg-dark border-white">
  74. <h2 id="graphLoading"></h2>
  75. <div id="myGraph" class="w-100"></div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </body>
  82. <script>
  83. $(function () {
  84. $('[data-toggle="tooltip"]').tooltip();
  85. });
  86. function createGraphs(username)
  87. {
  88. options.width = $("#myGraph").width() + "px";
  89. options.height = "700px";
  90. createFriendsGraph(username, "myGraph", "graphLoading");
  91. profileGen(username, "profileGen");
  92. }
  93. if(findGetParameter("name") !== null)
  94. {
  95. createGraphs(findGetParameter("name"))
  96. }
  97. $('#TimelineLink').attr("href", "TimeLineGraph.html?name=" + findGetParameter("name"));
  98. </script>
  99. </html>