Abbazia di San Pietro in…

); w.joms_queue.push(function( $ ) { var $ct = $('#latest-videos-nav'), $loading = $ct.find('.joms-js--loading'); function render( json ) { $list = $('.joms-js--video-module').find('.joms-list--half'); $list.html( json.html || ' ' ); } $ct.on( 'click', '.newest-videos', function( e ) { $loading.show(); joms.ajax({ func: 'frontpage,ajaxGetNewestVideos', data: [ frontpageVideos ], callback: function( json ) { $( e.target ).addClass('active-state').siblings('a').removeClass('active-state'); $loading.hide(); render( json ); } }); }); $ct.on( 'click', '.featured-videos', function( e ) { $loading.show(); joms.ajax({ func: 'frontpage,ajaxGetFeaturedVideos', data: [ frontpageVideos ], callback: function( json ) { $( e.target ).addClass('active-state').siblings('a').removeClass('active-state'); $loading.hide(); render( json ); } }); }); $ct.on( 'click', '.popular-videos', function( e ) { $loading.show(); joms.ajax({ func: 'frontpage,ajaxGetPopularVideos', data: [ frontpageVideos ], callback: function( json ) { $( e.target ).addClass('active-state').siblings('a').removeClass('active-state'); $loading.hide(); render( json ); } }); }); }); })( window );