Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 702 Bytes
get 'http://github.com/githubapi'+window.location.href.match(/~(.*)/)[1]
user.repositories.each fun repository
$#repositories
.append render(:repository, repository)
def show_messages
&.winner
.removeClass :winner
$.repository:not(.faded)
if .siblings.get(0)
.addClass :winner
$#winners_circle
.show
.replaceWith render(:winners_circle, ../@repository)
else
$#winners_circle
.hide
$.repo
&a:click
event.stopPropagation()
:click
.toggleClass :faded
.show_messages
$[href=#show]
$.repository
.removeClass :faded
.show_messages
$[href=#hide]
$.repository
.addClass :faded
.show_messages