1document.addEventListener( 'DOMContentLoaded', () => { 2 const comparisonTableEl = document.querySelector( 3 '.wp-block-wpsp-comparison-table' 4 ); 5 6 if ( ! comparisonTableEl ) { 7 return; 8 } 9 10 /** 11 * Scroll to and show the comparison table. 12 */ 13 function showComparisonTable() { 14 comparisonTableEl.style.display = 'block'; 15 } 16 17 // Hide table initially. 18 comparisonTableEl.style.display = 'none'; 19 20 // Show table if location hash is set. 21 if ( window.location.hash === '#all-features' ) { 22 showComparisonTable(); 23 } 24 25 // Show table when clicking links. 26 const showAllFeaturesEls = document.querySelectorAll( 27 'a[href="#all-features"]' 28 ); 29 30 showAllFeaturesEls.forEach( ( el ) => { 31 el.addEventListener( 'click', showComparisonTable ); 32 } ); 33} );
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.