ilines) {
< if (prevlines[ilines] != lines[ilines]) {
< izero=0;
< if (1 == 1 && prevlines[ilines] != '' && lines[ilines] != '' && lines[ilines].indexOf(prevlines[ilines]) == 0 && lastjscf != jscf) {
< izero=eval(eval('' + eighteen) / 2.5) * eval(prevlines[ilines].length);
< //alert(eval(fstarth + 0) + ' at top vs bottom at ' + eval(starth + 20) + ' and left at ' + izero + ' for width ' + eval(eval(topwidth.replace('px','')) - izero));
< topcontext.clearRect(izero, Math.max(0,eval(fstarth - 15) / 1), eval(eval(topwidth.replace('px','')) - izero), eval(starth * 0 + 20) / 1);
< topcontext.strokeText(lines[ilines].substring(prevlines[ilines].length),eval(eval('' + izero) + 5),starth);
< } else {
< topcontext.clearRect(izero, Math.max(0,eval(fstarth - 15)), eval(eval(topwidth.replace('px','')) - izero), eval(starth * 0 + 20));
< topcontext.strokeText(lines[ilines],5,starth);
< }
< }
< } else {
< topcontext.clearRect(0, Math.max(0,eval(fstarth - 15)), eval(topwidth.replace('px','')), eval(starth * 0 + 20));
< topcontext.strokeText(lines[ilines],5,starth);
< }
< starth+=20;
< fstarth=starth;
< prevlines[ilines]=lines[ilines];
< }
< toplastta=parent.document.getElementById('myta').value;
< lastjscf=jscf;
< }
< }
< }
515,518d336
< if (parent.document.getElementById('colcf')) {
< colcf=parent.document.getElementById('colcf').value;
< }
< topcontext.strokeStyle = colcf;
544,551c362
< elem.addEventListener("touchcancel", touchHandler, true);
<
< if (topelem) {
< topelem.addEventListener("touchstart", toptouchHandler, true);
< topelem.addEventListener("touchmove", toptouchHandler, true);
< topelem.addEventListener("touchend", toptouchHandler, true);
< topelem.addEventListener("touchcancel", toptouchHandler, true);
< }
---
> elem.addEventListener("touchcancel", touchHandler, true);
560,652d370
< if (topelem) {
< topelem.addEventListener('mouseup', function(event) {
< if (isScribble == 2) {
< pmore=' pxm '; isScribble=1;
< }
< });
<
< topelem.addEventListener('touchend', function(event) {
< if (isScribble == 2) {
< pmore=' pxzm ';
< isScribble=1;
< }
< });
<
< topelem.addEventListener('touchstart', function(event) {
< if (isScribble == 1) {
< pmore=' pxqm ';
< isScribble=2;
< }
< });
<
<
< topelem.addEventListener('mousedown', function(event) {
< if (isScribble == 1) {
< pmore=' pxam ';
< isScribble=2;
< if (event.pageX || event.pageY) {
< ppx=event.pageX - elemLeft;
< ppy=event.pageY - elemTop;
< } else {
< ppx=event.clientX - elemLeft;
< ppy=event.clientY - elemTop;
< }
< lastx=0; // new to scribble
< lasty=0;
< x=0;
< y=0;
< }
< });
<
< topelem.addEventListener('mousemove', function(event) {
< if (isScribble == 2) {
<
< if (x == 0 && y == 0 && lastx == 0 && lasty == 0) {
< if (event.pageX || event.pageY) {
< x = event.pageX - elemLeft;
< y = event.pageY - elemTop;
< } else {
< x = event.clientX - elemLeft;
< y = event.clientY - elemTop;
< }
< if (ppx >= 0 && ppy >= 0) {
< lastx=ppx;
< lasty=ppy;
< ppx=-1;
< ppy=-1;
< } else {
< lastx=x;
< lasty=y;
< }
< } else {
< lastx=x;
< lasty=y;
< if (event.pageX || event.pageY) {
< x = event.pageX - elemLeft;
< y = event.pageY - elemTop;
< } else {
< x = event.clientX - elemLeft;
< y = event.clientY - elemTop;
< }
< }
<
< if (x != lastx || y != lasty) {
< //document.getElementById('divannotation').style.display='block';
< //document.getElementById('myisubject').style.display = 'inline';
< //document.getElementById('myiemail').style.display = 'inline';
< //context.strokeStyle=document.getElementById('mycolour').value;
< topcontext.beginPath();
< topcontext.moveTo(x,y);
< topcontext.lineTo(lastx,lasty);
< if (parent.document.getElementById('colcf')) {
< colcf=parent.document.getElementById('colcf').value;
< }
< topcontext.strokeStyle = colcf;
< topcontext.stroke();
< //document.title+=pmore + ' here';
< }
<
<
< }
<
< });
< }
738,741d455
< if (parent.document.getElementById('colcf')) {
< colcf=parent.document.getElementById('colcf').value;
< }
< topcontext.strokeStyle = colcf;
783,784c497,498
< //alert('a visible')
< showornot();
---
> //alert('visible')
> showornot;
786c500
< //alert('a invisible');
---
> //alert('invisible');
802d515
< //alert('z visible');
805c518
< parent.document.getElementById('toptd').innerHTML+="
Email To (optional):
Canvas Font:
";
---
> parent.document.getElementById('toptd').innerHTML+="
";
821c534
< parent.document.getElementById('toptd').innerHTML+="
Email To (optional):
Canvas Font:
";
---
> parent.document.getElementById('toptd').innerHTML+="
";