|
|
@ -123,27 +123,43 @@ |
|
|
|
<script> |
|
|
|
function fetchUserInput() { |
|
|
|
const inputedName = $("#txtUsername").val(); |
|
|
|
|
|
|
|
if(inputedName === "") |
|
|
|
{ |
|
|
|
alert("Please enter a Github name in the text field.") |
|
|
|
} |
|
|
|
|
|
|
|
return inputedName; |
|
|
|
} |
|
|
|
|
|
|
|
function fetchOrgInput() { |
|
|
|
function fetchOrgInput() |
|
|
|
{ |
|
|
|
const inputedOrg = $("#txtOrgname").val(); |
|
|
|
if(inputedOrg === "") |
|
|
|
{ |
|
|
|
alert("Please enter a Github organization name in the text field.") |
|
|
|
} |
|
|
|
return inputedOrg; |
|
|
|
} |
|
|
|
|
|
|
|
function toFriends() { |
|
|
|
function toFriends() |
|
|
|
{ |
|
|
|
var uname = fetchUserInput(); |
|
|
|
window.location.href = "./FriendsGraph.html?name=" + uname; |
|
|
|
if(uname !== "") |
|
|
|
window.location.href = "./FriendsGraph.html?name=" + uname; |
|
|
|
} |
|
|
|
|
|
|
|
function toTimeline() { |
|
|
|
function toTimeline() |
|
|
|
{ |
|
|
|
var uname = fetchUserInput(); |
|
|
|
window.location.href = "./TimeLineGraph.html?name=" + uname; |
|
|
|
if(uname !== "") |
|
|
|
window.location.href = "./TimeLineGraph.html?name=" + uname; |
|
|
|
} |
|
|
|
|
|
|
|
function toOrgRepos() { |
|
|
|
var oname = fetchOrgInput(); |
|
|
|
window.location.href = "./OrgRepoGraph.html?name=" + oname; |
|
|
|
var uname = fetchOrgInput(); |
|
|
|
if(uname !== "") |
|
|
|
window.location.href = "./OrgRepoGraph.html?name=" + uname; |
|
|
|
} |
|
|
|
|
|
|
|
</script> |