annonces sexy


Top
(function($){ //set body width for IE8 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { var ieversion=new Number(RegExp.$1) if (ieversion==8) { $('body').css('max-width', $(window).width()); } } var $masonry = $('#masonry'); $('#navigation').css({'visibility':'hidden', 'height':'1px'}); if ($(document).width() <= 480) { $masonry.imagesLoaded( function(){ $masonry.masonry({ itemSelector : '.thumb', isFitWidth: true }).css('visibility', 'visible'); $('#ajax-loader-masonry').hide(); }); } else { $masonry.masonry({ itemSelector : '.thumb', isFitWidth: true }).css('visibility', 'visible'); $('#ajax-loader-masonry').hide(); } })(jQuery); jQuery(document).ready(function($){ var $masonry = $('#masonry'); $masonry.infinitescroll({ navSelector : '#navigation', nextSelector : '#navigation #navigation-next a', itemSelector : '.thumb', loading: { msgText: '', finishedMsg: 'All items loaded', img: 'http://www.planculhard.eu/wp-content/themes/ipin/img/ajax-loader.gif', finished: function() {}, }, }, function(newElements) { var $newElems = $(newElements).css({opacity: 0}); if ($(document).width() <= 480) { $newElems.imagesLoaded(function(){ $('#infscr-loading').fadeOut('normal'); $newElems.animate({opacity: 1}); $masonry.masonry('appended', $newElems, true); }); } else { $('#infscr-loading').fadeOut('normal'); $newElems.animate({opacity: 1}); $masonry.masonry('appended', $newElems, true); } }); $masonry.on('mouseenter', '.thumb-holder', function() { $(this).children('.masonry-actionbar').show(); }); $masonry.on('mouseleave', '.thumb-holder', function() { $(this).children('.masonry-actionbar').hide(); }); });