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.

149 lines
5.0 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="js/githubAPI.js"></script>
  17. <script src="js/profileTimeLine.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-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
  22. <style type="text/css">
  23. .vis-timeline {
  24. border: 2px solid blue;
  25. /*font-family: purisa, 'comic sans', cursive;*/
  26. font-size: 12pt;
  27. background: #E8E8E8;
  28. }
  29. .vis-item {
  30. border-color: #0B002B;
  31. background-color: #88BAFF;
  32. font-size: 15pt;
  33. color: black;
  34. box-shadow: 5px 5px 20px rgba(47,27,0, 0.5);
  35. }
  36. .vis-item,
  37. .vis-item.vis-line {
  38. border-width: 3px;
  39. }
  40. .vis-item.vis-dot {
  41. border-width: 10px;
  42. border-radius: 10px;
  43. }
  44. .vis-item.vis-selected {
  45. border-color: #2C3E50;
  46. background-color: #498FBE;
  47. }
  48. .vis-time-axis .vis-text {
  49. color: #0B002B;
  50. padding-top: 10px;
  51. padding-left: 10px;
  52. }
  53. .vis-time-axis .vis-text.vis-major {
  54. font-weight: bold;
  55. }
  56. .vis-time-axis .vis-grid.vis-minor {
  57. border-width: 2px;
  58. border-color: #88BAFF;
  59. }
  60. .vis-labelset .vis-label
  61. {
  62. color: black;
  63. }
  64. .vis-time-axis .vis-grid.vis-major {
  65. border-width: 2px;
  66. border-color: #0B002B;
  67. }
  68. .containerCustom {
  69. width: 100%;
  70. padding-right: 0px;
  71. padding-left: 0px;
  72. margin-right: 0px;
  73. margin-left: 0px;
  74. }
  75. </style>
  76. </head>
  77. <body>
  78. <nav class="navbar navbar-dark bg-dark navbar-expand-md">
  79. <a class="navbar-brand" href="/"><img src="img/githubgraph-logo.svg" alt=""></a>
  80. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
  81. <span class="navbar-toggler-icon"></span>
  82. </button>
  83. <div id="main-menu" class="collapse navbar-collapse">
  84. <ul class="navbar-nav flex-fill justify-content-end">
  85. <li class="nav-item">
  86. <a class="nav-link" href="./GraphGenerator.html">Generate graphs</a>
  87. </li>
  88. <li class="nav-item">
  89. <a class="nav-link" href="https://github.com/jrtechs/github-graphs/">View on GitHub</a>
  90. </li>
  91. <li class="nav-item">
  92. <a class="nav-link" href="./about.html">About</a>
  93. </li>
  94. </ul>
  95. </div>
  96. </nav>
  97. <div class="containerCustom">
  98. <div class="row align-center" id="searchBarTop">
  99. <nav class="navbar navbar-light bg-light justify-content-between">
  100. <a class="navbar-brand">Create Graph</a>
  101. <form class="form-inline">
  102. <input class="form-control mr-sm-2" id='txtUsername' type="search" placeholder="GitHub Username" aria-label="Search">
  103. <button class="btn btn-outline-success my-2 my-sm-0" onclick='fetchUserInput()' type='button'>Look Up</button>
  104. </form>
  105. </nav>
  106. </div>
  107. <div class="row containerCustom">
  108. <div class="col-md-10 col-12">
  109. <h2 id="graphLabel"></h2>
  110. <div id="myGraph" class="w-100"></div>
  111. <pre id="eventSpan"></pre>
  112. <div id="repositoryInformation" class="w-100"></div>
  113. </div>
  114. <div class="col-md-2 col-12 w-100">
  115. <div id="profileGen"></div>
  116. </div>
  117. </div>
  118. </body>
  119. <script>
  120. function fetchUserInput()
  121. {
  122. const inputedName = $("#txtUsername").val();
  123. createGraphs(inputedName);
  124. }
  125. function createGraphs(username)
  126. {
  127. createProfileTimeLine(username, "myGraph");
  128. profileGen(username, "profileGen");
  129. $("#searchBarTop").html("");
  130. }
  131. if(findGetParameter("name") !== null)
  132. {
  133. createGraphs(findGetParameter("name"))
  134. }
  135. </script>
  136. </html>