Browse Source

minor fixes

pull/11/head
Bryce Murphy 5 years ago
parent
commit
bd8342b1a0
3 changed files with 5 additions and 23 deletions
  1. +2
    -17
      public/FriendsGraph.html
  2. +1
    -4
      public/GraphGenerator.html
  3. +2
    -2
      public/style.css

+ 2
- 17
public/FriendsGraph.html View File

@ -64,30 +64,15 @@
</div>
<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.height = "700px";
createFriendsGraph(username, "myGraph", "graphLabel");
profileGen(username, "profileGen");
$("#searchBarTop").html("");
}
if(findGetParameter("name") !== null)
{
if(findGetParameter("name") !== null) {
createGraphs(findGetParameter("name"))
}

+ 1
- 4
public/GraphGenerator.html View File

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

+ 2
- 2
public/style.css View File

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

Loading…
Cancel
Save