Skip to content

Commit 415efe2

Browse files
authored
Merge pull request #37 from couchbase/ui-bug-fixes
fix lint errors
2 parents f2648aa + 9c62d2c commit 415efe2

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/js/08-contributor-bot.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,35 @@
5353

5454
// show html data
5555
if (showData) {
56-
contributorListBox.classList.add('show')
56+
contributorListBox.classList.add('show')
5757
}
5858
// map function
5959

6060
contributors
61-
.slice(0)
62-
.reverse()
63-
.map(function (contributor, index, arrayobj) {
64-
//show only top 5 contributor
65-
if (index <= 4) {
66-
var contributorAvtar = contributor.author.avatar_url
67-
// var contributorTotalCommit = contributor.total
68-
var authorURL = contributor.author.html_url
69-
// append child in ul
70-
var li = document.createElement('li')
71-
var anchor = document.createElement('a')
72-
var image = document.createElement('img')
73-
image.setAttribute('src', contributorAvtar)
74-
image.setAttribute('alt', '')
75-
anchor.setAttribute('href', authorURL)
76-
anchor.setAttribute('target', '_blank')
77-
li.appendChild(anchor)
78-
anchor.appendChild(image)
79-
contributorList.appendChild(li)
80-
}
81-
})
61+
.slice(0)
62+
.reverse()
63+
.map(function (contributor, index, arrayobj) {
64+
//show only top 5 contributor
65+
if (index <= 4) {
66+
var contributorAvtar = contributor.author.avatar_url
67+
// var contributorTotalCommit = contributor.total
68+
var authorURL = contributor.author.html_url
69+
// append child in ul
70+
var li = document.createElement('li')
71+
var anchor = document.createElement('a')
72+
var image = document.createElement('img')
73+
image.setAttribute('src', contributorAvtar)
74+
image.setAttribute('alt', '')
75+
anchor.setAttribute('href', authorURL)
76+
anchor.setAttribute('target', '_blank')
77+
li.appendChild(anchor)
78+
anchor.appendChild(image)
79+
contributorList.appendChild(li)
80+
}
8281
})
83-
.catch(function (err) {
82+
})
83+
.catch(function (err) {
8484
console.log(err, 13)
85-
})
85+
})
8686
}
8787
})()

0 commit comments

Comments
 (0)