This commit is contained in:
xaoxuu 2022-10-06 01:21:36 +08:00
parent d5bc27bf78
commit be7af9a06e
1 changed files with 7 additions and 4 deletions

View File

@ -2,15 +2,18 @@
var btns = []; var btns = [];
btns.push({ btns.push({
key: 'followers', key: 'followers',
desc: 'followers' desc: 'followers',
href: 'https://github.com/xaoxuu?tab=followers'
}); });
btns.push({ btns.push({
key: 'following', key: 'following',
desc: 'following' desc: 'following',
href: 'https://github.com/xaoxuu?tab=following'
}); });
btns.push({ btns.push({
key: 'public_repos', key: 'public_repos',
desc: 'repos' desc: 'repos',
href: 'https://github.com/xaoxuu?tab=repositories'
}); });
function layoutDiv() { function layoutDiv() {
@ -30,7 +33,7 @@ function layoutDiv() {
el += '<div class="buttons">'; el += '<div class="buttons">';
btns.forEach((btn, i) => { btns.forEach((btn, i) => {
el += '<a class="btn" href="#">'; el += '<a class="btn" href="' + btn.href + '">';
el += '<span class="title" type="text" id="' + btn.key + '"></span>'; el += '<span class="title" type="text" id="' + btn.key + '"></span>';
el += '<span class="desc">' + btn.desc + '</span>'; el += '<span class="desc">' + btn.desc + '</span>';
el += '</a>'; el += '</a>';