Skip to content

Instantly share code, notes, and snippets.

View matikucharski's full-sized avatar
🛴

Mateusz matikucharski

🛴
  • BARBA Studio
  • Kraków, Poland
View GitHub Profile
@matikucharski
matikucharski / dots.js
Last active June 13, 2017 08:25
Append dot on every click - useful for debugging bots click locations
document.body.addEventListener('click', function(e) {
const el = document.createElement('div');
el.style.position = 'absolute';
el.style.top = `${e.pageY - 3}px`;
el.style.left = `${e.pageX -3}px`;
el.style.height = '6px';
el.style.width = '6px';
el.style.background = 'red';
el.style.zIndex = '10000';
el.style.borderRadius = '50%';