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.

99 lines
3.3 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. <style type="text/css">
  11. body {
  12. font: 10pt arial;
  13. }
  14. /*#myGraph {*/
  15. /*!*width: 100%;*!*/
  16. /*!*height: 800px;*!*/
  17. /*!*border: 1px solid lightgray;*!*/
  18. /*background-color:#333333;*/
  19. /*}*/
  20. </style>
  21. <script
  22. src="https://code.jquery.com/jquery-3.3.1.min.js"
  23. integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  24. crossorigin="anonymous">
  25. </script>
  26. <script src="js/githubAPI.js"></script>
  27. <script src="js/friendsGraph.js"></script>
  28. <script src="js/profileGen.js"></script>
  29. <script type="text/javascript" src="js/vis/vis.js"></script>
  30. <link href="js/vis/vis-network.min.css" rel="stylesheet" type="text/css" />
  31. </head>
  32. <body>
  33. <div id="header-bar" class="d-flex flex-column flex-md-row shadow-sm align-items-center">
  34. <div id="header-title">
  35. <a href="./index.html">
  36. <img id="logo" class="text-center" src="./logo.svg" />
  37. </a>
  38. </div>
  39. <ul id="navigation" class="nav justify-content-end">
  40. <li class="nav-item">
  41. <a href="./GraphTest.html">
  42. Generate graphs
  43. </a>
  44. </li>
  45. <div class="nav-sep"></div>
  46. <li class="nav-item">
  47. <a href="https://github.com/jrtechs/github-graphs">
  48. View on GitHub
  49. </a>
  50. </li>
  51. <div class="nav-sep"></div>
  52. <li class="nav-item">
  53. <a href="./about.html">
  54. About
  55. </a>
  56. </li>
  57. </ul>
  58. </div>
  59. <div class="main container">
  60. <div class="row" id="searchBarTop">
  61. <nav class="navbar navbar-light bg-light justify-content-between">
  62. <a class="navbar-brand">Create Graph</a>
  63. <form class="form-inline">
  64. <input class="form-control mr-sm-2" id='txtUsername' type="search" placeholder="GitHub Username" aria-label="Search">
  65. <button class="btn btn-outline-success my-2 my-sm-0" onclick='createGraphs()' type='button'>Look Up</button>
  66. </form>
  67. </nav>
  68. </div>
  69. <div class="row">
  70. <div class="col-md-10 col-12">
  71. <h2 id="graphLabel"></h2>
  72. <div id="myGraph" class="w-100"></div>
  73. <pre id="eventSpan"></pre>
  74. </div>
  75. <div class="col-md-2 col-12 w-100">
  76. <div id="profileGen"></div>
  77. </div>
  78. </div>
  79. </body>
  80. <script>
  81. function createGraphs()
  82. {
  83. options.width = $("#myGraph").width() + "px";
  84. options.height = "700px";
  85. const inputedName = $("#txtUsername").val();
  86. createFriendsGraph(inputedName, "myGraph", "graphLabel");
  87. profileGen(inputedName, "profileGen");
  88. $("#searchBarTop").html("");
  89. }
  90. </script>
  91. </html>