Skip to content

Instantly share code, notes, and snippets.

@nitishn
Created April 1, 2014 23:44
Show Gist options
  • Save nitishn/9925281 to your computer and use it in GitHub Desktop.
Save nitishn/9925281 to your computer and use it in GitHub Desktop.
// build the google plus feed template
$.ajax({
url : that.default_settings['api_path'] + 'gplus/',
}).done(function( results ) {
// compile the facebook feed template
feed_template = $(".feed_template").html();
// inject data into DOM
$('.gplus__block').html( (_.template(feed_template, results)) );
// append the google plus one button
$('.gplus__block .social-header').append( $('.gplus__button').removeClass('visually-hidden') );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment