Skip to content

Instantly share code, notes, and snippets.

@nbareil
Created October 5, 2011 09:15
Show Gist options
  • Save nbareil/1263999 to your computer and use it in GitHub Desktop.
Save nbareil/1263999 to your computer and use it in GitHub Desktop.
my Google+ widget used for blogspot
<ul id="buzzcontent">
</ul>
<script>
function handler(response) {
for (var i = 0; i < 5 && i < response.items.length; i++) {
var item = response.items[i];
document.getElementById("buzzcontent").innerHTML += "<li><a href=\"" + item.url + "\">" + item.title + "</a></li>";
}
}
</script>
<script
src="https://www.googleapis.com/plus/v1/people/114289168433047035840/activities/public?key=AIzaSyBAZ2vmKgmyPFk5kENnylE3rRrK2zLJ7B4&callback=handler&fields=items/title,items/url">
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment