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 6, 2021
1 parent 8704cb0 commit 624d3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexo_githubcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function GithubCalendar(git_githubapiurl,git_color,git_user){
var git_y = '';
var git_span1 = '';
var git_span2 = '';
var c = document.getElementById("gitcanvas");
var github_calendar_c = document.getElementById("gitcanvas");
var cmessage = document.getElementById("gitmessage");
var ctx = github_calendar_c.getContext("2d");
var github_calendar_ctx = github_calendar_c.getContext("2d");
github_calendar_c.width = document.getElementById("gitcalendarcanvasbox").offsetWidth;
var linemaxwitdh = 0.96 * github_calendar_c.width / git_data.length;
github_calendar_c.height = 9 * linemaxwitdh;
Expand Down

0 comments on commit 624d3d0

Please sign in to comment.