<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>User of Signature Signature - RJM Programming - May, 2017</title>
<link href='../PHP/emboss_h1.css' rel='stylesheet' type='text/css'>
<style>
.mytaover { // thanks to https://www.google.com/search?q=pointer-events+just+respond+to+resize&sca_esv=2b8deb8d39e39eab&rlz=1C5OZZY_en&sxsrf=APpeQntiSztEiLfziQQktrycXFP-IyJTfg%3A1782801711515&ei=L2VDaouJH6X02roPiOjVeA&biw=1600&bih=824&ved=0ahUKEwjL3OD1ra6VAxUlulYBHQh0FQ8Q4dUDCBI&uact=5&oq=pointer-events+just+respond+to+resize&gs_lp=Egxnd3Mtd2l6LXNlcnAiJXBvaW50ZXItZXZlbnRzIGp1c3QgcmVzcG9uZCB0byByZXNpemUyBRAAGO8FMgUQABjvBTIFEAAY7wUyBRAAGO8FMgUQABjvBUjvO1DqBliQOHABeAGQAQCYAboCoAHgKaoBCDAuNi4xNi4xuAEDyAEA-AEBmAIYoALHKsICChAAGEcY1gQYsAPCAg0QABiABBiKBRhDGLADwgIOEAAY5AIY1gQYsAPYAQHCAhMQLhiABBiKBRhDGMgDGLAD2AEBwgIKEAAYgAQYigUYQ8ICBRAAGIAEwgIGEAAYFhgewgILEAAYgAQYigUYhgPCAggQABiABBiiBMICBRAhGJ8FwgIFECEYoAHCAgQQIRgVmAMAiAYBkAYRugYGCAEQARgJkgcIMS42LjE2LjGgB4BUsgcIMC42LjE2LjG4B8IqwgcHNC4xMC4xMMgHPYAIAQ&sclient=gws-wiz-serp
pointer-events: none; /* Ignores clicks, hover, and text selection */
resize: both;
overflow: auto;
}
.mytaover::-webkit-resizer {
pointer-events: auto; /* Forces the resize handle to still be clickable */
}
</style>
<!--script type='text/javascript' src='signature_signature.js?rand=htrjhgdf'></script-->
<script type='text/javascript'>
var rcpolyx=[], rcpolyy=[], eventtarget=null, evto=null, lastsvgisis='', sdisabled=' disabled', rceventame='oncontextmenu', hniis=false, hniisv='';
var titleprefix='Right click can show the image map textarea. Right clicks after an initial click are the means by which you can define area shape=poly ( as distinct from the default shape=rect ) elements where to finish a polygon two click back close to the start point.';
var areaplus='';
var qwowo=null, rwowo=null, rectvscirclemode=1;
var specified=false;
var elemode=location.search.split('elemode=')[1] ? (location.search.split('elemode=')[1].split('&')[0]) : "canvas";
var canconth=location.search.split('canconth=')[1] ? eval(location.search.split('canconth=')[1].split('&')[0]) : -1;
var cancontw=location.search.split('cancontw=')[1] ? eval(location.search.split('cancontw=')[1].split('&')[0]) : -1;
if (canconth == -1 && cancontw == -1 && location.search.indexOf('width=') != -1 && location.search.indexOf('height=') != -1) {
canconth=location.search.split('height=')[1] ? eval(location.search.split('height=')[1].split('&')[0]) : -1;
cancontw=location.search.split('width=')[1] ? eval(location.search.split('width=')[1].split('&')[0]) : -1;
specified=true;
}
var sscoords=location.search.split('sscoords=')[1] ? (location.search.split('sscoords=')[1].split('&')[0]) : "";
var zfac=location.search.split('zoom=')[1] ? decodeURIComponent(location.search.split('zoom=')[1].split('&')[0]) : "";
var stuffaroundbefore="", stuffaroundafter="", defevstuff=" alt= href=# onclick=onc(0); onmouseover=omo(0); onmouseout=oom(0);", iizero=0, promptfor=false, promptjsfor=false;
var prevsuff='', spareprev='';
var dz='Drop Zone';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
dz='Click Zone';
}
var dzslides=[], dzo=null, dzcnt=0;
var lastdrop='', lastelem=null, wasmt='0px', popupemailfunction='', agconto=null, agidis='slideshow', agiscnt=1, iois=null, dzoreopen=false, xinputtype='';
var lhif='';
var noag=false;
var xcelem=null; //document.getElementById('topcanvas');
var xccontext=null; // xcelem.getContext("2d");
var xcimg=null; //new Image;
var sscordsdelim="", wassscoords="";
var documentURL=document.URL;
var ie = 11;
var mode = 1;
var amode = 1;
var elem, celem, cimg;
var elemLeft = 0;
var cf = "18px Verdana";
var elemTop = 0;
var context, ccontext;
var elements = [];
var x=0, y=0, lastx=0, lasty=0;
var rectbits=[0,0,0,0];
var clickno = 0;
var ssois=null;
var cancont='';
var wocheck=false, woop=null, lastwoopj='';
var slideis=location.search.split('slide=')[1] ? (location.search.split('slide=')[1].split('&')[0]) : "";
var thewords=(location.search + location.hash).split('thewords=')[1] ? decodeURIComponent((location.search + location.hash).split('thewords=')[1].split('&')[0]) : "";
if (thewords.indexOf('data') == 0) { thewords=thewords.replace(/\ /g,'+'); }
var cbcol=location.search.split('cbcol=')[1] ? decodeURIComponent(location.search.split('cbcol=')[1].split('&')[0]) : "";
var cfcol=location.search.split('cfcol=')[1] ? decodeURIComponent(location.search.split('cfcol=')[1].split('&')[0]) : "";
var cffam=location.search.split('cffam=')[1] ? decodeURIComponent(location.search.split('cffam=')[1].split('&')[0]) : "";
var cfsz=location.search.split('cfsz=')[1] ? decodeURIComponent(location.search.split('cfsz=')[1].split('&')[0]) : "";
var hRatio, vRatio, ratio;
if (decodeURIComponent(('' + location.hash).replace(/^\#/g,'')).indexOf('data:') == 0) {
cancont=decodeURIComponent(('' + location.hash).replace(/^\#/g,'')).replace(/\ /g,'+');
var nig=new Image();
nig.onload=function(evt){
if (cancontw < 0 && canconth < 0) {
cancontw=evt.target.width;
canconth=evt.target.height;
}
if (document.URL.indexOf('imagemap=url') == -1) {
setTimeout(function(){ location.href='#topcanvas'; }, 5000);
}
};
nig.src=cancont;
}
if (('' + window.opener).replace('null','') != '') {
if (!wocheck) {
wocheck=true;
if (window.opener && slideis != '') {
woop=window.opener;
setTimeout(function() { document.getElementById('topcanvas').title=initialtextmaybe(slideis); setInterval(topcwoop, 5000); }, 3000);
}
}
var cans=window.opener.document.getElementsByTagName(elemode);
if (cans.length > 0 && !woop) {
if (elemode == 'img') {
cancont=cans[0].src;
} else {
cancont=cans[0].toDataURL('image/png');
}
if (cancontw < 0 && canconth < 0) {
cancontw=cans[0].width;
canconth=cans[0].height;
}
}
} else if (thewords.indexOf('data:') == 0) {
setTimeout(function() { document.getElementById('topcanvas').title=initialtextmaybe((slideis == '' ? 'Colour Wheel' : slideis)); setInterval(topcwoop, 5000); }, 3000);
// Thanks to https://stackoverflow.com/questions/23104582/scaling-an-image-to-fit-on-canvas
setTimeout(function(){ document.getElementById('dwordimg').innerHTML='<img id=idwordimg style=display:none; src="' + thewords + '"></img>'; setTimeout(function(){
hRatio = document.getElementById('topcanvas').width / document.getElementById('idwordimg').width ;
vRatio = document.getElementById('topcanvas').height / document.getElementById('idwordimg').height ;
ratio = Math.min ( hRatio, vRatio );
document.getElementById('topcanvas').getContext('2d').drawImage(document.getElementById('idwordimg'),0,0, document.getElementById('idwordimg').width, document.getElementById('idwordimg').height, 0,0,document.getElementById('idwordimg').width*ratio, document.getElementById('idwordimg').height*ratio); }, 3000); }, 15500);
} else if (thewords.toLowerCase().replace('//www.rjmprogramming.com.au','http://www.rjmprogramming.com.au').replace('//rjmprogramming.com.au','http://rjmprogramming.com.au').replace(/^\/[a-z]/g,'http://www.rjmprogramming.com.au/').replace(/^\/[0-9]/g,'http://www.rjmprogramming.com.au/').indexOf('http') == 0) {
setTimeout(function() { document.getElementById('topcanvas').title=initialtextmaybe((slideis == '' ? 'Colour Wheel' : slideis)); setInterval(topcwoop, 5000); }, 3000);
// Thanks to https://stackoverflow.com/questions/23104582/scaling-an-image-to-fit-on-canvas
setTimeout(function(){ document.getElementById('dwordimg').innerHTML='<img id=idwordimg style=display:none; src="' + thewords + '"></img>'; setTimeout(function(){
hRatio = document.getElementById('topcanvas').width / document.getElementById('idwordimg').width ;
vRatio = document.getElementById('topcanvas').height / document.getElementById('idwordimg').height ;
ratio = Math.min ( hRatio, vRatio );
document.getElementById('topcanvas').getContext('2d').drawImage(document.getElementById('idwordimg'),0,0, document.getElementById('idwordimg').width, document.getElementById('idwordimg').height, 0,0,document.getElementById('idwordimg').width*ratio, document.getElementById('idwordimg').height*ratio); }, 3000); }, 15500);
}
if (sscoords != "") sscordsdelim=",";
if (('' + location.hash).indexOf('zoom=') != -1) { zfac=decodeURIComponent(('' + location.hash).split('zoom=')[1].split(';')[0]); }
//if (zfac != '') { document.head.innerHTML=' <style> html { zoom:' + zfac.replace(';','') + '; } </style> '; }
setTimeout(zoomlater, 5000);
var createCookie = function(name, value, days) { // thanks to https://stackoverflow.com/questions/4825683/how-do-i-create-and-read-a-value-from-cookie
var expires;
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toGMTString();
}
else {
expires = "";
}
if (localStorage && name != 'gameon') {
if (localStorage.getItem(name)) {
//document.title+=' remove ';
localStorage.removeItem(name);
}
//document.title+=' set ';
//alert(value);
localStorage.setItem(name, value);
} else {
document.cookie = name + "=" + value + expires + "; path=/";
}
}
function closeme() {
if (qwowo) {
if (!qwowo.closed) {
qwowo.close();
qwowo=null;
}
}
}
function placethistext() {
var mycon=document.getElementById('topcanvas').getContext('2d');
mycon.font = cf;
var huhs=thewords.split(String.fromCharCode(92) + 'n'), thisy=eval(8 + eval('' + cfsz));
//if (('' + cbcol) != 'white') {
// mycon.fillStyle='' + cbcol;
// mycon.fillRect(0,0,document.getElementById('topcanvas').width,document.getElementById('topcanvas').height);
//}
for (var ii=0; ii<huhs.length; ii++) {
mycon.font = cf;
mycon.strokeStyle='' + cfcol;
mycon.strokeText(huhs[ii],20,thisy);
thisy+=eval(8 + eval('' + cfsz));
}
}
function setstuffaroundbefore(towhat) {
if (spareprev != '') { towhat=spareprev; spareprev=''; }
prevsuff='' + towhat;
stuffaroundbefore=towhat;
}
function getstuffaroundbefore() {
return '' + stuffaroundbefore;
}
function getstuffaroundbeforeless() {
return '' + stuffaroundbefore.replace(/\ \+\ $/g,'').replace(/^\'/g,'').replace(/\'$/g,'');
}
function setstuffaroundafter(towhat) {
stuffaroundafter=towhat;
}
function getstuffaroundafter() {
return '' + stuffaroundafter;
}
function setareaplus(towhat) {
areaplus=towhat;
}
function getareaplus() {
return '' + areaplus;
}
function getstuffaroundafterless() {
return '' + stuffaroundafter.replace(/^\ \+\ /g,'').replace(/^\'/g,'').replace(/\'$/g,'');
}
function setdefevstuff(towhat) {
defevstuff=towhat;
}
function getdefevstuff() {
return '' + defevstuff;
}
function setiizero(towhat) {
iizero=towhat;
}
function getiizero() {
return '' + iizero;
}
function setpromptfor(towhat) {
promptfor=towhat;
document.getElementById('topdragstyle').setAttribute('data-promptfor', (towhat ? 'y' : 'n'));
}
function getpromptfor() {
return promptfor;
}
function setpromptjsfor(towhat) {
promptjsfor=towhat;
}
function getpromptjsfor() {
return promptjsfor;
}
function inciizero() {
defevstuff=defevstuff.replace('(' + iizero + '', '(' + eval(1 + iizero) + '').replace('(' + iizero + '', '(' + eval(1 + iizero) + '').replace('(' + iizero + '', '(' + eval(1 + iizero) + '').replace('(' + iizero + '', '(' + eval(1 + iizero) + '').replace('(' + iizero + '', '(' + eval(1 + iizero) + '').replace('(' + iizero + '', '(' + eval(1 + iizero) + '');
top.document.getElementById('topdragstyle').setAttribute('data-defev', '' + defevstuff);
iizero++;
return iizero;
}
function overview(inarea) {
var iijj=0;
var altoh='';
var dodce=false;
var evtypes=['onclick','onmouseover','onmouseout'];
var evdefnames=['onc','omo','oom'];
if (('' + inarea) != ('' + inarea).trim()) {
setpromptfor(false);
setpromptjsfor(false);
}
if (promptjsfor) {
var numparamargs=1;
var wsfname='omo';
var wsfparams='iind';
var newfname='omo';
var newfparams='iind';
for (var jjkk=0; jjkk<evtypes.length; jjkk++) {
wsfname=evdefnames[jjkk]; //'omo';
wsfparams='iind';
newfname=evdefnames[jjkk]; //'omo';
newfparams='iind';
if (('' + inarea).indexOf(' ' + evtypes[jjkk] + '="') != -1 && stuffaroundbefore.indexOf(' function ' + evdefnames[jjkk] + '(' + wsfparams + ')') != -1) {
newfname=('' + inarea).split(' ' + evtypes[jjkk] + '="')[1].split('(')[0].trim();
numparamargs=0;
if (('' + inarea).split(' ' + evtypes[jjkk] + '="')[1].split('(')[1].split(')')[0].trim() != '') {
numparamargs=eval('' + ('' + inarea).split(' ' + evtypes[jjkk] + '="')[1].split('(')[1].split(')')[0].split(',').length);
for (iijj=2; iijj<=numparamargs; iijj++) {
newfparams+=',' + 'paramarg' + iijj;
}
} else {
newfparams='';
}
if (newfname == wsfname && numparamargs == eval('' + wsfparams.split(',').length)) {
stuffaroundbefore=stuffaroundbefore;
} else if (newfname.indexOf(' ') == -1) {
stuffaroundbefore=stuffaroundbefore.replace(wsfname + '(' + wsfparams + ')', newfname + '(' + newfparams + ')'); //.replace(wsfname, newfname);
document.getElementById('toptd').innerHTML=document.getElementById('toptd').innerHTML.replace(encodeURIComponent('function ' + wsfname + '(' + wsfparams + ')'), encodeURIComponent('function ' + newfname + '(' + newfparams + ')')).replace('function ' + wsfname + '(' + wsfparams + ')', 'function ' + newfname + '(' + newfparams + ')');
document.getElementById('mytax').setAttribute('data-h',encodeURIComponent(getstuffaroundbefore().replace(/\'\ \+\ /g,'').replace(/\'/g,'')));
stuffaroundafter=stuffaroundafter.replace(encodeURIComponent(wsfname + '(' + wsfparams + ')'), encodeURIComponent(newfname + '(' + newfparams + ')'));
//dodce=true;
}
} else if (('' + inarea).indexOf(" " + evtypes[jjkk] + "='") != -1 && stuffaroundbefore.indexOf(' function ' + evdefnames[jjkk] + '(' + wsfparams + ')') != -1) {
newfname=('' + inarea).split(" " + evtypes[jjkk] + "='")[1].split('(')[0].trim();
numparamargs=0;
if (('' + inarea).split(" " + evtypes[jjkk] + "='")[1].split('(')[1].split(')')[0].trim() != '') {
numparamargs=eval('' + ('' + inarea).split(" " + evtypes[jjkk] + "='")[1].split('(')[1].split(')')[0].split(',').length);
for (iijj=2; iijj<=numparamargs; iijj++) {
newfparams+=',' + 'paramarg' + iijj;
}
} else {
newfparams='';
}
if (newfname == wsfname && numparamargs == eval('' + wsfparams.split(',').length)) {
stuffaroundbefore=stuffaroundbefore;
} else if (newfname.indexOf(' ') == -1) {
stuffaroundbefore=stuffaroundbefore.replace(wsfname + '(' + wsfparams + ')', newfname + '(' + newfparams + ')'); //.replace(wsfname, newfname);
document.getElementById('toptd').innerHTML=document.getElementById('toptd').innerHTML.replace(encodeURIComponent('function ' + wsfname + '(' + wsfparams + ')'), encodeURIComponent('function ' + newfname + '(' + newfparams + ')')).replace('function ' + wsfname + '(' + wsfparams + ')', 'function ' + newfname + '(' + newfparams + ')');
document.getElementById('mytax').setAttribute('data-h',encodeURIComponent(getstuffaroundbefore().replace(/\'\ \+\ /g,'').replace(/\'/g,'')));
stuffaroundafter=stuffaroundafter.replace(encodeURIComponent(wsfname + '(' + wsfparams + ')'), encodeURIComponent(newfname + '(' + newfparams + ')'));
//dodce=true;
}
} else if (('' + inarea).indexOf(" " + evtypes[jjkk] + "=") != -1 && stuffaroundbefore.indexOf(' function ' + evdefnames[jjkk] + '(' + wsfparams + ')') != -1) {
newfname=('' + inarea).split(" " + evtypes[jjkk] + "=")[1].split('(')[0].trim();
numparamargs=0;
if (('' + inarea).split(" " + evtypes[jjkk] + "=")[1].split('(')[1].split(')')[0].trim() != '') {
numparamargs=eval('' + ('' + inarea).split(" " + evtypes[jjkk] + "=")[1].split('(')[1].split(')')[0].split(',').length);
for (iijj=2; iijj<=numparamargs; iijj++) {
newfparams+=',' + 'paramarg' + iijj;
}
} else {
newfparams='';
}
if (newfname == wsfname && numparamargs == eval('' + wsfparams.split(',').length)) {
stuffaroundbefore=stuffaroundbefore;
} else if (newfname.indexOf(' ') == -1) {
stuffaroundbefore=stuffaroundbefore.replace(wsfname + '(' + wsfparams + ')', newfname + '(' + newfparams + ')'); //.replace(wsfname, newfname);
document.getElementById('toptd').innerHTML=document.getElementById('toptd').innerHTML.replace(encodeURIComponent('function ' + wsfname + '(' + wsfparams + ')'), encodeURIComponent('function ' + newfname + '(' + newfparams + ')')).replace('function ' + wsfname + '(' + wsfparams + ')', 'function ' + newfname + '(' + newfparams + ')');
document.getElementById('mytax').setAttribute('data-h',encodeURIComponent(getstuffaroundbefore().replace(/\'\ \+\ /g,'').replace(/\'/g,'')));
stuffaroundafter=stuffaroundafter.replace(encodeURIComponent(wsfname + '(' + wsfparams + ')'), encodeURIComponent(newfname + '(' + newfparams + ')'));
//dodce=true;
}
}
}
var tjis=stuffaroundbefore.split('text/javascript')[0] + 'text/javascript' + stuffaroundbefore.split('text/javascript')[1].split('>')[0] + '>';
var wasv=stuffaroundbefore.split(tjis)[1].split('</sc')[0].trim();
wasv=wasv.replace(wasv.split(' function ')[0], '');
var wwasv=wasv;
//if (wwasv.indexOf(' function woop(') != -1 && wwasv.indexOf('> var ') != -1) {
// wwasv=wasv.split('> var ')[0] + '> ' + wasv.split(wasv.split(' function ')[0])[1].split(' function woop(')[0] + String.fromCharCode(10) + ' var ' + wasv.split('> var ')[1].split(' function ')[0] + String.fromCharCode(10) + ' function woop(' + wasv.split(' function woop(')[1];
//}
var xstuffaroundbefore=prompt(wwasv.replace(/\ function\ /g, String.fromCharCode(10) + ' function ').replace(/\ \}/g, String.fromCharCode(10) + ' } ').replace(/^\'/g,'').replace(/\'$/g,''), wasv);
rubberbanding('crosshair', null);
//if (stuffaroundbefore == null) { stuffaroundbefore=wasv; } else if (wasv != stuffaroundbefore) { stuffaroundbefore="'" + stuffaroundbefore.substring(1).replace(/\'$/g,'').replace(/\'/g,"' + String.fromCharCode(39) + '") + "'"; spareprev=stuffaroundbefore; dodce=true; }
if (xstuffaroundbefore == null) {
stuffaroundbefore=stuffaroundbefore;
} else if (wasv != xstuffaroundbefore) {
spareprev=stuffaroundbefore.replace(wasv,xstuffaroundbefore);
setstuffaroundbefore(spareprev);
document.getElementById('toptd').innerHTML=document.getElementById('toptd').innerHTML.replace(encodeURIComponent(wasv),encodeURIComponent(xstuffaroundbefore)).replace(wasv.replace(/\</g,'<').replace(/\>/g,'>'),xstuffaroundbefore.replace(/\</g,'<').replace(/\>/g,'>'));
document.getElementById('mytax').setAttribute('data-h',encodeURIComponent(getstuffaroundbefore().replace(/\'\ \+\ /g,'').replace(/\'/g,'')));
stuffaroundafter=stuffaroundafter.replace(encodeURIComponent(wasv), encodeURIComponent(xstuffaroundbefore));
dodce=true;
}
}
if (('' + inarea).indexOf('null') == -1 && ('' + inarea).indexOf(' coords=') != -1) {
defevstuff=' ' + inarea.split(inarea.split(' coords=')[1].split(' ')[0])[1].split(' />')[0].split('/>')[0].replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'');
}
inciizero();
//if (dodce) { if (1 == 11) { refreshdce(); } else { setTimeout(refreshdce, 2000); } }
//alert('' + document.getElementById('mytax').ondblclick);
if (eval('' + rcpolyx.length) > 2 && inarea.indexOf('rect') != -1) {
var areaidea=inarea.replace('rect','poly');
var wasco=areaidea.split(' coords=')[1].split(' ')[0];
var isco='' + ('' + rcpolyx[0]).split('.')[0] + ',' + ('' + rcpolyy[0]).split('.')[0];
for (var ibn=1; ibn<rcpolyx.length; ibn++) {
isco+=',' + ('' + rcpolyx[ibn]).split('.')[0] + ',' + ('' + rcpolyy[ibn]).split('.')[0];
}
isco+=',' + ('' + rcpolyx[0]).split('.')[0] + ',' + ('' + rcpolyy[0]).split('.')[0];
areaidea=areaidea.replace(wasco, isco);
//document.title+=';;4;';
setTimeout(function(){
if (eval('' + rcpolyx.length) > 2) {
var txas=document.getElementsByTagName('textarea');
//alert(634);
var inidao=txas[eval(-1 + txas.length)];
//alert(6234);
inidao.style.left='' + Math.min(...rcpolyx) + 'px';
inidao.style.top='' + Math.min(...rcpolyy) + 'px';
inidao.style.width='' + eval(Math.max(...rcpolyx) - Math.min(...rcpolyx)) + 'px';
inidao.style.height='' + eval(Math.max(...rcpolyy) - Math.min(...rcpolyy)) + 'px';
altoh=inidao.outerHTML.replace(/textarea/g,'div').replace(' id=',' data-id=').replace(' style="',' style="opacity:0.1;');
document.getElementById('topcstyle').style.width='0px';
document.getElementById('topcstyle').style.height='0px';
document.getElementById('topcstyle').removeAttribute('data-rb');
document.getElementById('topcstyle').style.display='none';
if (document.getElementById('topcstyle').innerHTML.indexOf('<svg') != -1) {
if (2 == 2) {
//altoh=altoh.replace(' style="', ' style="background-image:url(' + 'data:image/svg+xml;base64,' + window.btoa(document.getElementById('topcstyle').innerHTML) + ');background-size:contain;pointer-events:none;background-repeat:no-repeat;');
altoh=altoh.replace('></div>', '>' + (document.getElementById('topcstyle').innerHTML) + '</div>');
document.getElementById('divtopcstyle').innerHTML+=altoh;
} else {
inidao.style.backgroundImage="url('" + 'data:image/svg+xml;utf8,' + (document.getElementById('topcstyle').innerHTML.replace(/\%/g,'')) + "')";
inidao.style.backgroundPosition='center'; //inidao.style.backgroundSize='contain';
inidao.style.backgroundRepeat='no-repeat';
}
}
document.getElementById('topcstyle').innerHTML='';
}
rcpolyx=[];
rcpolyy=[];
}, 4000);
return '' + areaidea;
}
return '' + inarea;
}
function maybepoly(areaidea) {
var altoh='';
// rectvscirclemode is 1 (just rect) , 0 (just circle) , 2 (circle after rect)
if (eval('' + rcpolyx.length) == 2 && eval('' + rcpolyy.length) == 1 && rectvscirclemode != 1) {
// circle and rect defined
} else if (eval('' + rcpolyx.length) > 2) {
areaidea=areaidea.replace('rect','poly');
var wasco=areaidea.split(' coords=')[1].split(' ')[0];
var isco='' + ('' + rcpolyx[0]).split('.')[0] + ',' + ('' + rcpolyy[0]).split('.')[0];
for (var ibn=1; ibn<rcpolyx.length; ibn++) {
isco+=',' + ('' + rcpolyx[ibn]).split('.')[0] + ',' + ('' + rcpolyy[ibn]).split('.')[0];
}
isco+=',' + ('' + rcpolyx[0]).split('.')[0] + ',' + ('' + rcpolyy[0]).split('.')[0];
areaidea=areaidea.replace(wasco, isco);
//document.title+=';;3;';
setTimeout(function(){
if (eval('' + rcpolyx.length) > 2) {
var txas=document.getElementsByTagName('textarea');
//alert(34);
var inidao=txas[eval(-1 + txas.length)];
//alert(234);
inidao.style.left='' + Math.min(...rcpolyx) + 'px';
inidao.style.top='' + Math.min(...rcpolyy) + 'px';
inidao.style.width='' + eval(Math.max(...rcpolyx) - Math.min(...rcpolyx)) + 'px';
inidao.style.height='' + eval(Math.max(...rcpolyy) - Math.min(...rcpolyy)) + 'px';
altoh=inidao.outerHTML.replace(/textarea/g,'div').replace(' id=',' data-id=').replace(' style="',' style="opacity:0.1;');
document.getElementById('topcstyle').style.width='0px';
document.getElementById('topcstyle').style.height='0px';
document.getElementById('topcstyle').removeAttribute('data-rb');
document.getElementById('topcstyle').style.display='none';
if (document.getElementById('topcstyle').innerHTML.indexOf('<svg') != -1) {
if (2 == 2) {
//altoh=altoh.replace(' style="', ' style="background-image:url(' + 'data:image/svg+xml;base64,' + window.btoa(document.getElementById('topcstyle').innerHTML) + ');background-size:contain;pointer-events:none;background-repeat:no-repeat;');
altoh=altoh.replace('></div>', '>' + (document.getElementById('topcstyle').innerHTML) + '</div>');
document.getElementById('divtopcstyle').innerHTML+=altoh;
} else {
inidao.style.backgroundImage="url('" + 'data:image/svg+xml;utf8,' + (document.getElementById('topcstyle').innerHTML.replace(/\%/g,'')) + "')";
inidao.style.backgroundPosition='center'; //inidao.style.backgroundSize='contain';
inidao.style.backgroundRepeat='no-repeat';
}
}
document.getElementById('topcstyle').innerHTML='';
}
rcpolyx=[];
rcpolyy=[];
}, 4000);
}
return areaidea;
}
function testthings() {
if (eval('' + rcpolyx.length) == 2) {
//alert(83456);
//document.title+=';83456';
rcpolyx=[rcpolyx[0]];
rcpolyy=[rcpolyy[0]];
//document.title+=';;5;';
eventtarget.setAttribute('data-lfdll','true');
document.body.style.cursor='crosshair';
eventtarget.style.cursor=rubberbanding('crosshair',evto);
}
}
function rcdepends(evt) {
if (eval('' + rcpolyx.length) <= 1) {
//alert(13456);
//document.title='13456';
var wasxis=eval('' + document.getElementById('topcstyle').getAttribute('data-x'));
var wasyis=eval('' + document.getElementById('topcstyle').getAttribute('data-y'));
//alert('' + wasxis + ',' + wasyis);
rcpolyx=[];
rcpolyy=[];
rcpolyx.push(eval('' + wasxis));
rcpolyx.push(eval('' + evt.clientX));
rcpolyy.push(eval('' + wasyis));
rcpolyy.push(eval('' + evt.clientY));
evto=evt;
eventtarget=evt.target;
setTimeout(testthings, 10000);
return false; // true;
} else if (eval('' + rcpolyx.length) >= 2) {
if (eval(Math.abs(evt.clientX - rcpolyx[0]) + Math.abs(evt.clientY - rcpolyy[0])) < 5) {
rcpolyx.push(rcpolyx[0]);
rcpolyy.push(rcpolyy[0]);
//alert(3456);
//document.title+=';3456';
evt.target.setAttribute('data-lfdll','true');
evt.target.click();
document.body.style.cursor='crosshair'; // crosshair
evt.target.style.cursor=rubberbanding('crosshair',null); // evt and crosshair
//evt.target.setAttribute('data-lfdll','false');
} else {
rcpolyx.push(eval('' + evt.clientX));
rcpolyy.push(eval('' + evt.clientY));
evt.target.setAttribute('data-lfdll','true');
document.body.style.cursor='context-menu'; //'pointer'; // crosshair
evt.target.style.cursor=rubberbanding('pointer',evt); // evt and crosshair
//document.title+=';73456.' + rcpolyx.length;
//alert(73456);
}
return false;
}
return true;
}
function refreshdce() {
var tjis=prevsuff.split('text/javascript')[0] + 'text/javascript' + prevsuff.split('text/javascript')[1].split('>')[0] + '>';
var psuffis=prevsuff.split(tjis)[1].split('</sc')[0].trim();
if (spareprev != '') { stuffaroundbefore=spareprev; }
tjis=stuffaroundbefore.split('text/javascript')[0] + 'text/javascript' + stuffaroundbefore.split('text/javascript')[1].split('>')[0] + '>';
var stuffbeforeis=stuffaroundbefore.split(tjis)[1].split('</sc')[0].trim();
var curdce='' + document.getElementById('mytax').ondblclick;
var pxval=document.getElementById('mytax').value;
//if (curdce.indexOf('function') == 0) { curdce=curdce.replace(/\;$/g,'').replace(/\}$/g,'').replace(curdce.split('{')[0] + '{',''); }
//if (document.getElementById('toptd').innerHTML.replace(/\<\;/g,'<').replace(/\>\;/g,'>').indexOf(prevsuff) != -1) { alert('ok'); } else { alert(document.getElementById('toptd').innerHTML); alert(prevsuff); }
if (1 == 1) {
//alert('psuffis end=' + psuffis.slice(-200));
//alert(document.getElementById('toptd').innerHTML);
//if (document.getElementById('toptd').innerHTML.indexOf(encodeURIComponent(psuffis.substring(0,200))) != -1) { alert(1); }
//if (document.getElementById('toptd').innerHTML.indexOf(encodeURIComponent(psuffis.substring(0,200).replace(/\</g,'<').replace(/\>/g,'>'))) != -1) { alert(11); }
//if (document.getElementById('toptd').innerHTML.indexOf((psuffis.substring(0,200))) != -1) { alert(111); }
//if (document.getElementById('toptd').innerHTML.indexOf((psuffis.substring(0,200).replace(/\</g,'<').replace(/\>/g,'>'))) != -1) { alert(1111); }
//alert(stuffaroundbefore.replace(stuffaroundbefore.split('function ')[0],''));
document.getElementById('toptd').innerHTML=document.getElementById('toptd').innerHTML.replace(encodeURIComponent(psuffis),encodeURIComponent(stuffbeforeis)).replace(psuffis.replace(/\</g,'<').replace(/\>/g,'>'),stuffbeforeis.replace(/\</g,'<').replace(/\>/g,'>'));
} else {
document.getElementById('mytax').ondblclick=function(event) { eval(curdce.replace(prevsuff,stuffaroundbefore)); };
}
document.getElementById('mytax').value='' + pxval;
//prevsuff=stuffaroundbefore;
}
function reviewit(inid) {
return stuffaroundbefore + 'event.target.value' + stuffaroundafter;
}
function ourfillrect() {
document.getElementById('topcanvas').getContext('2d').fillStyle='' + cbcol;
document.getElementById('topcanvas').getContext('2d').fillRect(0,0,document.getElementById('topcanvas').width,document.getElementById('topcanvas').height);
}
function initialtextmaybe(inslidename) {
//useyourwords='&thewords=' + encodeURIComponent(dtval) + '&cbcol=' + encodeURIComponent(cbcol) + '&cfcol=' + encodeURIComponent(cfcol) + '&cffam=' + encodeURIComponent(cffam) + '&cfsz=' + encodeURIComponent(cfsz);
if (thewords.trim() != '') {
if (thewords.indexOf('data:') == 0) {
document.getElementById('dwordimg').innerHTML='<img id=idwordimg style=display:none; src="' + thewords + '"></img>';
setTimeout(function(){ document.getElementById('topcanvas').getContext('2d').drawImage(document.getElementById('idwordimg'),0,0); }, 5500);
} else {
cf = "" + cfsz + "px " + cffam;
if (('' + cbcol) != 'white') {
setTimeout(ourfillrect, 4000);
}
setTimeout(placethistext, 5000);
}
}
return inslidename;
}
function imagestraight(topoel, actual_cover_contain_o) {
//alert('More work for ' + actual_cover_contain_o.value);
lastacc=actual_cover_contain_o.value;
actual_cover_contain_o.setAttribute('data-lastacc', lastacc);
//alert(lastacc);
if (actual_cover_contain_o.value.substring(1) == actual_cover_contain_o.value.substring(1).toUpperCase()) {
actual_cover_contain_o.value='im';
} else if (actual_cover_contain_o.value.substring(1) == actual_cover_contain_o.value.substring(1).toLowerCase()) {
actual_cover_contain_o.value='ib';
}
if (lastacc == 'Contain' && !advicegiven) { // Postcard advice blurb
advicegiven=true;
if ((parent.document.getElementById('shareurl') || top.document.getElementById('shareurl') || document.getElementById('shareurl')) && top.document.URL.indexOf('https:') == 0) {
safariblurb=' (as textbox below goes yellow, click email sender button to its left for easier usage)';
setTimeout(checkonyellow, 3000);
}
if (1 == 6 && parent.document.getElementById('myta')) {
if (parent.document.getElementById('myta').value == '') {
parent.document.getElementById('myta').value='Postcard via smart device Camera advice ...' + String.fromCharCode(10) + String.fromCharCode(10) + '1. Touch browsing Choose File button that has just appeared.' + String.fromCharCode(10) + '2. Choose to Take Photo.' + String.fromCharCode(10) + '3. Consider any zooming in or selfie modes of use in Photo mode.' + String.fromCharCode(10) + '4. Take photo with Camera app white button, choosing Use Photo or Retake, as required.' + String.fromCharCode(10) + '5. Scribble any optional messaging in white area to right, or use other discreet touch functionalities.' + String.fromCharCode(10) + '6. Optionally email off to recipient' + safariblurb + '.' + String.fromCharCode(10);
}
} else if (8 == 9 && document.getElementById('myta')) {
document.getElementById('myta').value='Postcard via smart device Camera advice ...' + String.fromCharCode(10) + String.fromCharCode(10) + '1. Touch browsing Choose File button that has just appeared.' + String.fromCharCode(10) + '2. Choose to Take Photo.' + String.fromCharCode(10) + '3. Consider any zooming in or selfie modes of use in Photo mode.' + String.fromCharCode(10) + '4. Take photo with Camera app white button, choosing Use Photo or Retake, as required.' + String.fromCharCode(10) + '5. Scribble any optional messaging in white area to right, or use other discreet touch functionalities.' + String.fromCharCode(10) + '6. Optionally email off to recipient' + safariblurb + '.' + String.fromCharCode(10);
} else if (parent.document.URL.indexOf('postcard=y') != -1 && parent.document.getElementById('mode')) {
setTimeout(function() { if (safariblurb == '') { safariblurb=' (as textbox below goes yellow, click email sender button to its left for easier usage)'; setTimeout(checkonyellow, 3000); } parent.document.getElementById('mode').innerHTML=('Postcard via smart device Camera advice ...<br><br>1. Touch browsing Choose File button that has just appeared.<br>2. Choose to Take Photo.<br>3. Consider any zooming in or selfie modes of use in Photo mode.<br>4. Take photo with Camera app white button, choosing Use Photo or Retake, as required.<br>5. Scribble any optional messaging in white area to right, or use other discreet touch functionalities.<br>6. Optionally email off to recipient' + safariblurb + '.<br>'); setTimeout(clearmode, 20000); }, 7000);
} else {
setTimeout(function() { alert('Postcard via smart device Camera advice ...' + String.fromCharCode(10) + String.fromCharCode(10) + '1. Touch browsing Choose File button that has just appeared.' + String.fromCharCode(10) + '2. Choose to Take Photo.' + String.fromCharCode(10) + '3. Consider any zooming in or selfie modes of use in Photo mode.' + String.fromCharCode(10) + '4. Take photo with Camera app white button, choosing Use Photo or Retake, as required.' + String.fromCharCode(10) + '5. Scribble any optional messaging in white area to right, or use other discreet touch functionalities.' + String.fromCharCode(10) + '6. Optionally email off to recipient' + safariblurb + '.' + String.fromCharCode(10)); }, 7000);
}
}
}
function setsdisabled(tow) {
sdisabled='' + tow;
}
function getsdisabled() {
return sdisabled;
}
function setoncontextmenu(tow) {
rceventame='' + tow;
}
function getoncontextmenu() {
return rceventame;
}
function settitleprefix(tow) {
titleprefix='' + tow;
}
function gettitleprefix() {
return titleprefix;
}
function rubberbanding(crossvspoint,evt) {
var anxyx=0, anxyy=0, zlastfrom='youllneverfindthis', zlastto='youllneverfindthis';
if (eval('' + rcpolyx.length) > 2) { // && crossvspoint == 'pointer') {
//anxyx=eval('' + evt.clientX);
//anxyy=eval('' + evt.clientY);
//var wasxis=eval('' + document.getElementById('topcstyle').getAttribute('data-x'));
//var wasyis=eval('' + document.getElementById('topcstyle').getAttribute('data-y'));
var ourminx=Math.min(...rcpolyx);
var ourminy=Math.min(...rcpolyy);
var svgisis='<svg xmlns="http://w3.org" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet"><polyline points="" /></svg>';
document.getElementById('topcstyle').style.left='' + eval(1 + Math.min(...rcpolyx)) + 'px';
document.getElementById('topcstyle').style.top='' + eval(1 + Math.min(...rcpolyy)) + 'px';
document.getElementById('topcstyle').style.width='' + eval(-2 + Math.abs(Math.max(...rcpolyx) - Math.min(...rcpolyx))) + 'px';
document.getElementById('topcstyle').style.height='' + eval(-2 + Math.abs(Math.max(...rcpolyy) - Math.min(...rcpolyy))) + 'px';
//document.getElementById('topcstyle').style.zIndex='-999';
for (var ipo=1; ipo<rcpolyx.length; ipo++) {
if (svgisis.indexOf('""') != -1) {
svgisis=svgisis.replace('""', '"' + eval(eval('' + rcpolyx[eval(-1 + ipo)]) - ourminx) + "," + eval(eval('' + rcpolyy[eval(-1 + ipo)]) - ourminy) + "," + eval(eval('' + rcpolyx[eval(0 + ipo)]) - ourminx) + "," + eval(eval('' + rcpolyy[eval(0 + ipo)]) - ourminy) + '"');
} else if (svgisis.indexOf('" /></svg>') != -1) {
svgisis=svgisis.replace('" /></svg>', '' + "," + eval(eval('' + rcpolyx[eval(0 + ipo)]) - ourminx) + "," + eval(eval('' + rcpolyy[eval(0 + ipo)]) - ourminy) + '" /></svg>');
zlastfrom='" /></svg>';
zlastto='' + "," + eval(eval('' + rcpolyx[0]) - ourminx) + "," + eval(eval('' + rcpolyy[0]) - ourminy) + '" /></svg>'
} else {
svgisis=svgisis.replace("</svg>", "<line x1=\"" + eval(eval('' + rcpolyx[eval(-1 + ipo)]) - ourminx) + "\" y1=\"" + eval(eval('' + rcpolyy[eval(-1 + ipo)]) - ourminy) + "\" x2=\"" + eval(eval('' + rcpolyx[eval(0 + ipo)]) - ourminx) + "\" y2=\"" + eval(eval('' + rcpolyy[eval(0 + ipo)]) - ourminy) + "\" vector-effect=\"non-scaling-stroke\" stroke=\"black\" /></svg>");
}
}
svgisis=svgisis.replace(zlastfrom,zlastto);
if (svgisis != lastsvgisis) {
document.getElementById('topcstyle').innerHTML=svgisis;
lastsvgisis=svgisis;
//alert(svgisis);
}
if (crossvspoint == 'crosshair' && 4 == 5) {
document.getElementById('topcstyle').style.width='0px';
document.getElementById('topcstyle').style.height='0px';
document.getElementById('topcstyle').removeAttribute('data-rb');
document.getElementById('topcstyle').style.display='none';
document.getElementById('topcstyle').innerHTML='';
if (!evt) {
document.getElementById('mytax').scrollTop=document.getElementById('mytax').scrollHeight;
}
}
if (!evt && document.getElementById('mytax') && ('' + document.getElementById('mytax').value).indexOf('data:image/') != -1) {
document.getElementById('mytax').scrollTop=document.getElementById('mytax').scrollHeight;
}
return 'context-menu';
} else if (crossvspoint == 'pointer') {
anxyx=eval('' + evt.clientX);
anxyy=eval('' + evt.clientY);
document.getElementById('topcstyle').style.position='absolute';
document.getElementById('topcstyle').style.opacity='0.6';
document.getElementById('topcstyle').style.zIndex='999';
document.getElementById('topcstyle').style.backgroundColor='rgba(255,0,0,0.5)';
document.getElementById('topcstyle').style.left='' + anxyx + 'px';
document.getElementById('topcstyle').style.top='' + anxyy + 'px';
document.getElementById('topcstyle').style.width='1px';
document.getElementById('topcstyle').style.height='1px';
document.getElementById('topcstyle').style.display='block';
document.getElementById('topcstyle').setAttribute('data-x', '' + anxyx);
document.getElementById('topcstyle').setAttribute('data-y', '' + anxyy);
document.getElementById('topcstyle').setAttribute('data-rb', 'y');
document.getElementById('topcstyle').innerHTML='';
if (eval('' + rcpolyx.length) >= 2) {
return 'context-menu';
}
} else if (crossvspoint == 'crosshair') {
document.getElementById('topcstyle').style.width='0px';
document.getElementById('topcstyle').style.height='0px';
document.getElementById('topcstyle').removeAttribute('data-rb');
document.getElementById('topcstyle').style.display='none';
document.getElementById('topcstyle').innerHTML='';
if (!evt) {
document.getElementById('mytax').scrollTop=document.getElementById('mytax').scrollHeight;
}
//rcpolyx=[];
//rcpolyy=[];
} else if (('' + document.getElementById('topcstyle').getAttribute('data-rb')) == 'y') {
anxyx=eval('' + evt.clientX);
anxyy=eval('' + evt.clientY);
var wasxis=eval('' + document.getElementById('topcstyle').getAttribute('data-x'));
var wasyis=eval('' + document.getElementById('topcstyle').getAttribute('data-y'));
document.getElementById('topcstyle').style.left='' + eval(1 + Math.min(wasxis,anxyx)) + 'px';
document.getElementById('topcstyle').style.top='' + eval(1 + Math.min(wasyis,anxyy)) + 'px';
document.getElementById('topcstyle').style.width='' + eval(-2 + Math.abs(Math.max(wasxis,anxyx) - Math.min(wasxis,anxyx))) + 'px';
document.getElementById('topcstyle').style.height='' + eval(-2 + Math.abs(Math.max(wasyis,anxyy) - Math.min(wasyis,anxyy))) + 'px';
}
return crossvspoint;
}
function tassessixy(evt) {
var anxyx=eval('' + evt.clientX);
var anxyy=eval('' + evt.clientY);
if (lfdll) {
lastxyxll=anxyx;
lastxyyll=anxyy;
lfdll=false;
if (eval('' + rcpolyx.length) > 2) {
top.document.body.style.cursor='context-menu';
top.document.getElementById('topimage').style.cursor='context-menu';
} else {
top.document.body.style.cursor='pointer';
top.document.getElementById('topimage').style.cursor='pointer';
}
top.document.title='top right';
} else {
lastxyxtr=anxyx;
lastxyytr=anxyy;
lfdll=true;
iirectcnt++;
//alert(cantacont);
cantacont=cantacont.replace('<area shape="default" nohref alt="" /></map>', '<area shape="rect" alt="Rectangle ' + iirectcnt + '" title="Rectangle ' + iirectcnt + ' title" coords="' + Math.min(lastxyxll,lastxyxtr) + ',' + Math.min(lastxyyll,lastxyytr) + ',' + Math.max(lastxyxll,lastxyxtr) + ',' + Math.max(lastxyyll,lastxyytr) + '" href="#" onclick="" onmouseover="" onmouseout="" /><area shape="default" nohref alt="" /></map>');
//alert(cantacont);
top.document.getElementById('toptd').innerHTML='<textarea onclick="document.getElementById(' + "'toptd'" + ').opacity=' + "'0.7'" + ';" style=width:100%;height:800px;>' + cantacont + '</textarea>';
top.document.body.style.cursor='crosshair';
top.document.getElementById('topimage').style.cursor='crosshair';
}
}
function zoomlater() {
if (zfac != '') { document.head.innerHTML=' <style> html { zoom:' + zfac.replace(';','') + '; } </style> '; }
}
function getCookie(c_name) { // https://stackoverflow.com/questions/4825683/how-do-i-create-and-read-a-value-from-cookie
if (localStorage && localStorage.getItem(c_name) && c_name != 'gameon') { // thanks to https://www.w3schools.com/html/html5_webstorage.asp
//alert(2);
//document.title+=' get ';
//alert(localStorage.getItem(c_name));
return unescape(localStorage.getItem(c_name));
} else if (document.cookie.length > 0) {
//alert(12);
var c_start = document.cookie.indexOf(c_name + "=");
if (c_start != -1) {
c_start = c_start + c_name.length + 1;
var c_end = document.cookie.indexOf(";", c_start);
if (c_end == -1) {
c_end = document.cookie.length;
}
return unescape(document.cookie.substring(c_start, c_end));
}
}
return null; //"";
}
function topcwoop() {
var thiswoopj=document.getElementById('topcanvas').toDataURL('data/jpeg', 10);
if (thiswoopj != lastwoopj) {
lastwoopj=thiswoopj;
document.getElementById('topcanvas').style.cursor='progress';
woop.document.getElementById(slideis).value=lastwoopj;
setTimeout(function(){ document.getElementById('topcanvas').style.cursor='pointer'; }, 2000);
}
}
function check_for_supervision() {
return false;
// Check if being supervised by Socket.IO Node.js Whiteboard web application ...
if (getCookie('gameon') != null) {
if (getCookie('gameon').substring(0,1) != 'n') { // there are potentially collaborating players
document.body.style.backgroundColor='magenta';
if (document.getElementById('rchallenge')) {
document.getElementById('rchallenge').style.display='block';
//document.getElementById('ichallenge').style.display='block';
}
setTimeout(check_for_supervision, 3000);
return true;
} else { // but we are the only players
document.body.style.backgroundColor='cyan';
if (document.getElementById('rchallenge')) {
document.getElementById('rchallenge').style.display='none';
//document.getElementById('ichallenge').style.display='none';
}
setTimeout(check_for_supervision, 3000);
return true;
}
} else if (parent.document.getElementById('gameon')) {
if (parent.document.getElementById('gameon').value == '') { // but we are the only players
document.body.style.backgroundColor='cyan';
if (document.getElementById('rchallenge')) {
document.getElementById('rchallenge').style.display='none';
//document.getElementById('ichallenge').style.display='none';
}
setTimeout(check_for_supervision, 3000);
return true;
} else { // there are potentially collaborating players
document.body.style.backgroundColor='magenta';
if (document.getElementById('rchallenge')) {
document.getElementById('rchallenge').style.display='block';
//document.getElementById('ichallenge').style.display='block';
}
setTimeout(check_for_supervision, 3000);
return true;
}
} else {
document.body.style.backgroundColor='olive';
}
return false;
}
window.onload = (function() {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
var hh = today.getHours();
var minm = today.getMinutes(); //January is 0!
var ss = today.getSeconds();
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
hh=hh;
}
ie = (function(){ // thanks to http://stackoverflow.com/questions/5574842/best-way-to-check-for-ie-less-than-9-in-javascript-without-library
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
);
return v > 4 ? v : undef;
}());
elem = document.getElementById('topcanvas');
context = elem.getContext("2d");
//context.drawImage(img,0,0);
elemLeft = elem.offsetLeft;
elemTop = elem.offsetTop;
if (1 == 1) {
setTimeout(rhuhf, 1000);
} else {
var rhuh=document.getElementById('rform');
if (rhuh != null) {
if (document.getElementById('rform').innerHTML.indexOf('rchallenge') != -1) rhuh=null;
}
if (check_for_supervision() || rhuh) {
document.getElementById('rform').innerHTML+="<br><input onclick='sendchallenge(this.id);' id='rchallenge' name='rchallenge' align='center' type='button' value='Share'></input>";
//document.getElementById('iform').innerHTML+="<br><input onclick='sendchallenge(this.id);' id='ichallenge' name='ichallenge' align='center' type='button' value='Challenge'></input>";
}
}
});
function pduris(tvi) {
if (parent.document.getElementById('pduration')) {
parent.document.getElementById('pduration').value=tvi;
} else if (document.getElementById('pduration')) {
document.getElementById('pduration').value=tvi;
}
}
function newslide() {
if (parent.document.getElementById('danimation')) {
parent.document.getElementById('pcoords').value+='|';
parent.document.getElementById('pcircle').value+='|';
if (parent.document.getElementById('danimation').innerHTML.indexOf('duration') == -1) {
parent.document.getElementById('danimation').innerHTML+=' Seconds: <input onchange=pduris(this.value); onblur=pduris(this.value); type=number step=0.01 min=0.01 id=nduration value="0.5"></input>';
}
} else if (document.getElementById('danimation')) {
document.getElementById('pcoords').value+='|';
document.getElementById('pcircle').value+='|';
if (document.getElementById('danimation').innerHTML.indexOf('duration') == -1) {
document.getElementById('danimation').innerHTML+=' Seconds: <input onchange=pduris(this.value); onblur=pduris(this.value); type=number step=0.01 min=0.01 id=nduration value="0.50"></input>';
}
}
if (parent.document.getElementById('mypform')) {
if (parent.document.getElementById('mypform').innerHTML.indexOf('duration') == -1) {
parent.document.getElementById('mypform').innerHTML+='<input type=hidden id=pduration name=duration value="0.5"></input>';
}
} else if (document.getElementById('mypform')) {
if (document.getElementById('mypform').innerHTML.indexOf('duration') == -1) {
document.getElementById('mypform').innerHTML+='<input type=hidden id=pduration name=duration value="0.5"></input>';
}
}
}
function rhuhf() {
var rhuh=document.getElementById('rform');
if (rhuh != null) {
//alert('rhuh != null');
if (document.getElementById('rform').innerHTML.indexOf('rchallenge') != -1) {
rhuh=null;
//alert('rhuh = null');
}
}
if (check_for_supervision() || rhuh) {
//alert('rhuh');
document.getElementById('rform').innerHTML+="<br><input onclick='sendchallenge(this.id);' id='rchallenge' name='rchallenge' align='center' type='button' value='Share'></input>";
//document.getElementById('iform').innerHTML+="<br><input onclick='sendchallenge(this.id);' id='ichallenge' name='ichallenge' align='center' type='button' value='Challenge'></input>";
}
}
function fixtopiframe() {
if (document.URL.indexOf('?') != -1 && document.URL.indexOf('?fcol=') == -1) {
//top.document.title=('x:' + document.getElementById('topiframe').src);
if (document.URL.indexOf('imagemap=url#data') == -1 && document.URL.indexOf('imagemap=url#') != -1) {
document.getElementById('topiframe').src=document.getElementById('topiframe').src.split('#')[0] + '?' + document.URL.split('?')[1] + '?randn=' + Math.floor(Math.random() * 456789);
} else if (document.getElementById('topiframe').src.indexOf('?') == -1) {
document.getElementById('topiframe').src=document.getElementById('topiframe').src.split('#')[0] + '?' + document.URL.split('?')[1] + '&randn=' + Math.floor(Math.random() * 456789);
} else {
var intm=document.getElementById('topiframe').src.split('#')[0] + '&' + document.URL.split('?')[1] + '&randn=' + Math.floor(Math.random() * 456789);
if (intm.indexOf('?') == -1 && intm.indexOf('&') != -1) { intm=intm.replace('&','?'); }
if (intm.indexOf('data') != -1) { intm=intm.split('&randn=')[0]; }
document.getElementById('topiframe').src=intm;
}
//alert( document.getElementById('topiframe').src);
}
//alert('67 ' + document.getElementById('topiframe').src + ' ... ' + elem);
setTimeout(function(){
if (elem) {
if (eval('' + dzslides.length) == 0) {
dzslides.push(elem.toDataURL());
}
} else if (document.getElementById('topcanvas')) {
if (eval('' + dzslides.length) == 0) {
dzslides.push(document.getElementById('topcanvas').toDataURL());
}
}
}, 2000);
}
function s_s_o(iois) {
if (iois != null) {
ssois = (iois.contentWindow || iois.contentDocument);
if (ssois.rezeroalt) {
top.ssois=ssois;
}
if (ssois != null) {
if (ssois.document) { ssois = ssois.document; }
if (ssois.rezeroalt) {
top.ssois=ssois;
}
//alert('xjhgf');
}
}
}
function setlhifto(what) {
if (('' + what).replace('#','').trim() != '') {
lhif=what.trim();
}
}
function fcollook() {
var pref='';
var locationhash=('' + location.hash);
var hsd='#', iij=0;
if (parent.document.getElementById('hidecol')) {
pref=parent.document.getElementById('hidecol').value;
if (pref.trim() != '' && lhif.trim() == '') { lhif=pref; document.getElementById('colcf').value=pref; parent.document.getElementById('hidecol').value=''; lhif=' '; }
}
if (lhif.trim() != '') {
if (eval('' + lhif.trim().replace(/^\#/g,'').length) == 6) {
for (iij=0; iij<lhif.trim().toLowerCase().replace(/^\#/g,'').length; iij++) {
if (lhif.trim().toLowerCase().replace(/^\#/g,'').substring(iij).substring(0,1) > 'f') { hsd=''; }
}
locationhash='#fcol=' + encodeURIComponent(hsd + lhif.trim().replace(/^\#/g,''));
} else {
locationhash='#fcol=' + encodeURIComponent('' + lhif.trim().replace(/^\#/g,''));
}
lhif=' ';
}
if (('' + locationhash).indexOf('fcol=') != -1 && ('' + locationhash.replace(/\#$/g, '&') + '&').indexOf('fcol=&') == -1) {
hsd='#';
if (document.getElementById('colcf')) {
var lhis=decodeURIComponent(('' + locationhash).split('fcol=')[1]).toLowerCase(); //.replace(/^\#/g,'')
if (document.getElementById('colcf').value.replace('#','').toLowerCase() != lhis.replace(/^\#/g,'').split('&')[0].split('#')[0]) {
//alert(lhis + ' ... ' + lhis.replace(/^\#/g,'').split('&')[0].split('#')[0]);
if (eval('' + lhis.replace(/^\#/g,'').split('&')[0].split('#')[0].length) == 6 || (lhis + ' ').substring(0,1) == '#') {
for (iij=0; iij<lhis.replace(/^\#/g,'').split('&')[0].split('#')[0].trim().toLowerCase().length; iij++) {
if (lhis.replace(/^\#/g,'').split('&')[0].split('#')[0].trim().toLowerCase().substring(iij).substring(0,1) > 'f') { hsd=''; }
}
document.getElementById('colcf').value=hsd + lhis.replace(/^\#/g,'').split('&')[0].split('#')[0];
} else if (lhis.split('&')[0].split('#')[0].replace('#','').trim() != '') {
document.getElementById('colcf').value='' + lhis.split('&')[0].split('#')[0];
}
}
}
}
}
function cancontlook() {
if (lhif == '' && ('' + location.search + location.hash).indexOf('fcol=') != -1) {
setInterval(fcollook, 5000);
}
lhif=lhif.trim() + ' ';
if (cancont != '') { // called via SVG - IMG - CANVAS
celem=document.getElementById('topcanvas');
ccontext = celem.getContext("2d");
celem.width=cancontw;
celem.height=canconth;
cimg=new Image;
//console.log('cancontw,canconth=' + cancontw + ',' + canconth + ' cancont=' + cancont);
cimg.onload = function(){
ccontext.drawImage(cimg,0,0);
};
cimg.src=cancont;
if (document.getElementById('toptd')) {
document.getElementById('toptd').style.left='' + cancontw + 'px';
var recttoptd=document.getElementById('toptd').getBoundingClientRect();
document.getElementById('topcbutton').innerHTML='⬅';
document.getElementById('topcbutton').style.position='fixed';
document.getElementById('topcbutton').style.top='' + recttoptd.top + 'px';
//document.getElementById('topcbutton').style.left='' + recttoptd.left + 'px';
document.getElementById('topcbutton').style.left='' + eval(0.98 * eval('' + screen.width)) + 'px';
document.getElementById('topcbutton').style.zIndex='89';
document.getElementById('topcbutton').title='Back to SVG - IMG - CANVAS web application caller';
//document.getElementById('topcbutton').onclick=function() { window.opener.focus(); };
}
if (document.getElementById('toppixellate')) {
document.getElementById('toppixellate').style.top='' + canconth + 'px';
}
if (('' + location.hash).replace(/^\#/g,'') != '') {
document.getElementById('topcstyle').innerHTML='<style> #topcanvas { ' + decodeURIComponent(('' + location.hash)).replace(/^\#/g,'') + ' } </style>';
document.body.style.backgroundColor='transparent';
}
}
}
function iysh() {
if (document.getElementById('topcbutton').innerHTML.indexOf(' ') != -1) {
document.getElementById('topcbutton').innerHTML=document.getElementById('topcbutton').innerHTML.replace(' ','');
alert('Please do this manually');
}
}
function woff() {
document.getElementById('topcbutton').innerHTML+=' ';
setTimeout(iysh, 2000);
window.opener.focus();
}
function dragstart(ev) {
lastelem=ev.target;
if (('' + ev.target.outerHTML).indexOf('<textarea') == 0) {
ev.dataTransfer.setData("text/plain", ev.target.value);
} else {
ev.dataTransfer.setData("text/plain", document.getElementById('topcanvas').toDataURL());
}
}
function dragover(ev) {
ev.preventDefault();
}
function drop(ev) {
var prefixingih='', mtdone=false, opsty='', htmlis='';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) {
if (lastelem == null) { lastelem=document.getElementById('topcanvas'); }
if (('' + lastelem.outerHTML).indexOf('<textarea') == 0) {
lastdrop=lastelem.value;
lastelem=null;
while (lastdrop.indexOf(String.fromCharCode(10)) != -1) {
lastdrop=lastdrop.replace(String.fromCharCode(10),'<br>');
}
prefixingih='<span style=background-color:white;>' + lastdrop + '</span><br><br>';
opsty=' style="opacity:0.3;" ';
lastdrop=dzslides[0];
document.getElementById('target').innerHTML = dzslides[0];
if (document.getElementById('tarbut')) {
mtdone=true;
document.getElementById('tarbut').style.marginTop='0px';
}
} else {
document.getElementById('target').innerHTML = document.getElementById('topcanvas').toDataURL();
lastdrop=document.getElementById('target').innerHTML;
if (document.getElementById('tarbut')) {
mtdone=true;
document.getElementById('tarbut').style.marginTop=wasmt;
}
}
} else {
if (('' + lastelem.outerHTML).indexOf('<textarea') == 0) {
lastdrop=lastelem.value;
lastelem=null;
while (lastdrop.indexOf(String.fromCharCode(10)) != -1) {
lastdrop=lastdrop.replace(String.fromCharCode(10),'<br>');
}
prefixingih='<span style=background-color:white;>' + lastdrop + '</span><br><br>';
opsty=' style="opacity:0.3;" ';
lastdrop=dzslides[0];
document.getElementById('target').innerHTML = dzslides[0];
if (document.getElementById('tarbut')) {
mtdone=true;
document.getElementById('tarbut').style.marginTop='0px';
}
} else {
ev.target.innerHTML = ev.dataTransfer.getData("text");
lastdrop=ev.target.innerHTML;
if (document.getElementById('tarbut')) {
mtdone=true;
document.getElementById('tarbut').style.marginTop=wasmt;
}
}
}
document.getElementById('topcanvas').setAttribute('draggable','false');
document.getElementById('target').innerHTML=prefixingih + '<button ' + opsty + ' id=tarbut ontouchmove=\"dzoreopen=true;\" oncontextmenu=\"dzoreopen=true;\" onclick=\" event.stopPropagation(); if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) { drop(document.getElementById(' + "'target'" + ')); } else { document.getElementById(' + "'topcanvas').setAttribute('draggable','true'); document.getElementById('target').innerHTML=''; if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || eval(String.fromCharCode(32).trim() + navigator.maxTouchPoints) > 0) { document.getElementById('starbut').style.zIndex='50'; } else { document.getElementById('starbut').style.marginTop='-50px'; document.getElementById('starbut').style.zIndex='-50'; } document.getElementById('starbut').innerHTML='" + dz + "'" + '; } \">' + dz + ' for Canvas After Click</button>';
if (document.getElementById('tarbut') && !mtdone) {
mtdone=true;
if (prefixingih != '') {
document.getElementById('tarbut').style.marginTop='0px';
} else {
document.getElementById('tarbut').style.marginTop=wasmt;
}
}
document.getElementById('starbut').innerHTML='';
var rectis=document.getElementById('target').getBoundingClientRect();
if (document.getElementById('mydbut')) {
rectis=document.getElementById('mydbut').getBoundingClientRect();
} else if (document.getElementById('tarbut')) {
rectis=document.getElementById('tarbut').getBoundingClientRect();
}
document.getElementById('target').setAttribute('data-mt','' + eval(-30 + eval('' + rectis.width)));
document.getElementById('target').style.backgroundColor='white';
document.getElementById('target').style.height='' + rectis.width + 'px';
document.getElementById('target').style.backgroundImage='url(' + lastdrop + ')';
if (agconto) {
//alert('3 ' + agidis);
agconto.getElementById(agidis).focus();
agconto.getElementById(agidis).value=lastdrop;
//alert(56);
//iois.maybemore(lastdrop, 'slideshow' + agiscnt, agconto.getElementById(agidis));
agconto.getElementById(agidis).blur();
//alert(256);
agiscnt++;
//alert('2:' + agiscnt);
agidis='slideshow' + agiscnt;
//agconto.getElementById(agidis).focus();
if (lhif == '') { window.scrollTo(0,0); }
//setTimeout(function() { agconto.getElementById(agidis).focus(); }, 6000);
}
document.getElementById('target').style.backgroundSize='contain';
document.getElementById('target').style.backgroundRepeat='no-repeat';
if (document.getElementById('topdragstyle').innerHTML == '' && prefixingih == '') {
wasmt='' + eval(-30 + eval('' + rectis.width)) + 'px';
document.getElementById('tarbut').style.marginTop=wasmt;
//var rectistb=document.getElementById('tarbut').getBoundingClientRect();
//document.getElementById('topdragstyle').innerHTML='<style> #tarbut { position:absolute; left:' + rectistb.left + 'px; top:' + eval(eval(0 * eval(-30 + eval('' + rectis.width))) + eval('' + rectistb.top)) + 'px; margin-top:0px !important; } </style>';
}
if (document.getElementById('tarbut')) {
dzslides.push(document.getElementById('target').outerHTML.replace(document.getElementById('tarbut').outerHTML,''));
} else {
dzslides.push(document.getElementById('target').outerHTML);
}
if (eval('' + dzslides.length) > 2) {
//var htmlis='';
if (dzo == null) {
dzo=window.open('','_blank','top=200,left=' + eval(-420 + eval('' + screen.width)) + ',width=300,height=300');
if (popupemailfunction == '') {
popupemailfunction=' function doagdisplay() { window.opener.document.getElementById("agshow").value="y"; } function dopopupemail() { var huhe=prompt("Please enter email address to share Animated GIF style presentation with. Append a hashtagged delay between slides in milliseconds that is not 4000 optionally.", ""); if (huhe == null) { huhe=""; } if (huhe.indexOf("@") != -1) { if (huhe.indexOf("#") != -1) { document.getElementById("aemail").href=document.getElementById("aemail").href.replace(encodeURIComponent("delay=4000"),encodeURIComponent("delay=" + huhe.split("#")[1])); huhe=huhe.split("#")[0]; } document.getElementById("aemail").href=document.getElementById("aemail").href.replace(":?", ":" + huhe + "?"); document.getElementById("aemail").click(); } } ';
}
htmlis='<ht' + 'ml><he' + 'ad><title>Inhouse Animated GIF style presentation ...</title><scri' + 'pt type=text/javascript> var dataih="", oneround=false, curslides=0, thislag=0; ' + popupemailfunction + ' function shows() { thislag=1; curslides=window.opener.getdzlen(); for (var ii=0; ii<curslides; ii++) { if (ii == 0) { if (!oneround) { oneround=true; document.getElementById("semail").style.display="inline-block"; document.getElementById("sag").style.display="inline-block"; } setTimeout(function() { dataih=window.opener.getdzfirst(); if (document.getElementById("aemail").href.indexOf(encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,"")))) == -1) { document.getElementById("aemail").href+=encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,""))); } document.getElementById("ptarget").innerHTML=dataih; }, thislag); } else { setTimeout(function() { dataih=window.opener.getdznext(); if (document.getElementById("aemail").href.indexOf(encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,"")))) == -1) { document.getElementById("aemail").href+=encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,""))); } document.getElementById("ptarget").innerHTML=dataih; }, thislag); } thislag+=4000; } setTimeout(shows, thislag); } setTimeout(shows,5000); </scr' + 'ipt></he' + 'ad><bo' + 'dy data-onload="setTimeout(shows,5000);"><div id=ptarget></div><br><button title="Share via Email" id=semail style=display:none; onclick="dopopupemail();">📧</button> <button title="Create Animated GIF or other animation form" id=sag style=display:none; onclick="doagdisplay();">📹</button><a target=top id=aemail style=display:none; href="mailto:?subject=Animated%20GIF%20presentation&body=' + encodeURIComponent('https://www.rjmprogramming.com.au/htmlemail.html?delay=4000#') + '">Email</a></bo' + 'dy></ht' + 'ml>';
dzo.document.write(htmlis);
dzo.document.title='Inhouse Animated GIF style presentation ...';
} else if (dzo.closed) {
if (dzoreopen) {
dzo=window.open('','_blank','top=200,left=' + eval(-420 + eval('' + screen.width)) + ',width=300,height=300');
htmlis='<ht' + 'ml><he' + 'ad><title>Inhouse Animated GIF style presentation ...</title><scri' + 'pt type=text/javascript> var dataih="", oneround=false, curslides=0, thislag=0; ' + popupemailfunction + ' function shows() { thislag=1; curslides=window.opener.getdzlen(); for (var ii=0; ii<curslides; ii++) { if (ii == 0) { if (!oneround) { oneround=true; document.getElementById("semail").style.display="inline-block"; document.getElementById("sag").style.display="inline-block"; } setTimeout(function() { dataih=window.opener.getdzfirst(); if (document.getElementById("aemail").href.indexOf(encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,"")))) == -1) { document.getElementById("aemail").href+=encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,""))); } document.getElementById("ptarget").innerHTML=dataih; }, thislag); } else { setTimeout(function() { dataih=window.opener.getdznext(); if (document.getElementById("aemail").href.indexOf(encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,"")))) == -1) { document.getElementById("aemail").href+=encodeURIComponent(encodeURIComponent(dataih.split("url(")[1].split(")")[0].replace(/\"\;/g,"").replace(/\"/g,""))); } document.getElementById("ptarget").innerHTML=dataih; }, thislag); } thislag+=4000; } setTimeout(shows, thislag); } setTimeout(shows,5000); </scr' + 'ipt></he' + 'ad><bo' + 'dy data-onload="setTimeout(shows,5000);"><div id=ptarget></div><br><button title="Share via Email" id=semail style=display:none; onclick="dopopupemail();">📧</button> <button title="Create Animated GIF or other animation form" id=sag style=display:none; onclick="doagdisplay();">📹</button><a target=top id=aemail style=display:none; href="mailto:?subject=Animated%20GIF%20presentation&body=' + encodeURIComponent('https://www.rjmprogramming.com.au/htmlemail.html?delay=4000#') + '">Email</a></bo' + 'dy></ht' + 'ml>';
dzo.document.write(htmlis);
}
} else {
dzo.focus();
}
}
}
function shareask(tao) { // share Image Map outerHTML
var anchor=null, laterdo=null;
var proposedurlis='https://' + document.URL.split('//')[1].split('?')[0].split('#')[0] + '#imagemapize=' + encodeURIComponent(tao.value);
if (!hniis) {
laterdo=hniisv;
if (1 == 1) {
console.log('message length is ' + proposedurlis.length);
} else {
document.title='' + proposedurlis.length + ' ' + document.title;
}
if (laterdo == '') {
laterdo=prompt('Please enter an email address or SMS number to send the Image Map to. To not ask again regarding Image Map progress email or SMS communications in this session click Cancel. If your answer you are happy with from here on append a space to it.', hniisv);
}
if (laterdo == null) { hniis=true; laterdo=''; }
if (laterdo.indexOf('@') > 0) {
if (laterdo != laterdo.trim()) { hniisv=laterdo.trim(); }
anchor = document.createElement('a');
if (tao.value.indexOf('<html') != -1) { // (includes tailored HTML and Javascript around it)
anchor.href = 'mailto:' + laterdo.trim() + '?subject=' + encodeURIComponent('Image Map (includes tailored HTML and Javascript around it) ...') + '&body=' + encodeURIComponent(proposedurlis);
} else {
anchor.href = 'mailto:' + laterdo.trim() + '?subject=' + encodeURIComponent('Image Map (includes default HTML and Javascript around it) ...') + '&body=' + encodeURIComponent(proposedurlis);
}
anchor.style.display='none';
anchor.innerHTML='Email';
anchor.target='_top';
anchor.click();
} else if (laterdo.trim() != '' && laterdo.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {
if (laterdo != laterdo.trim()) { hniisv=laterdo.trim(); }
anchor = document.createElement('a');
anchor.href = 'sms:' + laterdo.trim() + '&body=' + encodeURIComponent(proposedurlis);
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
}
}
}
function setrectvscirclemode(tow) {
rectvscirclemode=eval('' + tow);
}
function getrectvscirclemode() {
return eval('' + rectvscirclemode);
}
function noprompt(retvalisx) {
setTimeout(function(){ rubberbanding('crosshair',null); }, 200);
return retvalisx;
}
function thisprompt(blb, dblb) {
var retvalis=prompt(blb, dblb);
setTimeout(function(){ rubberbanding('crosshair',null); }, 2000);
return retvalis;
}
function getdzlen() {
return eval('' + dzslides.length);
}
function getdzfirst() {
var iwhich=0;
dzcnt=1;
if (iwhich == 0) {
//alert(document.getElementById('target').outerHTML);
var pone=document.getElementById('target').outerHTML.split('>')[0].replace('url(' + document.getElementById('target').outerHTML.split('url(')[1].split(')')[0] + ')', 'url(' + dzslides[iwhich] + ')');
return pone + '></div>';
}
if (('' + dzslides[iwhich]) == 'undefined') { return ''; }
return dzslides[iwhich];
}
function getdznext() {
var iwhich=dzcnt;
dzcnt++;
if (iwhich == 0) {
var pone=document.getElementById('target').outerHTML.split('>')[0].replace('url(' + document.getElementById('target').outerHTML.split('url(')[1].split(')')[0] + ')', 'url(' + dzslides[iwhich] + ')');
return pone + '></div>';
}
if (('' + dzslides[iwhich]) == 'undefined') { return ''; }
return dzslides[iwhich];
}
function getdz(iwhich) {
if (iwhich == 0) {
//alert(document.getElementById('target').outerHTML);
var pone=document.getElementById('target').outerHTML.split('>')[0].replace('URL(' + document.getElementById('target').outerHTML.split('URL(')[1].split(')')[0] + ')', 'URL(' + dzslides[iwhich] + ')');
return pone + '></div>';
}
if (('' + dzslides[iwhich]) == 'undefined') { return ''; }
return dzslides[iwhich];
}
function agmaybe() {
iois=document.getElementById('ifconto');
if (iois != null) {
//alert(13);
if (iois.src.indexOf('tutorial_to_animated_gif.php') != -1) {
agconto = (iois.contentWindow || iois.contentDocument);
//alert(23);
if (agconto != null) {
if (agconto.document) { agconto = agconto.document; }
//alert(33);
agconto.getElementById('delay').value='4000';
agconto.getElementById('stitle').value='My Animation ...';
agconto.getElementById('watermarkmode').value=' ';
var spans=agconto.getElementsByTagName('span');
for (var jspans=0; jspans<spans.length; jspans++) {
if (spans[jspans].innerHTML == ' Delay(s)' && spans[jspans].outerHTML.indexOf('do' + 'dt') != -1) { spans[jspans].click(); }
}
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 1 == 1) {
agconto.getElementById('slideshow').focus();
if (lhif == '') { window.scrollTo(0,0); }
}
//alert(43);
}
}
}
}
function agcheck() {
if (('' + location.hash).indexOf('snapshot=') != -1 && ('' + document.getElementById('lefttd').title) != ' ') {
var intogoes=('' + location.hash).split('snapshot=')[1].split('&')[0].split('#')[0];
var jntogoes='';
if (('' + location.hash).indexOf('style=') != -1) {
jntogoes='style=' + decodeURIComponent(('' + location.hash).split('style=')[1].split('&')[0].split('#')[0]).replace(/\+/g,' ');
}
document.getElementById('lefttd').title=' ';
//location.hash='#';
var intgs=intogoes.split(',');
var isrc=decodeURIComponent(intgs[0]);
if (isrc.indexOf('data') == 0) { isrc=isrc.replace(/\ /g,'+'); } else { isrc=isrc.replace(/\+/g,' '); }
if (eval('' + intgs.length) >= 9) {
window.sessionStorage.setItem('user_of_signature_signature_sx', '' + intgs[1]);
window.sessionStorage.setItem('user_of_signature_signature_sy', '' + intgs[2]);
window.sessionStorage.setItem('user_of_signature_signature_swidth', '' + intgs[3]);
window.sessionStorage.setItem('user_of_signature_signature_sheight', '' + intgs[4]);
window.sessionStorage.setItem('user_of_signature_signature_x', '' + intgs[5]);
window.sessionStorage.setItem('user_of_signature_signature_y', '' + intgs[6]);
window.sessionStorage.setItem('user_of_signature_signature_width', '' + intgs[7]);
window.sessionStorage.setItem('user_of_signature_signature_height', '' + intgs[8]);
document.getElementById('lefttd').title=' ';
document.getElementById('lefttd').style.width= '' + intgs[7] + 'px';
document.getElementById('toptd').style.left= '' + intgs[7] + 'px';
document.getElementById('mydivshare').style.left= '' + eval(5 + eval('' + intgs[7])) + 'px';
setInterval(function(){ document.getElementById('topiframe').style.visibility='hidden'; document.getElementById('topiframe').style.top='' + intgs[8] + 'px'; document.getElementById('toppixellate').style.top='' + eval(200 + eval('' + intgs[8])) + 'px'; }, 2000);
} else if (eval('' + intgs.length) >= 5) {
window.sessionStorage.setItem('user_of_signature_signature_x', '' + intgs[1]);
window.sessionStorage.setItem('user_of_signature_signature_y', '' + intgs[2]);
window.sessionStorage.setItem('user_of_signature_signature_width', '' + intgs[3]);
window.sessionStorage.setItem('user_of_signature_signature_height', '' + intgs[4]);
document.getElementById('lefttd').title=' ';
document.getElementById('lefttd').style.width= '' + intgs[3] + 'px';
document.getElementById('toptd').style.left= '' + intgs[3] + 'px';
document.getElementById('mydivshare').style.left= '' + eval(5 + eval('' + intgs[3])) + 'px';
setInterval(function(){ document.getElementById('topiframe').style.visibility='hidden'; document.getElementById('topiframe').style.top= '' + intgs[4] + 'px'; document.getElementById('toppixellate').style.top='' + eval(200 + eval('' + intgs[4])) + 'px'; }, 2000);
} else if (eval('' + intgs.length) >= 3) {
document.getElementById('lefttd').title=' ';
if (('' + intgs[1]) != '0') {
document.getElementById('lefttd').style.width= '' + intgs[1] + 'px';
document.getElementById('toptd').style.left= '' + intgs[1] + 'px';
window.sessionStorage.setItem('user_of_signature_signature_width', '' + intgs[1]);
window.sessionStorage.setItem('user_of_signature_signature_height', '' + intgs[2]);
document.getElementById('mydivshare').style.left= '' + eval(5 + eval('' + intgs[1])) + 'px';
}
setInterval(function(){ document.getElementById('topiframe').style.visibility='hidden'; document.getElementById('topiframe').style.top= '' + intgs[2] + 'px'; document.getElementById('toppixellate').style.top='' + eval(200 + eval('' + intgs[2])) + 'px'; }, 2000);
}
if (decodeURIComponent(intgs[eval(-1 + intgs.length)]).indexOf('style=') != -1) {
window.sessionStorage.setItem('user_of_signature_signature_filter', decodeURIComponent('' + intgs[eval(-1 + intgs.length)]).replace(/\+/g,' '));
} else if (jntogoes != '') {
window.sessionStorage.setItem('user_of_signature_signature_filter', jntogoes);
}
window.sessionStorage.setItem('user_of_signature_signature_transfer', '' + isrc);
noag=true;
if (document.getElementById('agshow').value == 'y') {
document.getElementById('agshow').value='Y';
}
}
if (document.getElementById('agshow')) {
if (document.getElementById('agshow').value == 'y') {
document.getElementById('agshow').value='Y';
//document.getElementById('ifconto').style.display='block';
if (lhif == '') { if (!noag) { location.href='#ifconto'; } }
}
}
if (('' + window.sessionStorage.getItem('user_of_signature_signature_transfer')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
if (document.getElementById('topcanvas').title == document.getElementById('topcanvas').title.trim()) {
document.getElementById('topcanvas').title+=' ';
var xcont=('' + window.sessionStorage.getItem('user_of_signature_signature_transfer'));
window.sessionStorage.removeItem('user_of_signature_signature_transfer');
document.getElementById('topcanvas').title=document.getElementById('topcanvas').title.trim();
if (xcont.indexOf('data:') == 0) {
xcont=xcont.replace(/\ /g,'+');
}
xcelem=document.getElementById('topcanvas');
xccontext = xcelem.getContext("2d");
xcimg=new Image;
xcimg.onload = function(){
var mysx=('' + window.sessionStorage.getItem('user_of_signature_signature_sx')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_sx')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The x coordinate where to start clipping
var mysy=('' + window.sessionStorage.getItem('user_of_signature_signature_sy')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_sy')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The y coordinate where to start clipping
var myswidth=('' + window.sessionStorage.getItem('user_of_signature_signature_swidth')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_swidth')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The width of the clipped image
var mysheight=('' + window.sessionStorage.getItem('user_of_signature_signature_sheight')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_sheight')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The height of the clipped image
var myx=('' + window.sessionStorage.getItem('user_of_signature_signature_x')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_x')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // The x coordinate where to place the image on the canvas
var myy=('' + window.sessionStorage.getItem('user_of_signature_signature_y')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_y')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // The y coordinate where to place the image on the canvas
var mywidth=('' + window.sessionStorage.getItem('user_of_signature_signature_width')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_width')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The width of the image to use (stretch or reduce the image)
var myheight=('' + window.sessionStorage.getItem('user_of_signature_signature_height')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_height')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The height of the image to use (stretch or reduce the image)
if (mywidth != '' && myheight != '') {
if (specified) {
xcelem.width=eval('' + cancontw);
xcelem.height=eval('' + canconth);
} else {
xcelem.width=eval('' + mywidth);
xcelem.height=eval('' + myheight);
}
if (('' + xcimg.style.filter).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
xccontext.filter=xcimg.style.filter;
}
if (myx != '' && myy != '' && myswidth == '' && mysheight == '') {
xccontext.drawImage(xcimg,eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight));
setTimeout(function(){ xccontext.drawImage(xcimg,eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight)); }, 3000);
window.sessionStorage.removeItem('user_of_signature_signature_x');
window.sessionStorage.removeItem('user_of_signature_signature_y');
window.sessionStorage.removeItem('user_of_signature_signature_width');
window.sessionStorage.removeItem('user_of_signature_signature_height');
} else if (myx == '' && myy == '') {
xccontext.drawImage(xcimg,0,0,eval('' + xcimg.width),eval('' + xcimg.height),0,0,eval('' + mywidth),eval('' + myheight));
setTimeout(function(){ xccontext.drawImage(xcimg,0,0,eval('' + xcimg.width),eval('' + xcimg.height),0,0,eval('' + mywidth),eval('' + myheight)); }, 3000);
window.sessionStorage.removeItem('user_of_signature_signature_width');
window.sessionStorage.removeItem('user_of_signature_signature_height');
} else {
xccontext.drawImage(xcimg,eval('' + mysx),eval('' + mysy),eval('' + myswidth),eval('' + mysheight),eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight));
setTimeout(function(){ xccontext.drawImage(xcimg,eval('' + mysx),eval('' + mysy),eval('' + myswidth),eval('' + mysheight),eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight)); }, 3000);
window.sessionStorage.removeItem('user_of_signature_signature_sx');
window.sessionStorage.removeItem('user_of_signature_signature_sy');
window.sessionStorage.removeItem('user_of_signature_signature_swidth');
window.sessionStorage.removeItem('user_of_signature_signature_sheight');
window.sessionStorage.removeItem('user_of_signature_signature_x');
window.sessionStorage.removeItem('user_of_signature_signature_y');
window.sessionStorage.removeItem('user_of_signature_signature_width');
window.sessionStorage.removeItem('user_of_signature_signature_height');
}
} else {
if (specified) {
xcelem.width=eval('' + cancontw);
xcelem.height=eval('' + canconth);
} else {
xcelem.width=xcimg.width;
xcelem.height=xcimg.height;
}
if (('' + xcimg.style.filter).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
xccontext.filter=xcimg.style.filter;
}
xccontext.drawImage(xcimg,0,0);
setTimeout(function(){ xccontext.drawImage(xcimg,0,0); }, 3000);
}
if (window.parent) {
if (parent.document.getElementById('if_image_canvas')) {
if (('' + parent.document.getElementById('if_image_canvas').style.height).replace('px','').trim() != '') {
if (eval('' + ('' + parent.document.getElementById('if_image_canvas').style.height).replace('px','').trim()) < eval(200 + eval('' + xcelem.height))) {
parent.document.getElementById('if_image_canvas').style.height='' + eval(200 + eval('' + xcelem.height)) + 'px';
}
} else {
parent.document.getElementById('if_image_canvas').style.height='' + eval(200 + eval('' + xcelem.height)) + 'px';
}
parent.document.getElementById('if_image_canvas').style.display='block';
if (parent.document.URL.replace('/wordpress','/ITblog').indexOf('/ITblog') != -1) {
parent.document.getElementById('if_image_canvas').scrollIntoView();
}
}
}
};
var incomings=('' + window.sessionStorage.getItem('user_of_signature_signature_filter')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.sessionStorage.getItem('user_of_signature_signature_filter')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The image filter CSS styling to apply
if ((incomings.indexOf('%20') != -1 || 7 == 7) && incomings.replace(':',')').indexOf(')') != -1 && incomings.indexOf('style=') != -1) {
incomings='style=' + encodeURIComponent((incomings.split('style=')[1].split('&')[0].split('#')[0]).replace(/\%20/g,' ').replace(/\+/g,' '));
}
var relincomings=incomings.split('style=')[1] ? decodeURIComponent(incomings.split('style=')[1].split('&')[0].split('#')[0]).replace(/\%20/g,' ').replace(/\+/g,' ') : '';
if (relincomings.indexOf('filter:') != -1) {
xcimg.style.filter=relincomings.split('filter:')[1].split(';')[0].split('}')[0];
}
xcimg.src=xcont;
}
}
if (('' + window.localStorage.getItem('user_of_signature_signature_transfer')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
if (document.getElementById('topcanvas').title == document.getElementById('topcanvas').title.trim()) {
document.getElementById('topcanvas').title+=' ';
var xcont=('' + window.localStorage.getItem('user_of_signature_signature_transfer'));
window.localStorage.removeItem('user_of_signature_signature_transfer');
document.title+=('' + 154);
document.getElementById('topcanvas').title=document.getElementById('topcanvas').title.trim();
if (xcont.indexOf('data:') == 0) { xcont=xcont.replace(/\ /g,'+'); }
xcelem=document.getElementById('topcanvas');
xccontext = xcelem.getContext("2d");
xcimg=new Image;
xcimg.onload = function(){
var mysx=('' + window.localStorage.getItem('user_of_signature_signature_sx')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_sx')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The x coordinate where to start clipping
var mysy=('' + window.localStorage.getItem('user_of_signature_signature_sy')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_sy')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The y coordinate where to start clipping
var myswidth=('' + window.localStorage.getItem('user_of_signature_signature_swidth')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_swidth')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The width of the clipped image
var mysheight=('' + window.localStorage.getItem('user_of_signature_signature_sheight')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_sheight')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The height of the clipped image
var myx=('' + window.localStorage.getItem('user_of_signature_signature_x')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_x')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // The x coordinate where to place the image on the canvas
var myy=('' + window.localStorage.getItem('user_of_signature_signature_y')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_y')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // The y coordinate where to place the image on the canvas
var mywidth=('' + window.localStorage.getItem('user_of_signature_signature_width')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_width')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The width of the image to use (stretch or reduce the image)
var myheight=('' + window.localStorage.getItem('user_of_signature_signature_height')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_height')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The height of the image to use (stretch or reduce the image)
if (mywidth != '' && myheight != '') {
if (specified) {
xcelem.width=eval('' + cancontw);
xcelem.height=eval('' + canconth);
} else {
xcelem.width=eval('' + mywidth);
xcelem.height=eval('' + myheight);
}
if (('' + xcimg.style.filter).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
xccontext.filter=xcimg.style.filter;
}
if (myx != '' && myy != '' && myswidth == '' && mysheight == '') {
xccontext.drawImage(xcimg,eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight));
setTimeout(function(){ xccontext.drawImage(xcimg,eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight)); }, 3000);
window.localStorage.removeItem('user_of_signature_signature_x');
window.localStorage.removeItem('user_of_signature_signature_y');
window.localStorage.removeItem('user_of_signature_signature_width');
window.localStorage.removeItem('user_of_signature_signature_height');
} else {
xccontext.drawImage(xcimg,eval('' + mysx),eval('' + mysy),eval('' + myswidth),eval('' + mysheight),eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight));
setTimeout(function(){ xccontext.drawImage(xcimg,eval('' + mysx),eval('' + mysy),eval('' + myswidth),eval('' + mysheight),eval('' + myx),eval('' + myy),eval('' + mywidth),eval('' + myheight)); }, 3000);
window.localStorage.removeItem('user_of_signature_signature_sx');
window.localStorage.removeItem('user_of_signature_signature_sy');
window.localStorage.removeItem('user_of_signature_signature_swidth');
window.localStorage.removeItem('user_of_signature_signature_sheight');
window.localStorage.removeItem('user_of_signature_signature_x');
window.localStorage.removeItem('user_of_signature_signature_y');
window.localStorage.removeItem('user_of_signature_signature_width');
window.localStorage.removeItem('user_of_signature_signature_height');
}
} else {
if (specified) {
xcelem.width=eval('' + cancontw);
xcelem.height=eval('' + canconth);
} else {
xcelem.width=xcimg.width;
xcelem.height=xcimg.height;
}
if (('' + xcimg.style.filter).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
xccontext.filter=xcimg.style.filter;
}
xccontext.drawImage(xcimg,0,0);
setTimeout(function(){ xccontext.drawImage(xcimg,0,0); }, 3000);
}
if (window.opener) {
window.opener.focus();
} else if (window.parent) {
if (parent.document.getElementById('if_image_canvas')) {
if (('' + parent.document.getElementById('if_image_canvas').style.height).replace('px','').trim() != '') {
if (eval('' + ('' + parent.document.getElementById('if_image_canvas').style.height).replace('px','').trim()) < eval(200 + eval('' + xcelem.height))) {
parent.document.getElementById('if_image_canvas').style.height='' + eval(200 + eval('' + xcelem.height)) + 'px';
}
} else {
parent.document.getElementById('if_image_canvas').style.height='' + eval(200 + eval('' + xcelem.height)) + 'px';
}
parent.document.getElementById('if_image_canvas').style.display='block';
if (parent.document.URL.replace('/wordpress','/ITblog').indexOf('/ITblog') != -1) {
parent.document.getElementById('if_image_canvas').scrollIntoView();
}
} }
};
var incomings=('' + window.localStorage.getItem('user_of_signature_signature_filter')).replace(/^undefined/g,'').replace(/^null/g,'') != '' ? ('' + window.localStorage.getItem('user_of_signature_signature_filter')).replace(/^undefined/g,'').replace(/^null/g,'') : ''; // Optional. The image filter CSS styling to apply
if ((incomings.indexOf('%20') != -1 || 7 == 7) && incomings.replace(':',')').indexOf(')') != -1 && incomings.indexOf('style=') != -1) {
incomings='style=' + encodeURIComponent((incomings.split('style=')[1].split('&')[0].split('#')[0]).replace(/\%20/g,' ').replace(/\+/g,' '));
}
var relincomings=incomings.split('style=')[1] ? decodeURIComponent(incomings.split('style=')[1].split('&')[0].split('#')[0]).replace(/\%20/g,' ').replace(/\+/g,' ') : '';
if (relincomings.indexOf('filter:') != -1) {
xcimg.style.filter=relincomings.split('filter:')[1].split(';')[0].split('}')[0];
}
xcimg.src=xcont;
} }
}
// capture keyboard input
// Thanks to https://stackoverflow.com/questions/37284120/detect-spacebar-press-when-no-text-inputs-are-focused
document.onkeydown = function (e) {
// check for U or R press
if (('' + e.keyCode) == '85' || ('' + e.keyCode) == '82') { // Undo or Redo
// check if an input is currently in focus
var zinputtype=('' + + '<') != -1) {
//gdefv=gdefv.replace(curgdefv + '?', curgdefv + '^');
gdefv=gdefv.replace(curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-')[eval(-1 + curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-').length)].split('{')[0].trim().replace(/\ /g,'_') + '?', curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-')[eval(-1 + curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-').length)].split('{')[0].trim().replace(/\ /g,'_') + '^');
if (gdefv.indexOf('?') == -1) {
gdefv=gdefv.replace(/\^/g, '').replace(/\%3f/g, '?');
//alert('gdefv=' + gdefv);
scmok=true;
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
document.getElementById('myimg').click(); //scmove();
} else {
setTimeout(dountilnoquestion, 1000);
}
} else {
//alert('curgdefv=' + curgdefv);
document.getElementById('placegeo').value=' ';
//alert('111:' + '/PHP/fgc/index.php?placegeo=' + encodeURIComponent(curgdefv.replace(/\ /g,'_')));
//document.getElementById('wif').src='/PHP/fgc/index.php?placegeo=' + encodeURIComponent(curgdefv.replace(/\ \(/g,', ').replace(/\)$/g,'')).replace(/\%20/g,'_');
document.getElementById('wif').src='/PHP/fgc/index.php?placegeo=' + encodeURIComponent(curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-')[eval(-1 + curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-').length)].split('{')[0].trim().replace(/\ /g,'_'));
//alert('111:' + '/PHP/fgc/index.php?tzexact=&tznickname=' + encodeURIComponent(curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-')[eval(-1 + curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-').length)].split('{')[0].trim().replace(/\ /g,'_')));
// document.getElementById('wiftwo').src='/PHP/fgc/index.php?tzexact=&tznickname=' + encodeURIComponent(curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-')[eval(-1 + curgdefv.split(',')[eval(-1 + curgdefv.split(',').length)].split('-').length)].split('{')[0].trim().replace(/\ /g,'_'));
}
}
}
function woit(what) {
if (what.trim() != '') {
//alert(what + ' ... ' + bigback);
if (bigback.indexOf(what + ':') != -1 || bigback.indexOf(what.replace(/\ /g,'_') + ':') != -1) {
if (wobi) {
if (!wobi.closed) { wobi.close(); }
}
wobi=window.open('', '_blank', 'top=50,left=50,width=900,height=800');
if (bigback.indexOf(what + ':') != -1) {
wobi.document.write(bigback.split(what + ':')[1].split('</div>')[0] + '</div>');
} else {
wobi.document.write(bigback.split(what.replace(/\ /g,'_') + ':')[1].split('</div>')[0] + '</div>');
}
setTimeout(function(){ wobi.document.title=what + ' ... Wikipedia images ... thanks'; }, 6000);
}
}
}
function coordittwo(xiois) {
var xxaconto = (xiois.contentWindow || xiois.contentDocument);
if (xxaconto != null) {
if (xxaconto.document) { xxaconto = xxaconto.document; }
var xxacontobodyouterHTML=xxaconto.body.outerHTML.replace(/\"\;/g,'"');
//alert(xxacontobodyouterHTML);
if (xxacontobodyouterHTML.indexOf('.style.background="URL(') != -1) {
//alert('URL(' + xxacontobodyouterHTML.split('.style.background="URL(')[1].split('"')[0] + '');
//alert('"' + xxacontobodyouterHTML.split('.style.backgroundRepeat="')[1].split('"')[0] + '"');
//alert('"' + xxacontobodyouterHTML.split('.style.backgroundPosition="')[1].split('"')[0] + '"');
if (bigback.indexOf(xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0] + ':') == -1) {
if (document.getElementById('span' + xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0])) {
document.getElementById('span' + xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0].replace(/\ /g,'_')).style.cursor='pointer';
document.getElementById('span' + xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0].replace(/\ /g,'_')).title='Wikipedia images available for ' + xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0].replace(/\_/g,' ') + ' clicking here now.';
}
bigback+=xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0] + ':' + document.getElementById('ourcanvas').outerHTML.replace('<canvas','<div title="Images for ' + xiois.src.split('tznickname=')[1].split('&')[0].split('#')[0].replace(/\_/g,' ') + ' thanks to Wikipedia at https://wikipedia.org" ').replace('</canvas>','</div>').replace(':none;',':block;background:' + 'URL(' + xxacontobodyouterHTML.split('.style.background="URL(')[1].split('"')[0] + ';background-repeat:no-repeat;background-position:' + xxacontobodyouterHTML.split('.style.backgroundPosition="')[1].split('"')[0]);
}
}
wiftwoavailable=true;
if (nextwiftwo.split('#')[0] != '') {
if (nextwiftwo.split('#')[0].indexOf('dopg=') != -1) {
document.getElementById('placegeo').value=' ';
override=nextwiftwo.split('#')[0].replace('dopg=y&','').split('tznickname=')[1].split('&')[0].split('#')[0];
//alert('2:' + '/PHP/fgc/index.php?placegeo=' + encodeURIComponent(override.replace(/\ \(/g,', ').replace(/\)$/g,'')).replace(/\%20/g,'_'));
document.getElementById('wif').src='/PHP/fgc/index.php?placegeo=' + encodeURIComponent(override.replace(/\ \(/g,', ').replace(/\)$/g,'')).replace(/\%20/g,'_');
}
xiois.src=nextwiftwo.split('#')[0].replace('dopg=y&','');
nextwiftwo=nextwiftwo.replace(nextwiftwo.split('#')[0] + '#', '');
wiftwoavailable=false;
}
}
}
function coordit(xiois) {
var thisoverride=override;
override='';
xaconto = (xiois.contentWindow || xiois.contentDocument);
//alert(11);
if (xaconto != null) {
//alert('111 ' + xiois.src);
try {
if (xaconto.document) { xaconto = xaconto.document; }
//alert('1111 ' + xaconto.body.innerHTML);
if (xaconto.body.innerHTML.indexOf('>Coordinates') != -1) {
var subpart=xaconto.body.innerHTML.split('>Coordinates')[1];
latdeg=-999;
longdeg=-999;
latmin=0;
longmin=0;
latsec=0;
longsec=0;
sparelat='';
sparelong='';
if (subpart.indexOf('"latitude"') != -1 && subpart.indexOf('"longitude"') != -1) {
latdeg=subpart.split('"latitude"')[1].split('>')[1].split("°")[0].split('<')[0];
sparelat=subpart.split('"latitude"')[1].split('>')[1].split('<')[0].slice(-1);
latmin=subpart.split('"latitude"')[1].split('>')[1].split('<')[0].substring(eval(1 + eval('' + latdeg.length))).split("′")[0].split(sparelat)[0].split('<')[0];
if (sparelat == 'S') { latdeg=eval(eval(eval(-1 * latmin) / 60) - latdeg); } else { latdeg+=eval(eval('' + latmin) / 60) }
longdeg=subpart.split('"longitude"')[1].split('>')[1].split("°")[0].split('<')[0];
sparelong=subpart.split('"longitude"')[1].split('>')[1].split('<')[0].slice(-1);
longmin=subpart.split('"longitude"')[1].split('>')[1].split('<')[0].substring(eval(1 + eval('' + longdeg.length))).split("′")[0].split(sparelong)[0].split('<')[0];
if (sparelong == 'W') { longdeg=eval(eval(eval(-1 * longmin) / 60) - longdeg); } else { longdeg+=eval(eval('' + longmin) / 60) }
if (gdefv.indexOf(curgdefv + '?') != -1) {
gdefv=gdefv.replace(curgdefv + '?', curgdefv + ('|' + longdeg).replace('|-','|_') + + ('|' + latdeg).replace('|-','|_') + '^');
dountilnoquestion();
}
return true;
} else if (('' + document.getElementById('placegeo').value).trim().indexOf(',') != -1) {
//alert(document.getElementById('placegeo').value);
if (eval('' + document.getElementById('placegeo').title.split(',').length) >= 3) {
isotwo+=curgdefv + document.getElementById('placegeo').title.split(',')[eval(-3 + document.getElementById('placegeo').title.split(',').length)];
if (thisoverride != '') { alert(isotwo + ' ... regarding ' + thisoverride); }
setTimeout(newhashit, 5000);
}
latdeg=document.getElementById('placegeo').value.split(',')[eval(-2 + document.getElementById('placegeo').value.split(',').length)];
longdeg=document.getElementById('placegeo').value.split(',')[eval(-1 + document.getElementById('placegeo').value.split(',').length)];
//alert('' + longdeg);
if (gdefv.indexOf(curgdefv + '?') != -1) {
gdefv=gdefv.replace(curgdefv + '?', curgdefv + ('|' + longdeg).replace('|-','|_') + ('|' + latdeg).replace('|-','|_') + '^');
if (gdefv.indexOf('?') == -1) {
gdefv=gdefv.replace(/\^/g, '').replace(/\%3f/g, '?');
//document.title=gdefv;
//alert('gdefv=' + gdefv);
scmok=true;
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
document.getElementById('myimg').click(); //scmove();
return '';
} else {
setTimeout(dountilnoquestion, 1000);
}
//dountilnoquestion();
}
return true;
}
} else {
if (('' + document.getElementById('placegeo').value).trim().indexOf(',') != -1) {
//alert(document.getElementById('placegeo').value);
//alert(document.getElementById('placegeo').value);
if (eval('' + document.getElementById('placegeo').title.split(',').length) >= 3) {
isotwo+=curgdefv + document.getElementById('placegeo').title.split(',')[eval(-3 + document.getElementById('placegeo').title.split(',').length)];
if (thisoverride != '') { alert(isotwo + ' ... Regarding ' + thisoverride); }
setTimeout(newhashit, 5000);
}
latdeg=document.getElementById('placegeo').value.split(',')[eval(-2 + document.getElementById('placegeo').value.split(',').length)];
longdeg=document.getElementById('placegeo').value.split(',')[eval(-1 + document.getElementById('placegeo').value.split(',').length)];
//alert('7:' + longdeg + ' ' + document.getElementById('placegeo').value);
//alert('77:' + latdeg + ' gdefv=' + gdefv + ' and curgdefv?=' + curgdefv + '?');
// 77:-23.70000 gdefv=Alice Springs?-Sydney? and curgdefv?=Alice Springs?
// 77:-33.86778 gdefv=Alice Springs|133.87000|_23.70000^-Sydney? and curgdefv?=Sydney?
if (gdefv.indexOf(curgdefv + '?') != -1) {
//alert('r:' + document.getElementById('placegeo').value);
gdefv=gdefv.replace(curgdefv + '?', curgdefv + ('|' + longdeg).replace('|-','|_') + ('|' + latdeg).replace('|-','|_') + '^');
if (gdefv.indexOf('?') == -1) {
gdefv=gdefv.replace(/\^/g, '').replace(/\%3f/g, '?');
//document.title=gdefv;
//alert('gdefv =' + gdefv);
scmok=true;
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
document.getElementById('myimg').click(); //scmove();
return '';
} else {
dountilnoquestion(); //setTimeout(dountilnoquestion, 1000);
}
// dountilnoquestion();
}
} else {
if (gdefv.indexOf(curgdefv + '?') != -1) {
//alert('q:' + document.getElementById('placegeo').value);
gdefv=gdefv.replace(curgdefv + '?', curgdefv + caret.trim());
if (gdefv.indexOf('?') == -1) {
gdefv=gdefv.replace(/\^/g, '').replace(/\%3f/g, '?');
//document.title=gdefv;
//alert('gdefv= ' + gdefv);
scmok=true;
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
document.getElementById('myimg').click(); //scmove();
return '';
} else {
dountilnoquestion(); //setTimeout(dountilnoquestion, 1000);
}
//
}
}
//gextras='';
//if (window.opener) {
// window.opener.putgextras(gextras);
//} else if (window.parent) {
// parent.putgextras(gextras);
//}
}
} catch(hgjg) { }
}
return true;
}
function iuo(newtooldmaybe) {
var outmel=newtooldmaybe, pref='', suff='';
var flds=[];
//alert('0:' + outmel);
if (outmel.trim() != '') {
if (outmel != outmel.replace(/^\ /g, '')) {
while (outmel != outmel.replace(/^\ /g, '')) {
outmel=outmel.replace(/^\ /g, '');
pref+=' ';
}
}
//alert('00:' + outmel);
if (outmel != outmel.replace(/\ $/g, '')) {
while (outmel != outmel.replace(/\ $/g, '')) {
outmel=outmel.replace(/\ $/g, '');
suff+=' ';
}
}
//alert('000:' + outmel);
if (outmel.indexOf('|') != -1) {
//alert('10:' + outmel);
outmel=outmel.replace(/\|\_/g, '|-').replace(/^\_/g, '-'); //.replace(/\ /g,'_');
//alert('110:' + outmel);
flds=outmel.replace('[', '').replace(']', '').split('|');
if (eval('' + flds.length) == 2 || (eval('' + flds.length) == 3 && flds[eval(-1 + flds.length)].trim() == '')) {
if (outmel.indexOf('.') == -1) {
//if (outmel.trim() != '') { alert(newtooldmaybe + ' Vs ' + pref + flds[0] + ',' + flds[1] + suff); }
return pref + flds[0] + ',' + flds[1] + suff;
} else {
//if (outmel.trim() != '') { alert(outmel); alert(newtooldmaybe + ' vS ' + pref + '[' + flds[0] + ',' + flds[1] + ']' + suff); }
return pref + '[' + flds[0] + ',' + flds[1] + ']' + suff;
}
} else if (eval('' + flds.length) >= 3) {
//if (outmel.trim() != '') { alert(outmel); alert(newtooldmaybe + ' VS ' + pref + '[' + flds[eval(-2 + flds.length)] + ',' + flds[eval(-1 + flds.length)] + ',' + outmel.replace('|' + flds[eval(-2 + flds.length)] + '|' + flds[eval(-1 + flds.length)], '').replace('[','').replace(']','') + ']' + suff); }
return pref + '[' + flds[eval(-2 + flds.length)] + ',' + flds[eval(-1 + flds.length)] + ',' + outmel.replace('|' + flds[eval(-2 + flds.length)] + '|' + flds[eval(-1 + flds.length)], '').replace('[','').replace(']','') + ']' + suff;
}
}
// Budgewoi33.2329° S, 151.5516° E
}
//if (outmel.trim() != '') { alert(newtooldmaybe + ' vs ' + pref + outmel + suff); }
return pref + outmel + suff;
}
function toiuo(meldaccordingly) {
var minus=String.fromCharCode(9), haveseencapital=false, outmel=meldaccordingly, pref='', suff='', icom=0, degfixes=[], ideg=0, xtlat='', xtlong='', nums='', ijk=0, xtplace='', tobechanged='', comfixes=[];
if (outmel.trim() != '') {
if (outmel != outmel.replace(/^\ /g, '')) {
while (outmel != outmel.replace(/^\ /g, '')) {
outmel=outmel.replace(/^\ /g, '');
pref+=' ';
}
}
if (outmel != outmel.replace(/\ $/g, '')) {
while (outmel != outmel.replace(/\ $/g, '')) {
outmel=outmel.replace(/\ $/g, '');
suff+=' ';
}
}
degfixes=outmel.split('[');
if (eval('' + degfixes.length) > 1) {
for (ideg=1; ideg<degfixes.length; ideg++) {
xtlat='';
xtlong='';
xtplace='';
tobechanged='[' + degfixes[ideg].split(']')[0] + ']';
comfixes=degfixes[ideg].split(']')[0].split(',');
if (eval('' + comfixes.length) >= 2) {
if (eval('' + comfixes.length) == 2) {
xtlong='' + comfixes[0];
xtlat='' + comfixes[1];
//outmel=outmel.replace('' + tobechanged + '', '[' + xtplace.replace(/\-/g,'%2d') + '|' + xtlong.replace('-','_') + '|' + xtlat.replace('-','_') + ']');
outmel=outmel.replace('' + tobechanged + '', '' + xtplace.replace(/\-/g,'%2d') + '|' + xtlong.replace('-','_') + '|' + xtlat.replace('-','_') + '');
} else {
xtlong='' + comfixes[0];
xtlat='' + comfixes[1];
xtplace=degfixes[ideg].split(']')[0].replace(xtlong + ',' + xtlat + ',', '');
//outmel=outmel.replace('' + tobechanged + '', '[' + xtplace.replace(/\-/g,'%2d') + '|' + xtlong.replace('-','_') + '|' + xtlat.replace('-','_') + ']');
outmel=outmel.replace('' + tobechanged + '', '' + xtplace.replace(/\-/g,'%2d') + '|' + xtlong.replace('-','_') + '|' + xtlat.replace('-','_') + '');
}
}
}
}
degfixes=outmel.split(String.fromCodePoint(176));
if (eval('' + degfixes.length) > 1) {
alert('' + degfixes.length + ' ' + outmel);
for (ideg=1; ideg<degfixes.length; ideg+=2) {
xtlat='';
xtlong='';
xtplace='';
nums='';
tobechanged=String.fromCodePoint(176) + degfixes[eval(0 + ideg)] + String.fromCodePoint(176);
if (eval('' + degfixes.length) <= eval(1 + ideg)) {
degfixes.push(' ');
}
switch (degfixes[eval(1 + ideg)].substring(0,2).trim().split(',')[0].split('-')[0].split('|')[0].split('_')[0]) {
case 'E':
tobechanged+=degfixes[eval(1 + ideg)].split('E')[0] + 'E';
for (ijk=0; ijk<degfixes[eval(0 + ideg)].length; ijk++) {
if (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '.' || degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '-' || (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) >= '0' && degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) <= '9')) { nums+=degfixes[eval(0 + ideg)].substring(ijk).substring(0,1); }
}
xtlong='' + nums.replace(/^\-/g,'');
break;
case 'W':
tobechanged+=degfixes[eval(1 + ideg)].split('W')[0] + 'W';
for (ijk=0; ijk<degfixes[eval(0 + ideg)].length; ijk++) {
if (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '.' || degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '-' || (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) >= '0' && degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) <= '9')) { nums+=degfixes[eval(0 + ideg)].substring(ijk).substring(0,1); }
}
xtlong='_' + nums.replace(/^\-/g,'');
break;
case 'S':
tobechanged+=degfixes[eval(1 + ideg)].split('S')[0] + 'S';
for (ijk=0; ijk<degfixes[eval(0 + ideg)].length; ijk++) {
if (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '.' || degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '-' || (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) >= '0' && degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) <= '9')) { nums+=degfixes[eval(0 + ideg)].substring(ijk).substring(0,1); }
}
xtlat='_' + nums.replace(/^\-/g,'');
break;
case 'N':
tobechanged+=degfixes[eval(1 + ideg)].split('N')[0] + 'N';
for (ijk=0; ijk<degfixes[eval(0 + ideg)].length; ijk++) {
if (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '.' || degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) == '-' || (degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) >= '0' && degfixes[eval(0 + ideg)].substring(ijk).substring(0,1) <= '9')) { nums+=degfixes[eval(0 + ideg)].substring(ijk).substring(0,1); }
}
xtlat='' + nums.replace(/^\-/g,'');
break;
default:
break;
}
//alert('1:' + tobechanged + ' to ' + xtplace + '|' + xtlong + '|' + xtlat);
nums='';
haveseencapital=false;
minus='-';
if (degfixes[eval(-1 + ideg)].indexOf('}') != -1) { minus=String.fromCharCode(9); }
// Budgewoi33.2329° S, 151.5516° E{ydney}-{yes}Budge-Xwoi31.2329° S, 149.5516° E{elbourne}
//if (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1).toUpperCase() && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1).toLowerCase()) {
// haveseencapital;
// minus='-';
//}
switch (degfixes[eval(0 + ideg)].substring(0,2).trim().split(',')[0].split('-')[0].split('|')[0].split('_')[0]) {
case 'E':
ijk=eval(-1 + degfixes[eval(0 + ideg)].length);
while (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '.' || (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) >= '0' && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) <= '9')) {
nums=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + nums;
tobechanged=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + tobechanged;
ijk--;
}
xtlong='' + nums.replace(/^\-/g,'');
while (ijk >= 0 && (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == ',' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == ' ' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '-' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '[' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '|' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == ';')) {
tobechanged=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + tobechanged;
ijk--;
}
while (ijk >= 0 && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != minus && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != '}' && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != '[' && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != '|' && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != ';') {
xtplace=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + xtplace;
tobechanged=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + tobechanged;
ijk--;
}
//if (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '}') { xtplace=',' + xtplace; }
break;
case 'W':
ijk=eval(-1 + degfixes[eval(-1 + ideg)].length);
while (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '.' || (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) >= '0' && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) <= '9')) {
nums=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + nums;
tobechanged=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + tobechanged;
ijk--;
}
xtlong='_' + nums.replace(/^\-/g,'');
while (ijk >= 0 && (degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == ',' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == ' ' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '-' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '[' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == '|' || degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) == ';')) {
tobechanged=degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) + tobechanged;
ijk--;
}
while (ijk >= 0 && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != minus && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != '}' && degfixes[eval(-1 + ideg)].substring(ijk).substring(0,1) != '[' && degf