Tuesday, December 30, 2008

0d6d98

Saturday, December 13, 2008

simple clone of GitHub Badge

Thanks to jQuery, I just spend three hours to create GitHub Widget, a clone of GitHub Badge. The widget is put in the sidebar of this page.



Compare with GitHub Badge, GitHub Widget is full written in jQuery, so that it is also compatible with IE. And the usage and html structure is full compatible with GitHub Badge.

I host it here temporarily. Please feel free to use it.

 

github api callback

Not documented on Official GitHub API Guide, GitHub provide "callback" parameter to allow corss-site json accessing.

Example in jQuery:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js' type="text/javascript"></script>

<script>

function myFunction(data) {
// data is the json we would get
}

$.getScript("http://github.com/api/v1/json/username?callback=myFunction")

</script>


 

hide blogger navigation bar

memo:

.Navbar {
visibility:hidden;
display: none;
}