Here's what I've found from her source.
CODE
$(document).ready(function(){
$('a.like_link').click(function() {
var post = $(this).closest('.post');
var id = post.attr('id');
var oath = post.attr('rel').slice(-8);
var like = 'http://www.tumblr.com/like/'+oath+'?id='+id;
$('#likeit').attr('src', like);
$(this).addClass('liked');
return false;
})
});
$('a.like_link').click(function() {
var post = $(this).closest('.post');
var id = post.attr('id');
var oath = post.attr('rel').slice(-8);
var like = 'http://www.tumblr.com/like/'+oath+'?id='+id;
$('#likeit').attr('src', like);
$(this).addClass('liked');
return false;
})
});
CODE
<a href="{Permalink}" class="like-link">Like</a>
I tried to recreate this button here: http://mockuptheme.tumblr.com
I click 'like' but it doesn't show up in my likes page.
What am I doing wrong?