1(function () { 2 "use strict"; 3 4 // dynamically adjust iframe height to ensure chart isn't cutoff on mobile, 5 // doesn't have scrollbars, and doesn't have too much whitespace underneath on desktop 6 7 window.addEventListener('message', function(event) { 8 if (typeof event.data['datawrapper-height'] !== 'undefined') { 9 let iframes = document.querySelectorAll('iframe'); 10 for (let chartId in event.data['datawrapper-height']) { 11 for (let i = 0; i < iframes.length; i++) { 12 if (iframes[i].contentWindow === event.source) { 13 let iframe = iframes[i]; 14 iframe.style.height = event.data['datawrapper-height'][chartId] + 'px'; 15 } 16 } 17 } 18 } 19 }); 20})();
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.