1var iframe = document.querySelectorAll('.js-variable-frame iframe'); 2var node = Array.prototype.slice.call(iframe, 0); 3 4function changeParentHeight(e) { 5 setTimeout(function () { 6 e.style.height = 0; 7 e.style.height = e.contentWindow.document.body.scrollHeight + 'px'; 8 }, 100); 9} 10 11Object.defineProperty(window, 'notify', { 12 get: function () { 13 node.forEach(function (elem) { 14 changeParentHeight(elem); 15 }); 16 } 17}); 18 19node.forEach(function (elem) { 20 elem.addEventListener('load', function () { 21 elem.contentWindow.document.addEventListener('click', parent.notify); 22 }) 23}); 24 25window.onload = function () { 26 parent.notify; 27} 28 29var timer = 0; 30window.onresize = function () { 31 if (timer > 0) { 32 clearTimeout(timer); 33 } 34 timer = setTimeout(function () { 35 parent.notify; 36 }, 100); 37};
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.