site.js 1000 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. // Disable links with href="#" inside <section>, so users can click on them
  10. // to preview :active state without being scrolled up to the top of the page.
  11. // $('section a[href="#"]').click(function(e) {
  12. // e.preventDefault();
  13. // e.stopPropagation();
  14. // });
  15. // // inject twitter & github counts
  16. // $.ajax({
  17. // url: 'http://api.twitter.com/1/users/show.json',
  18. // data: {screen_name: 'fortaweso_me'},
  19. // dataType: 'jsonp',
  20. // success: function(data) {
  21. // $('#followers').html(data.followers_count);
  22. // }
  23. // });
  24. // $.ajax({
  25. // url: 'https://api.github.com/repos/fortawesome/Font-Awesome',
  26. // dataType: 'jsonp',
  27. // success: function(data) {
  28. // $('#watchers').html(data.data.watchers);
  29. // $('#forks').html(data.data.forks);
  30. // }
  31. // });
  32. });