blob: 4fbfc1bc7e97b41db9baf2bffce74dd228e77815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(function($){
appendContributors = function(contributors){
var source = $('#contributors-tpl').html();
var template = Handlebars.compile(source);
$('#contributors').append(template({ contributors: contributors }));
}
$.ajax('https://api.github.com/repos/lou/multi-select/git/refs/tags')
.done(function(data){
var ref = data[data.length-1].ref;
var tagNumber = ref.match(/(\d.+)*$/)[0];
$('#brand').append(' <span>'+tagNumber+'</span>')
})
$.ajax('https://api.github.com/repos/lou/multi-select/contributors')
.done(function(data){
appendContributors(data);
});
})(jQuery)
|