Skip to content

Commit 4228743

Browse files
committed
Ash/Salai Added Chrome-Store URL to README, Removed console log statements
1 parent 56c3e93 commit 4228743

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Our beloved table under the contributions calendar was recently removed from Git
77
### Demo
88
[![Github Contributions Table](https://raw.githubusercontent.com/salaikumar/chrome-github-contributions/master/docs/demo.png)](https://chrome.google.com/webstore/detail/github-contributions/hnnbdaofndjgohiipggnpmcbmcobckik)
99

10+
11+
### Chrome-Store
12+
It's available at Chrome store over [here] (https://chrome.google.com/webstore/detail/github-contributions/hnnbdaofndjgohiipggnpmcbmcobckik)
13+
1014
### Authors
1115
- Salaikumar ([@Saravanan1115](https://twitter.com/Saravanan1115))
1216
- Ashwanth Kumar ([@_ashwanthkumar](https://twitter.com/_ashwanthkumar))

js/github-contributions.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function largestStreak() {
5151
currentStreak+=1;
5252
} else {
5353
endDate = prevDate;
54-
// console.log("Current Streak is " + currentStreak + " from " + startDate + " to " + endDate);
5554
if (currentStreak > largestStreak) {
5655
largestStreak = currentStreak;
5756
largestStartDate = startDate;
@@ -64,14 +63,12 @@ function largestStreak() {
6463
});
6564

6665
endDate = prevDate;
67-
// console.log("Current Streak is " + currentStreak + " from " + startDate + " to " + endDate);
6866
if (currentStreak > largestStreak) {
6967
largestStreak = currentStreak;
7068
largestStartDate = startDate;
7169
largestEndDate = endDate;
7270
}
73-
74-
// console.log("Largest Streak is " + largestStreak + " from " + largestStartDate + " to " + largestEndDate);
71+
7572
return {
7673
streak: largestStreak,
7774
epoch: start,
@@ -87,14 +84,12 @@ function totalCommits() {
8784
$.each($(".js-calendar-graph-svg g rect"), function(idx, elem) {
8885
var date = jQuery(elem).attr("data-date");
8986
var count = jQuery(elem).attr("data-count");
90-
// console.log("Contributed " + count + " commits on " + date);
9187
});
9288

9389
var totalContributions = 0;
9490
$.each($(".js-calendar-graph-svg g rect"), function(idx, elem) {
9591
var count = parseInt(jQuery(elem).attr("data-count"));
9692
totalContributions += count;
9793
});
98-
// console.log("Total Contributions is " + totalContributions);
99-
return totalContributions;
94+
return totalContributions;
10095
}

0 commit comments

Comments
 (0)