1export default function GDMPollResultsHeightFix() { 2 3 let numOfClicks = 0; 4 window.addEventListener('blur', function (e) { 5 window.setTimeout(function () { 6 if (document.activeElement == document.querySelector('#Sgpollsputhere iframe')) { 7 // alert(`e.target.textContent = ${e.target.textContent}`); 8 // alert('you clicked the iframe'); 9 numOfClicks++; 10 // alert(`numOfClicks = ${numOfClicks}`); 11 // if(numOfClicks >= 2 && numOfClicks <= 3) 12 13 // alert('running resizer function'); 14 15 const initialHeight = document.querySelector('#Sgpollsputhere iframe').offsetHeight; 16 17 // alert(`initial iframe height = ${document.querySelector('#Sgpollsputhere iframe').offsetHeight}`); 18 19 20 document.querySelector('#Sgpollsputhere iframe').setAttribute('height', `${initialHeight + 150}`); 21 22 // alert(`new iframe height = ${document.querySelector('#Sgpollsputhere iframe').offsetHeight}`); 23 } 24 }, 0); 25 }); 26 27}
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.