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

form to directly jump to a personal page #2

Merged
merged 1 commit into from
Jun 5, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 %}