Skip to content

Commit

Permalink
Update hexo_githubcalendar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zfour authored Mar 4, 2021
1 parent 5461f5a commit 4ebdb81
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions hexo_githubcalendar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
let github_canlendar = (git_user,git_githubapiurl, git_color) => {
(function(){
let github_canlendar = (git_user,git_githubapiurl, git_color) => {
let git_fixed = 'fixed';
let git_px = 'px';
let git_month = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
Expand Down Expand Up @@ -232,7 +233,7 @@ let github_canlendar = (git_user,git_githubapiurl, git_color) => {
return style
}
};
let append_div_gitcalendar = (parent, text) => {
let append_div_gitcalendar = (parent, text) => {
if (typeof text === 'string') {
let temp = document.createElement('div');
temp.innerHTML = text;
Expand All @@ -245,10 +246,6 @@ let append_div_gitcalendar = (parent, text) => {
parent.appendChild(text)
}
};



(function(){
let loading_git = (color) => {
loading = '<div id="github_loading" style="width:10%;height:100%;margin:0 auto;display: block"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50" xml:space="preserve"><path fill="' + color + '" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z" transform="rotate(275.098 25 25)"><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"></animateTransform></path></svg></div>';
return loading
Expand Down

0 comments on commit 4ebdb81

Please sign in to comment.