Fork-Awesome/src/assets/js/site.js

39 lines
1,001 B
JavaScript
Raw Normal View History

$(function() {
// start the icon carousel
2013-10-05 21:40:57 +02:00
$('#icon-carousel').carousel({
interval: 5000
});
2013-06-08 15:21:22 +02:00
// make code pretty
2013-05-10 01:25:13 +02:00
// $('pre').addClass('prettyprint');
// window.prettyPrint && prettyPrint();
2013-05-09 06:04:35 +02:00
// Disable links with href="#" inside <section>, so users can click on them
// to preview :active state without being scrolled up to the top of the page.
// $('section a[href="#"]').click(function(e) {
// e.preventDefault();
// e.stopPropagation();
// });
2013-05-10 00:04:49 +02:00
2013-05-05 03:41:26 +02:00
// // inject twitter & github counts
// $.ajax({
// url: 'http://api.twitter.com/1/users/show.json',
// data: {screen_name: 'fortaweso_me'},
// dataType: 'jsonp',
// success: function(data) {
// $('#followers').html(data.followers_count);
// }
// });
// $.ajax({
// url: 'https://api.github.com/repos/fortawesome/Font-Awesome',
// dataType: 'jsonp',
// success: function(data) {
// $('#watchers').html(data.data.watchers);
// $('#forks').html(data.data.forks);
// }
// });
});