Skip to content

Instantly share code, notes, and snippets.

Avatar

Danny Cohen mybundletv

View GitHub Profile
@mybundletv
mybundletv / fake.js
Last active Sep 16, 2020 — forked from wesbos/fake.js
fake-your-git-history.js
View fake.js
let currentColor = '#ebedf0';
let clicking = false;
const boxes = document.querySelectorAll('.js-calendar-graph-svg rect');
const graph = document.querySelector('.js-calendar-graph-svg');
// code for switching the current color
function handleColorChange(e) {
const el = e.currentTarget;
currentColor = el.style['background-color'];
console.log(currentColor)
You can’t perform that action at this time.