7d6 < #hxtml,#bxody { overflow: hidden; } 335d333 < if (dhuh == null) { dhuh=document.body; } 815c813 < c = document.getElementById('canvaselement'); //querySelector('canvas'), // see Example 4 --- > c = document.querySelector('canvas'), // see Example 4 955d952 < //if (img[eval(-1 + img.length)]) { alert(dhuh.id + ' ... ' + eval(-1 + img.length)); } 989c986 < //document.title+='' + swir + 'bad' + lasttop + ':' + itop + ' '; --- > document.title+='' + swir + 'bad' + lasttop + ':' + itop + ' '; 993c990 < //document.title+='' + swir + 'good' + lasttop + ':' + tops[lasttop] + ' '; --- > document.title+='' + swir + 'good' + lasttop + ':' + tops[lasttop] + ' '; 1020,1021c1017,1018 < //elem.width = imgl.width; < //elem.height = imgl.height; --- > //c.width = img.width; > //c.height = img.height; 1023,1027d1019 < c = document.getElementById('canvaselement'); //querySelector('canvas'), // see Example 4 < ctx = c.getContext('2d'); < if (isNaN(xtop)) { < ctx.drawImage(imgl, 0, 0); < } else { 1029d1020 < } 1200a1192 > //alert(dw); 1203c1195 < var preqmxyf="

 " + document.getElementById('myh1').innerHTML.replace('Capture Email', 'Canvas Annotation').replace('Game', 'Report').replace('gsc', 'qgsc').replace(/nofloat/g, 'float').split(' and')[0] + " Canvas Annotation" + "

" + omyfih + "
"; --- > var preqmyf="

 " + document.getElementById('myh1').innerHTML.replace('Capture Email', 'Canvas Annotation').replace('Game', 'Report').replace('gsc', 'qgsc').replace(/nofloat/g, 'float') + "

" + omyfih + "
"; 1206c1198 < document.getElementById('danno').innerHTML=preqmxyf; //document.getElementById('qm x yf').outerHTML; --- > document.getElementById('danno').innerHTML=preqmyf; //document.getElementById('qmyf').outerHTML; 1706,1709d1697 < //document.getElementById('qm' + 'yf').style.position='sticky'; < document.getElementById('qm' + 'yf').style.top=eval(-200 + eval('' + elem.offsetTop) / 2 + eval('' + getBodyScrollTop())) + 'px'; //document.body.style.scrollTop; < //document.title='' + eval(-200 + eval('' + elem.offsetTop) + eval('' + getBodyScrollTop())); //document.body.style.scrollTop; < //alert('' + eval(eval('' + elem.offsetTop) + eval('' + getBodyScrollTop())) + ' ' + elem.offsetTop + ' ... ' + getBodyScrollTop() + ' ... ' + document.getElementById('divform').innerHTML); 1749c1737 < if (1 == 2 && (x != lastx || y != lasty)) { --- > if (x != lastx || y != lasty) { 1759,1792c1747 < function getBodyScrollTop() { < const el = document.scrollingElement || document.documentElement; < return el.scrollTop; < } < < function copycanvas() { < var wimg = document.createElement('img'); < wimg.src = elem.toDataURL() < < var wdiv = document.createElement('div'); < wdiv.contentEditable = true; < wdiv.appendChild(wimg); < document.body.appendChild(wdiv); < < // do copy < SelectText(wdiv); < document.execCommand('Copy'); < document.body.removeChild(wdiv); < } < < function SelectText(element) { // thanks to https://stackoverflow.com/a/40547470/1118626 < var doc = document; < if (doc.body.createTextRange) { < var range = document.body.createTextRange(); < range.moveToElementText(element); < range.select(); < } else if (window.getSelection) { < var selection = window.getSelection(); < var range = document.createRange(); < range.selectNodeContents(element); < selection.removeAllRanges(); < selection.addRange(range); < } < } --- > 1829c1784 < document.write('
Canvas image(s) via [canvasContext].drawImage() is Clickable (for scribble and non-scribble annotation functionalities) below ...
'); --- > document.write('
Canvas image(s) via [canvasContext].drawImage() is Clickable (for scribble and non-scribble annotation functionalities) below ...
'); 1831c1786 < document.write('
Canvas image(s) via [canvasContext].drawImage() is Clickable (for scribble and non-scribble annotation functionalities) below ...
'); --- > document.write('
Canvas image(s) via [canvasContext].drawImage() is Clickable (for scribble and non-scribble annotation functionalities) below ...
'); 1873,1881c1828,1829 <  Image <  Canvas Copy
   <
... vs Image URL: <
... Offset X: Offset Y: <
<
Annotation (optional): <
Anno B&W (optional): <
Style: <
Colour:  Rotation (deg):

--- >  Image
  
... vs Image URL:
... Offset X: Offset Y:
>
Annotation (optional):   Anno B&W (optional):
Style:  Colour:  Rotation (deg):

1963,1965d1910 < //document.getElementById('qm' + 'yf').style.position='sticky'; //'absolute'; < //document.getElementById('qm' + 'yf').style.top=getBodyScrollTop(); //document.body.style.scrollTop; < //document.title='' + getBodyScrollTop(); //document.body.style.scrollTop; 1968d1912 < //if (allowc || 1 == 1) { 1970c1914 < //document.title='top click'; --- > document.title='top click'; 1982c1926 < //document.title='nontop click'; --- > document.title='nontop click'; 2008c1952 < if (1 == 2 && (x != lastx || y != lasty)) { --- > if (x != lastx || y != lasty) { 2019,2021c1963 < drawt(); < allowc = false; < document.getElementById('topic').focus(); --- > drawt(); allowc = false; document.getElementById('topic').focus();