parent
a796fdeef9
commit
b9909ceb35
|
@ -3,17 +3,17 @@ var btns = [];
|
||||||
btns.push({
|
btns.push({
|
||||||
key: 'followers',
|
key: 'followers',
|
||||||
desc: 'followers',
|
desc: 'followers',
|
||||||
href: 'https://github.com/xaoxuu?tab=followers'
|
href: '?tab=followers'
|
||||||
});
|
});
|
||||||
btns.push({
|
btns.push({
|
||||||
key: 'following',
|
key: 'following',
|
||||||
desc: 'following',
|
desc: 'following',
|
||||||
href: 'https://github.com/xaoxuu?tab=following'
|
href: '?tab=following'
|
||||||
});
|
});
|
||||||
btns.push({
|
btns.push({
|
||||||
key: 'public_repos',
|
key: 'public_repos',
|
||||||
desc: 'repos',
|
desc: 'repos',
|
||||||
href: 'https://github.com/xaoxuu?tab=repositories'
|
href: '?tab=repositories'
|
||||||
});
|
});
|
||||||
|
|
||||||
function layoutDiv() {
|
function layoutDiv() {
|
||||||
|
@ -21,7 +21,7 @@ function layoutDiv() {
|
||||||
if (item.username == undefined || item.username.length == 0) {
|
if (item.username == undefined || item.username.length == 0) {
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
|
|
||||||
el += '<div class="widget-wrap" id="github-user">';
|
el += '<div class="widget-wrap" id="github-user">';
|
||||||
// header
|
// header
|
||||||
if (item.header && item.header.length > 0) {
|
if (item.header && item.header.length > 0) {
|
||||||
|
@ -37,10 +37,10 @@ function layoutDiv() {
|
||||||
// username
|
// username
|
||||||
el += '<p class="username" type="text" id="name" href="https://github.com/' + item.username + '"> </p>';
|
el += '<p class="username" type="text" id="name" href="https://github.com/' + item.username + '"> </p>';
|
||||||
el += '<p class="bio" type="text" id="bio"> </p>';
|
el += '<p class="bio" type="text" id="bio"> </p>';
|
||||||
|
|
||||||
el += '<div class="buttons">';
|
el += '<div class="buttons">';
|
||||||
btns.forEach((btn, i) => {
|
btns.forEach((btn, i) => {
|
||||||
el += '<a class="btn" href="' + btn.href + '">';
|
el += '<a class="btn" href="https://github.com/' + item.username + '' + btn.href + '">';
|
||||||
el += '<span class="title" type="text" id="' + btn.key + '">0</span>';
|
el += '<span class="title" type="text" id="' + btn.key + '">0</span>';
|
||||||
el += '<span class="desc">' + btn.desc + '</span>';
|
el += '<span class="desc">' + btn.desc + '</span>';
|
||||||
el += '</a>';
|
el += '</a>';
|
||||||
|
|
Loading…
Reference in New Issue