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