diff --git a/public/ico/baseline-bar_chart-24px.svg b/public/ico/baseline-bar_chart-24px.svg new file mode 100644 index 0000000..6bf3a5c --- /dev/null +++ b/public/ico/baseline-bar_chart-24px.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/ico/graph.png b/public/ico/graph.png new file mode 100644 index 0000000..dfc2085 Binary files /dev/null and b/public/ico/graph.png differ diff --git a/public/js/profileGen.js b/public/js/profileGen.js index 1ca15d3..8d9dba1 100644 --- a/public/js/profileGen.js +++ b/public/js/profileGen.js @@ -2,28 +2,42 @@ function profileGen(username, container) { queryAPIByUser("", username, (user) => { parseOrgs(user.login).then( (orgsReturn) => { let html = - "
\ + "
\ \ -
\ -
"+user.name+"
\ -
"+user.login+"
\ +
\ +
\ +
\ +
"+user.name+"
\ +
"+user.login+"
\ +
\ +
\ +
\ + \ +
\
\ -
\ -
  • \ -

    "+user.html_url+"

    "+ - (user.blog != null ? "

    "+user.blog+"

    " : "")+" \ -
  • \ +
    \ +
    \ +

    "+user.html_url+"

    \ " + + (user.blog != null ? "

    "+user.blog+"

    " : "")+" \ +
    \
    \ -
      \ -
    • Followers: "+user.followers+"
    • \ -
    • Following: "+user.following+"
    • \ -
    • Repositories: "+user.public_repos+"
    • " + - (user.bio != null ? "
    • Bio: "+user.bio+"
    • " : "")+ - (user.location != null ? "
    • Location: "+user.location+"
    • " : "")+ - (user.email != null ? "
    • Email: "+user.email+"
    • " : "")+ - (user.company != null ? "
    • Company: "+user.company+"
    • " : "")+ - (orgsReturn != [] ? "
    • "+orgsReturn+"
    • " : "")+ " \ -
    \ +
      \ +
    • Followers: "+user.followers+"
    • \ +
    • Following: "+user.following+"
    • \ +
    • Repositories: "+user.public_repos+"
    • " + + (user.bio != null ? "
    • Bio: "+user.bio+"
    • " : "")+ + (user.location != null ? "
    • Location: "+user.location+"
    • " : "")+ + (user.email != null ? "
    • Email: "+user.email+"
    • " : "")+ + (user.company != null ? "
    • Company: "+user.company+"
    • " : "")+ + (orgsReturn != [] ? "
    • "+orgsReturn+"
    • " : "")+ " \ +
    \
    " $("#"+container).html(html); }) @@ -64,8 +78,6 @@ function parseOrgs(name) { }) } - - function queryUrl(url, successCallBack, errorCallBack) { url = url.split("https://api.github.com/").join("api/"); $.ajax({ @@ -77,4 +89,8 @@ function queryUrl(url, successCallBack, errorCallBack) { error:errorCallBack, timeout: 3000 }); +} + +function makeUrl(user) { + return "/FriendsGraph.html?name="+user; } \ No newline at end of file