diff --git a/README.md b/README.md new file mode 100644 index 0000000..aa47880 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# github_id +Find out a github user's id diff --git a/index.html b/index.html index acf351d..2ad9744 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,8 @@ text-align: center; margin: auto 0; margin-top: 5em; + color: white; + background-color: #171A22; font-family: Courier, monospace; } @@ -25,15 +27,25 @@ form p { display: none; } + + .go-back-button { + color: white; + text-decoration: none; + transition: color .5s ease-in-out; + } + + .go-back-button:hover, .go-back-button:focus { + color: #1D9AF1; + } #footer { margin-top: 5em; font-size: 50%; - color: #555; + color: #bfbfbf; } #footer a { - color: #555; + color: #bfbfbf; text-decoration: none; border-bottom: 1px dotted; } @@ -50,19 +62,17 @@ if (id) { callback(username, id) } + $("form p").text(username + " not found.") return false }); } - function add_twitter_link_for (username, id) { - var tweet = $('').text("Tweet this").attr('href', "https://twitter.com?status=" + encodeURIComponent("Found out I'm GitHub user " + id + " by using http://caius.github.com/github_id/#" + username + " #GitHub_id")).insertAfter("#success h1") - } - function show_user (username, id) { $('#username').text(username) $('#id').text(id) $('form').hide() $('#success').show() + $('#goback').show() } $(document).ready(function() { @@ -85,7 +95,6 @@ var name = $("#github_username").val().trim() get_github_id_for(name, function(username, id) { - add_twitter_link_for(username, id) show_user(username, id) document.location.hash = "#" + username }) @@ -112,6 +121,7 @@

is GitHub user #

+
Go back
@@ -126,6 +136,7 @@

Find GitHub User ID