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.

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