|
@@ -1,7 +1,18 @@
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
- $('#dictionary').load('exercises-content.html div');
|
|
|
|
|
|
+ $.getJSON('http://api.github.com/users/FGM/repos' + '?callback=?', function (response) {
|
|
|
|
+ var html = '';
|
|
|
|
+ var items = ['<ul>'];
|
|
|
|
+ $.each(response.data, function (entryIndex, entry) {
|
|
|
|
+ var name = entry.name;
|
|
|
|
+ var url = entry.html_url;
|
|
|
|
+ items.push('<li><a href="' + url + '">' + name + '</a></li>');
|
|
|
|
+ });
|
|
|
|
+ items.push('</ul>');
|
|
|
|
+
|
|
|
|
+ $('#dictionary').html(items.join(''));
|
|
|
|
+ });
|
|
|
|
|
|
$('.letter').hover(function () {
|
|
$('.letter').hover(function () {
|
|
var $this = $(this);
|
|
var $this = $(this);
|