20 deep holes to bury them in
    1. 286,436 notesVia: lotusxo
    1. acryzzzz reblogged this from isolationisbest-blog
    2. unknown-password reblogged this from kissingtheking
    3. chic-peach reblogged this from stahrz
    4. manyarchives reblogged this from manytongues
    5. semivivus posted this
    1. Timestamp: Monday 2013/09/23 13:33:12
    0); } else if (_posts_loaded >= 3) { _trigger_post = _$posts.find('li.post:eq(' + ($all_posts.length - 3) + ')').get(0); } else { _trigger_post = _$posts.find('li.post:last').get(0); } }; function in_viewport (el) { if (el == null) return; var top = el.offsetTop; var height = el.offsetHeight; while (el.offsetParent) { el = el.offsetParent; top += el.offsetTop; } return (top < (window.pageYOffset + window.innerHeight)); }; function enable_scroll() { $('#footer .pagination').hide(); _$window.scroll(function(){ clearTimeout(_infinite_timeout); infinite_timeout = setTimeout(infinite_scroll, 100); }); } function disable_scroll() { clearTimeout(_infinite_timeout); $(window).unbind('scroll'); } function infinite_scroll() { if (_is_loading) return; if (in_viewport(_trigger_post)) { load_more_posts(); // w00t } }; function load_more_posts() { if (_is_loading) return; _is_loading = true; // Build URL if (_url.charAt(_url.length - 1) != '/') _url += '/'; if (_current_page === 1) _url += 'page/1'; _current_page++; _url = _url.replace('page/' + (_current_page - 1), 'page/' + _current_page); // Fetch _Ajax(_url, function(data) { var new_posts_html = data.split('')[1].split('')[0]; var $new_posts = $('#posts', data); // Insert posts and update counters $('#posts').append(new_posts_html); _posts_loaded = $new_posts.find('li.post').length; if ((_posts_loaded > 0) && (_current_page < _total_pages)) { set_trigger(); _is_loading = false; } else { disable_scroll(); } }); // Stats } return { init: init }; }); $(function() { });