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.

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