Using Jquery to display your GitHub repos
Friday, March 6th, 2009Here is a quick little script to pull down your GitHub Repos and display them on a page:
Interesting note - I started off by using the append function inside the $.each loop - but after reading Josh Powell’s post on using append correctly I switched to building the HTML from a concatenated string. The result loads noticeably faster.
Check out the result on GitHub:
`onbeforeunload` is a black sheep in the JavaScript event family. It’s nonstandard and yet supported all major browsers except Opera. You’ve seen it before in Gmail or Wordpress. When you try to close a draft that hasn’t been saved you are asked to confirm your action - that’s `onbeforeunload` in action.