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.

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