Created
December 31, 2017 17:38
-
-
Save aashutoshrathi/16d5d2a795247b64e16cbbe5ee22305b to your computer and use it in GitHub Desktop.
Get today's contribution through console.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var today = new Date(); | |
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate(); | |
x = document.getElementsByTagName('rect'); | |
for(let i = 0; i<x.length; i++) { | |
if(x[i].getAttribute('data-date') === date) { | |
console.log(x[i].getAttribute('data-count')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment