1const cardLink = () => { 2 document.body.addEventListener('click', (e)=> { 3 const target = e.target; 4 if(target.closest('.js-card')) { 5 const wrapper = target.closest('.js-card'), 6 link = wrapper.querySelector('.js-card-link'); 7 if (target == link) return; 8 link.dispatchEvent(new MouseEvent('click', { 9 bubbles: true, 10 cancelable: true, 11 view: window, 12 ctrlKey: e.ctrlKey, 13 shiftKey: e.shiftKey, 14 altKey: e.altKey, 15 metaKey: e.metaKey, 16 button: e.button 17 })); 18 19 } 20 }); 21} 22export default cardLink;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.