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.

157 lines
6.5 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>Timeline - 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/profileTimeLine.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-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
  26. <style type="text/css">
  27. .vis-timeline {
  28. border: none;
  29. font-size: 16px;
  30. color: var(--white);
  31. background-color: var(--dark);
  32. }
  33. .vis-item {
  34. font-size: 16px;
  35. color: var(--dark);
  36. background-color: var(--white);
  37. box-sizing: border-box;
  38. box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.06), 0px 4px 6px rgba(0, 0, 0, 0.06);
  39. border-color: transparent;
  40. }
  41. .vis-item.vis-box {
  42. border-radius: 2px;
  43. padding: 0;
  44. border: none;
  45. }
  46. .vis-item .vis-item-content {
  47. padding: 8px 10px;
  48. }
  49. .vis-item.vis-box.vis-selected {
  50. border: 2px solid var(--primary);
  51. }
  52. .vis-item.vis-line {
  53. border-width: 2px;
  54. border-color: var(--primary)
  55. }
  56. .vis-item.vis-dot {
  57. border-color: var(--primary);
  58. }
  59. .vis-item.vis-selected {
  60. border-color: var(--primary);
  61. background-color: var(--white);
  62. box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.2), 0px 10px 10px rgba(0, 0, 0, 0.14);
  63. }
  64. .vis-time-axis .vis-text {
  65. color: var(--white);
  66. padding-top: 8px;
  67. padding-left: 16px;
  68. }
  69. .vis-time-axis .vis-grid.vis-minor {
  70. border-width: 2px;
  71. border-color: rgba(255, 255, 255, .29);
  72. }
  73. .vis-labelset .vis-label {
  74. color: var(--white);
  75. }
  76. .vis-time-axis .vis-grid.vis-major {
  77. border-width: 1px;
  78. border-color: rgba(255, 255, 255, .5);
  79. }
  80. </style>
  81. </head>
  82. <body class="timeline-graph-page">
  83. <nav class="navbar navbar-dark bg-dark navbar-expand-md">
  84. <a class="navbar-brand" href="/"><img src="img/githubgraph-logo.svg" alt=""></a>
  85. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
  86. <span class="navbar-toggler-icon"></span>
  87. </button>
  88. <div id="main-menu" class="collapse navbar-collapse">
  89. <ul class="navbar-nav flex-fill justify-content-end">
  90. <li class="nav-item">
  91. <a class="nav-link" href="./GraphGenerator.html">Generate graphs</a>
  92. </li>
  93. <li class="nav-item">
  94. <a class="nav-link" href="https://github.com/jrtechs/github-graphs/">View on GitHub</a>
  95. </li>
  96. <li class="nav-item">
  97. <a class="nav-link" href="./about.html">About</a>
  98. </li>
  99. </ul>
  100. </div>
  101. </nav>
  102. <div class="main">
  103. <div class="container-fluid container-xl">
  104. <div class="row pt-5">
  105. <div class="col-lg-3 col-md-4 col-12"></div>
  106. <div class="col-lg-9 col-md-8 col-12">
  107. <div class="d-flex align-items-baseline justify-content-between my-4">
  108. <div class="d-flex align-items-center">
  109. <svg class="mr-3" width="36" height="36" viewBox="0 0 36 36" fill="none"
  110. xmlns="http://www.w3.org/2000/svg">
  111. <path
  112. 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"
  113. fill="white" />
  114. </svg>
  115. <h1 class="text-white font-weight-bold">Repo timeline</h1>
  116. </div>
  117. <div>
  118. <a id="FriendsGraphLink" class="text-light" href="#">View friends graph</a>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="row pb-4">
  124. <div class="col-lg-3 col-md-4 col-12">
  125. <div id="profileGen"></div>
  126. </div>
  127. <div class="col-lg-9 col-md-8 col-12">
  128. <div class="card shadow mb-5">
  129. <h2 id="graphLoading" class="my-0"></h2>
  130. <div id="myGraph" class="w-100"></div>
  131. </div>
  132. <div id="repositoryInformation" class="w-100"></div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </body>
  138. <script>
  139. function createGraphs(username) {
  140. createProfileTimeLine(username, "myGraph");
  141. profileGen(username, "profileGen");
  142. }
  143. if (findGetParameter("name") !== null) {
  144. createGraphs(findGetParameter("name"))
  145. }
  146. $('#FriendsGraphLink').attr("href", "FriendsGraph.html?name=" + findGetParameter("name"));
  147. </script>
  148. </html>