IDM Auftakt Lausitzring 2019 von Markus Schlosser · Veröffentlicht 20. Mai 2019 · Aktualisiert 20. Mai 2019 Share
1 Antwort
[…] Bilder vom Rennwochenende jQuery( function($) { czrapp.proRelPostsRendered = $.Deferred(); var waypoint = new Waypoint({ element: document.getElementById('pro-related-posts-wrapper'), handler: function(direction) { if ( 'pending' == czrapp.proRelPostsRendered.state() ) { var $wrap = $('#pro-related-posts-wrapper'); $wrap.addClass('loading'); czrapp.doAjax( { action: "ha_inject_pro_related", // => Always get the option from the $_POSTED data in ajax related_post_id : 458, pro_related_posts_opt : [], free_related_posts_opt : "categories", layout_class : "col-3cm" } ).done( function( r ) { if ( r && r.data && r.data.html ) { if ( 'pending' == czrapp.proRelPostsRendered.state() ) { $.when( $('#pro-related-posts-wrapper').append( r.data.html ) ).done( function() { czrapp.proRelPostsRendered.resolve(); $wrap.find('.czr-css-loader').css('opacity', 0); _.delay( function() { $wrap.removeClass('loading').addClass('loaded'); }, 800 ); }); } } }); } }, offset: '110%' }); });//jQuery() […]