diff --git a/docs/assets/js/index/index.js b/docs/assets/js/index/index.js index e26a6e4dc..8b6e4362b 100644 --- a/docs/assets/js/index/index.js +++ b/docs/assets/js/index/index.js @@ -17,12 +17,17 @@ $(function() { } }); $.ajax({ - url: 'http://github.com/api/v2/json/repos/show/FortAwesome/Font-Awesome', + url: 'https://api.github.com/repos/fortawesome/Font-Awesome', dataType: 'jsonp', success: function(data) { - $('#watchers').html(data.repository.watchers); - $('#forks').html(data.repository.forks); + $('#watchers').html(data.data.watchers); + $('#forks').html(data.data.forks); + }, + error:function(xhr, ajaxOptions, thrownError) { + console.log(xhr); + console.log(thrownError); } + }); @@ -45,6 +50,7 @@ $(function() { var $item = $(event.currentTarget); var $iconName = $item.find("i").attr("class"); + _gaq.push(['_trackEvent', 'iconClick', $iconName]); mainRouter.navigate("icon/" + $iconName, {trigger: true}); firstInHistory = false; diff --git a/docs/index.html b/docs/index.html index d2ff33f80..e16a92149 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,6 +24,18 @@ + + @@ -77,15 +89,23 @@
- - + + + +

Font Awesome

The iconic font designed for use with Twitter Bootstrap

- Download Font
Awesome v2.0
- View Project
on GitHub
+ + Download Font
Awesome v2.0
+ + View Project
on GitHub