1function twentytwentyoneResponsiveEmbeds(){ 2var proportion, parentWidth; 3document.querySelectorAll('iframe').forEach(function(iframe){ 4if(iframe.width&&iframe.height){ 5proportion=parseFloat(iframe.width) / parseFloat(iframe.height); 6parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement, null).width.replace('px', '') ); 7iframe.style.maxWidth='100%'; 8iframe.style.maxHeight=Math.round(parentWidth / proportion).toString() + 'px'; 9}}); 10} 11twentytwentyoneResponsiveEmbeds(); 12window.onresize=twentytwentyoneResponsiveEmbeds;
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.