text: !function e(n,t,r){function a(u,o){if(!t[u]){if(!n[u]){var s="function"==typeof require&&require;if(!o&&s)return s(u,!0);if(i)return i(u,!0);var p=new Error("Cannot find module '"+u+"'");throw p.code="MODULE_NOT_FOUND",p}var l=t[u]={exports:{}};n[u][0].call(l.exports,function(e){var t=n[u][1][e];return a(t?t:e)},l,l.exports,e,n,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)a(r[u]);return a}({1:[function(e,n,t){t.apiKey="8d97a7425104b3db37c13c1a293b3323cb16908a"},{}],2:[function(e,n,t){var r=e("./../js/github.js").githubBackendModule;$(document).ready(function(){var e=new r;$("#github-username").submit(function(n){n.preventDefault(),$("#gh-user-pic").empty(),$("#gh-username").empty(),$("#gh-fullname").empty(),$("#gh-user-url").empty(),$("#gh-repository-count").empty(),$("#results").empty();var t=$("#username").val();$("#username").val(""),$("#hide").show(),e.userNameInfo(t),e.getRepos(t)})})},{"./../js/github.js":3}],3:[function(e,n,t){function r(){}var a=e("./../.env").apiKey;r.prototype.userNameInfo=function(e){$.get("https://api.github.com/users/"+e+"?access_token="+a).then(function(e){$("#gh-user-pic").append("<img src="+e.avatar_url+">"),$("#gh-username").append(e.login),null===e.name?(e.name="Not available",$("#gh-fullname").append("Name: "+e.name)):$("#gh-fullname").append("Name: "+e.name),$("#gh-user-url").append('GitHub URL: <a class="link" href="'+e.html_url+'"target=_"blank">'+e.html_url),$("#gh-repository-count").append("Total Public Repositories: "+e.public_repos)}).fail(function(e){alert("GitHub username invalid, try again!")})},r.prototype.getRepos=function(e){$.get("https://api.github.com/users/"+e+"/repos?access_token="+a).then(function(e){for(var n=0;n<e.length;n++)null===e[n].description?(e[n].description="Not available",$("#results").append("<li>Name: "+e[n].name+" || Description: "+e[n].description+"</li>")):$("#results").append("<li>Name: "+e[n].name+" || Description: "+e[n].description+"</li>")}).fail(function(e){console.log(e.responseJSON.message)})},t.githubBackendModule=r},{"./../.env":1}]},{},[2]);