1if ( ! window._cscProductToggleReady ) { 2 window._cscProductToggleReady = true; 3 document.addEventListener( 'click', function ( e ) { 4 if ( e.target.closest( '.product-card__actions' ) ) return; 5 var card = e.target.closest( '.product-card' ); 6 if ( ! card ) return; 7 var btn = card.querySelector( '.product-card__toggle' ); 8 if ( ! btn ) return; 9 var imgLink = e.target.closest( '.product-card__img-link' ); 10 if ( imgLink ) e.preventDefault(); 11 var open = btn.getAttribute( 'aria-expanded' ) === 'true'; 12 btn.setAttribute( 'aria-expanded', open ? 'false' : 'true' ); 13 card.classList.toggle( 'is-open', ! open ); 14 } ); 15}
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.