This commit is contained in:
Abdulrahman
2019-02-04 17:32:34 +03:00
parent 0037ec1bcb
commit 328e5b6c70
6 changed files with 32 additions and 15 deletions

View File

@@ -416,8 +416,8 @@
setTimeout(function() {
$.ajax({
url: "https://api.github.com/repos/awssat/kleeja/contributors",
dataType: 'json',
success: function (data) {
dataType: 'json'})
.done(function (data) {
var template = $('#ghTemplate')[0].outerHTML;
$.each(data, function (i, item) {
$("#gtresults").append(template.replace('%id%', item['id']).replace('%login%', item['login']).replace(
@@ -426,8 +426,7 @@
'contributions']).replace('%htmlUrl%', item['html_url']));
$('#gt' + item['id']).removeAttr('style');
});
}
});
});
}, 400);
</script>