Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from mmikulicic/master
Browse files Browse the repository at this point in the history
form to directly jump to a personal page
  • Loading branch information
chadwhitacre committed Jun 5, 2012
2 parents 62adddc + 7674a34 commit 1428e2a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions www/assets/%version/gittip.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,7 @@ BUTTON:active {
1px 1px 0 rgba(255,255,255,.25) inset,
-1px -1px 0 rgba(255,255,255,.25) inset;
}

#jumpToPersonBox {
display: none;
}
14 changes: 14 additions & 0 deletions www/assets/%version/gittip.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,17 @@ Gittip.initTipButtons = function()
);
});
};

Gittip.initJumpToPerson = function()
{
$('#jumpToPersonButton').click(function()
{
$('#jumpToPersonBox').show();
$('#jumpToPersonButton').hide();
});

$('#jumpToPersonBox').change(function()
{
window.location = '/github/' + $('#jumpToPersonBox').value;
});
}
9 changes: 9 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ <h2><b>Gittip</b> is a gift economy.</h2>
<p>Set up recurring tips to people who do great work. <a
href="/about/">Learn more ...</a></p>

<script>
$(document).ready(Gittip.initJumpToPerson);
</script>

{% end %}
{% block body %}
{% if user.ANON %}
Expand Down Expand Up @@ -52,4 +56,9 @@ <h2>Tip someone!</h2>

</ul>

<p>Or perhaps somebody
<a id="jumpToPersonButton" href="#">else ...</a>
<input id="jumpToPersonBox"/>
</p>

{% end %}

0 comments on commit 1428e2a

Please sign in to comment.