blob: 269f70fbb3bd0312fdef42f0dc43e10bbf85956b (
plain) (
tree)
|
|
$(document).ready(function(){
$('#show_blog_post').height($('#show_blog_post').height());
$('#next_prev_article a:not(".home")').live('click', function(){
url = this.href + ".js";
$('#show_blog_post > *').fadeOut();
$.ajax({
url: url,
success: function(data) {
$('#show_blog_post').html(data);
new_height = 0;
$('#show_blog_post > *').each(function(){
new_height += $(this).height()
});
$('#show_blog_post').animate({
height: new_height
});
}
});
$('html, body').animate({
scrollTop: $('body').offset().top
}, 2000);
return false;
})
})
|