js-footer.handlebars 377 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
( function( $ ) {
    $( 'div.site-container' ).each( function( i, site ) {
        var container = $( this ),
            domain    = container.data( 'domain' );

        $.get( {
            url: '/api/' + domain,
            success: function( data, status ) {
                $( '.latest-post', container ).html( data );
            }
        } );
    } );
} ) ( jQuery );