Skip to content

Commit

Permalink
Added Gittip button to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Apr 23, 2013
1 parent 0578cc1 commit 84b8b6d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<nav>
<a href="https://github.com/addyosmani/todomvc/zipball/1.1.0" class="zocial red">Download (1.1)</a>
<a href="https://github.com/addyosmani/todomvc" class="zocial red">View project on GitHub</a>
<a href="https://www.gittip.com/tastejs/" class="zocial ltgray">
We receive <strong>$<var class="gittip-amount">0.00</var> / wk</strong>
on <strong>Gittip</strong>
</a>
</nav>
</div>
<div class="span4">
Expand Down
17 changes: 15 additions & 2 deletions site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ h2 {

a {
color: #B83F45;
font-weight:bold;
font-weight: bold;
}

a:hover {
Expand All @@ -54,6 +54,10 @@ hr {
border-bottom: 1px dashed #F7F7F7;
}

var {
font-style: normal;
}

header p {
font-size: 30px;
line-height: 1.2;
Expand All @@ -64,7 +68,7 @@ header nav {
margin-top: 20px;
}

header nav a:first-child {
header nav a:not(:last-child) {
margin-right: 5px;
margin-bottom: 5px;
}
Expand Down Expand Up @@ -306,6 +310,15 @@ p .label {
background-color: rgba(0, 0, 0, .5);
}

.zocial.ltgray {
color: inherit;
text-shadow: none;
}

.zocial.ltgray strong {
color: #B83F45;
}

.zocial.small {
font-size: 12px;
padding: 2px 10px;
Expand Down
9 changes: 9 additions & 0 deletions site/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
(function () {
'use strict';

$.fn.gittip = function (username) {
var $this = $(this);
$.getJSON('https://www.gittip.com/' + username + '/public.json', function (response) {
$this.text(response.receiving);
});
};

$.fn.persistantPopover = function () {
var popoverTimeout;

Expand Down Expand Up @@ -144,6 +151,8 @@
// Apps popover
$('.applist a').persistantPopover();

$('.gittip-amount').gittip('tastejs');

// Quotes
$('.quotes').quote([{
quote: 'TodoMVC is a godsend for helping developers find what well-developed frameworks match their mental model of application architecture.',
Expand Down

0 comments on commit 84b8b6d

Please sign in to comment.