document.querySelectorAll('.block').forEach(el=>el.addEventListener("click", e=>e.currentTarget.querySelector('img').src = 'линия.png