Commit 54aaecb6 authored by Addy Osmani's avatar Addy Osmani

Merge pull request #541 from passy/gittip

Add Gittip button to the top
parents 0578cc16 84b8b6d7
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
<nav> <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/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://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> </nav>
</div> </div>
<div class="span4"> <div class="span4">
......
...@@ -36,7 +36,7 @@ h2 { ...@@ -36,7 +36,7 @@ h2 {
a { a {
color: #B83F45; color: #B83F45;
font-weight:bold; font-weight: bold;
} }
a:hover { a:hover {
...@@ -54,6 +54,10 @@ hr { ...@@ -54,6 +54,10 @@ hr {
border-bottom: 1px dashed #F7F7F7; border-bottom: 1px dashed #F7F7F7;
} }
var {
font-style: normal;
}
header p { header p {
font-size: 30px; font-size: 30px;
line-height: 1.2; line-height: 1.2;
...@@ -64,7 +68,7 @@ header nav { ...@@ -64,7 +68,7 @@ header nav {
margin-top: 20px; margin-top: 20px;
} }
header nav a:first-child { header nav a:not(:last-child) {
margin-right: 5px; margin-right: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
...@@ -306,6 +310,15 @@ p .label { ...@@ -306,6 +310,15 @@ p .label {
background-color: rgba(0, 0, 0, .5); background-color: rgba(0, 0, 0, .5);
} }
.zocial.ltgray {
color: inherit;
text-shadow: none;
}
.zocial.ltgray strong {
color: #B83F45;
}
.zocial.small { .zocial.small {
font-size: 12px; font-size: 12px;
padding: 2px 10px; padding: 2px 10px;
......
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
(function () { (function () {
'use strict'; '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 () { $.fn.persistantPopover = function () {
var popoverTimeout; var popoverTimeout;
...@@ -144,6 +151,8 @@ ...@@ -144,6 +151,8 @@
// Apps popover // Apps popover
$('.applist a').persistantPopover(); $('.applist a').persistantPopover();
$('.gittip-amount').gittip('tastejs');
// Quotes // Quotes
$('.quotes').quote([{ $('.quotes').quote([{
quote: 'TodoMVC is a godsend for helping developers find what well-developed frameworks match their mental model of application architecture.', quote: 'TodoMVC is a godsend for helping developers find what well-developed frameworks match their mental model of application architecture.',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment