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.

154 lines
4.7 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. <div id="header-bar" class="d-flex flex-column flex-md-row shadow-sm align-items-center">
  79. <div id="header-title">
  80. <a href="./index.html">
  81. <img id="logo" class="text-center" src="./logo.svg" />
  82. </a>
  83. </div>
  84. <ul id="navigation" class="nav justify-content-end">
  85. <li class="nav-item">
  86. <a href="./GraphGenerator.html">
  87. Generate graphs
  88. </a>
  89. </li>
  90. <div class="nav-sep"></div>
  91. <li class="nav-item">
  92. <a href="https://github.com/jrtechs/github-graphs">
  93. View on GitHub
  94. </a>
  95. </li>
  96. <div class="nav-sep"></div>
  97. <li class="nav-item">
  98. <a href="./about.html">
  99. About
  100. </a>
  101. </li>
  102. </ul>
  103. </div>
  104. <div class="containerCustom">
  105. <div class="row align-center" id="searchBarTop">
  106. <nav class="navbar navbar-light bg-light justify-content-between">
  107. <a class="navbar-brand">Create Graph</a>
  108. <form class="form-inline">
  109. <input class="form-control mr-sm-2" id='txtUsername' type="search" placeholder="GitHub Username" aria-label="Search">
  110. <button class="btn btn-outline-success my-2 my-sm-0" onclick='fetchUserInput()' type='button'>Look Up</button>
  111. </form>
  112. </nav>
  113. </div>
  114. <div class="row containerCustom">
  115. <div class="col-md-10 col-12">
  116. <h2 id="graphLabel"></h2>
  117. <div id="myGraph" class="w-100"></div>
  118. <pre id="eventSpan"></pre>
  119. <div id="repositoryInformation" class="w-100"></div>
  120. </div>
  121. <div class="col-md-2 col-12 w-100">
  122. <div id="profileGen"></div>
  123. </div>
  124. </div>
  125. </body>
  126. <script>
  127. function fetchUserInput()
  128. {
  129. const inputedName = $("#txtUsername").val();
  130. createGraphs(inputedName);
  131. }
  132. function createGraphs(username)
  133. {
  134. createProfileTimeLine(username, "myGraph");
  135. profileGen(username, "profileGen");
  136. $("#searchBarTop").html("");
  137. }
  138. if(findGetParameter("name") !== null)
  139. {
  140. createGraphs(findGetParameter("name"))
  141. }
  142. </script>
  143. </html>