aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-03-19 20:29:22 -0400
committerBobby <[email protected]>2022-03-19 20:29:22 -0400
commit6b39a4fe480f38fc207125a4057714a1c87c9010 (patch)
treed734eff989490c63ee32a22567cf437df1c891b4
parent3f35dba42517061760aa174c82c4e48d6478fe3e (diff)
downloadluciferreeves.github.io-6b39a4fe480f38fc207125a4057714a1c87c9010.tar.xz
luciferreeves.github.io-6b39a4fe480f38fc207125a4057714a1c87c9010.zip
added weekly contributions label
-rw-r--r--static/assets/js/pages/repositories.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/static/assets/js/pages/repositories.js b/static/assets/js/pages/repositories.js
index 821b83c..105e50c 100644
--- a/static/assets/js/pages/repositories.js
+++ b/static/assets/js/pages/repositories.js
@@ -61,6 +61,12 @@ $.getJSON("api/user", function (data) {
githubText.appendChild(githubContainer);
ghParagraph.appendChild(githubText);
userData.appendChild(ghParagraph);
+ const weeklyContributionsTitle = "Weekly Contributions (Past Year)";
+ const weeklyContributions = document.createElement("p");
+ weeklyContributions.style.color = "#000";
+ weeklyContributions.innerHTML = weeklyContributionsTitle;
+ weeklyContributions.style.textAlign = "center";
+ userData.appendChild(weeklyContributions);
const contributions = data.contributions;
const canvas = document.createElement("canvas");
canvas.id = "contributionsChart";
@@ -111,10 +117,6 @@ $.getJSON("api/user", function (data) {
},
options: {
plugins: {
- subtitle: {
- display: true,
- text: "Weekly Contributions (Past Year)\n",
- },
legend: {
display: false,
},