Skip to content

Instantly share code, notes, and snippets.

View mybundletv's full-sized avatar

Danny Cohen mybundletv

View GitHub Profile
@mybundletv
mybundletv / fake.js
Last active September 16, 2020 22:01 — forked from wesbos/fake.js
fake-your-git-history.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)