Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var setBlogPageHeight = function() {
- if ($('#wpadminbar').length) {
- var content_height = $(window).height() - $('#header').outerHeight() - $('#footer').outerHeight() - $('#wpadminbar').outerHeight() - $('#blog-page-container .intro-container').outerHeight();
- $('#posts-container').css({'minHeight':content_height});
- } else {
- var content_height = $(window).height() - $('#header').outerHeight() - $('#footer').outerHeight() - $('#blog-page-container .intro-container').outerHeight();
- $('#posts-container').css({'minHeight':content_height});
- }
- };
- var checkBlogPosition = function() {
- if ($(document).height() - $(this).height() === $(this).scrollTop() && $(window).width() > 1024) {
- getBlogPosts();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment