index.js 690 B

12345678910111213141516171819202122232425262728
  1. $(function() {
  2. // start the icon carousel
  3. $('#iconCarousel').carousel({
  4. interval: 5000
  5. });
  6. // make code pretty
  7. $('pre').addClass('prettyprint');
  8. window.prettyPrint && prettyPrint();
  9. // inject twitter & github counts
  10. $.ajax({
  11. url: 'http://api.twitter.com/1/users/show.json',
  12. data: {screen_name: 'fortaweso_me'},
  13. dataType: 'jsonp',
  14. success: function(data) {
  15. $('#followers').html(data.followers_count);
  16. }
  17. });
  18. $.ajax({
  19. url: 'https://api.github.com/repos/fortawesome/Font-Awesome',
  20. dataType: 'jsonp',
  21. success: function(data) {
  22. $('#watchers').html(data.data.watchers);
  23. $('#forks').html(data.data.forks);
  24. }
  25. });
  26. });