Browse Source

Merge branch 'master' of https://github.com/jrtechs/github-graphs

# Conflicts:
#	public/FriendsGraph.html
pull/11/head
Jeffery Russell 5 years ago
parent
commit
1037596367
3 changed files with 13 additions and 39 deletions
  1. +10
    -33
      public/FriendsGraph.html
  2. +1
    -4
      public/GraphGenerator.html
  3. +2
    -2
      public/style.css

+ 10
- 33
public/FriendsGraph.html View File

@ -50,44 +50,21 @@
</ul> </ul>
</div> </div>
</div> </div>
<div class="main container">
<div class="main container">
<div class="row align-center" id="searchBarTop">
<nav class="navbar navbar-light bg-light justify-content-between">
<a class="navbar-brand">Create Graph</a>
<form class="form-inline">
<input class="form-control mr-sm-2" id='txtUsername' type="search" placeholder="GitHub Username" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" onclick='fetchUserInput()' type='button'>Look Up</button>
</form>
</nav>
</div>
<div class="row">
<div class="col-md-8 col-12">
<div id="graphLoading"></div>
<div id="myGraph" class="w-100"></div>
<pre id="eventSpan"></pre>
<div class="row">
<div class="col-md-8 col-12">
<h2 id="graphLabel"></h2>
<div id="myGraph" class="w-100"></div>
<pre id="eventSpan"></pre>
</div>
<div class="col-md-4 col-12 w-100">
<div id="profileGen"></div>
</div>
</div> </div>
<div class="col-md-4 col-12 w-100">
<div id="profileGen"></div>
</div>
</div>
</body>
<script> <script>
document.addEventListener("keydown", event => {
if (event.key === "Enter") {
fetchUserInput();
}
})
function fetchUserInput()
{
const inputedName = $("#txtUsername").val();
createGraphs(inputedName);
}
function createGraphs(username) function createGraphs(username)
{ {
options.width = $("#myGraph").width() + "px"; options.width = $("#myGraph").width() + "px";

+ 1
- 4
public/GraphGenerator.html View File

@ -145,8 +145,5 @@
var oname = fetchOrgInput(); var oname = fetchOrgInput();
window.location.href = "./OrgRepoGraph.html?name=" + oname; window.location.href = "./OrgRepoGraph.html?name=" + oname;
} }
if (findGetParameter("name") !== null) {
createGraphs(findGetParameter("name"))
}
</script> </script>

+ 2
- 2
public/style.css View File

@ -137,11 +137,11 @@
} }
.card { .card {
background-color: rgb(255, 255, 255);
background-color: rgb(208, 208, 208);
} }
.card-body { .card-body {
background-color: rgb(255, 255, 255);
background-color: rgb(242, 242, 242);
} }
.rounder { .rounder {

Loading…
Cancel
Save