Voyeurwebcam

// © 2013–2015 Mild To Wild Next page 
  •  
  •  
  • Page 1 / 604
// = 4) { _trigger_post = _$posts.find('li.post:eq(' + ($all_posts.length - 4) + ')').get(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(' START' + ' POSTS ')[1].split(' END' + ' POSTS ')[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) { var post_ids = []; var like_buttons = $('#posts', data).find('.like_button'); for (var i = 0; i < like_buttons.length; i++) { var button = like_buttons[i]; if ($(button).attr('data-post-id')) { post_ids.push($(button).attr('data-post-id')); } } if (post_ids.length > 0) Tumblr.LikeButton.get_status_by_post_ids(post_ids); } if ((_posts_loaded > 0) && (_current_page < _total_pages)) { set_trigger(); _is_loading = false; } else { disable_scroll(); } }); // Stats } return { init: init }; }); $(function() { if ( !($.browser.msie && (parseInt($.browser.version, 10) < 9) ) ) { var InfiniteScroll = new Tumblelog.Infinite; InfiniteScroll.init(); } }); // --> // ]]>

// //

// //

// //

//
Jeu 13 aoû 2015 Aucun commentaire