<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta id='myviewport' name='viewport' content='width=device-width, initial-scale=1, minimum-scale=0.1, maximum-scale=8, user-scalable=yes' >
<title>Interfacing to Google Charts Image Chart Venn Chart or Scatter Chart or GraphViz Chart - RJM Programming - November, 2023 ... thanks to https://stackoverflow.com/questions/18012420/draw-diagonal-lines-in-div-background-with-css</title>
<style>
html body { margin: 0 0 0 0; }
table { margin: 0 0 0 0; }
Given thattr { margin: 0 0 0 0; }
#tdleft { margin: 0 0 0 0; }
#myvenn { margin: 0 0 0 0; border-right: 1px dotted pink; border-bottom: 1px dotted pink; }
#dtext { margin: 0 0 0 0; }
.orect { margin: 0 0 0 0; }
.crect { margin: 0 0 0 0; }
.crerect { margin: 0 0 0 0; }
.ocirc { margin: 0 0 0 0; }
.ccirc { margin: 0 0 0 0; }
html body { padding: 0 0 0 0; }
table { padding: 0 0 0 0; }
tr { padding: 0 0 0 0; }
#tdleft { padding: 0 0 0 0; background-color: #eeeeee; background-image: url('//developers.google.com/static/chart/image/images/chart_172.png'); background-repeat: no-repeat; background-size: contain; }
#myvenn { padding: 0 0 0 0; }
#dtext { padding: 0 0 0 0; }
.orect { padding: 0 0 0 0; }
.crect { padding: 0 0 0 0; }
.crerect { padding: 0 0 0 0; }
.ocirc { padding: 0 0 0 0; }
.ccirc { padding: 0 0 0 0; }
canvas { padding: 0 0 0 0; margin: 0 0 0 0; border-top: 1px dotted pink; border-right: 1px dotted pink; border-bottom: 1px dotted pink; }
#fsangle { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewport='0 0 100 100' style='font-family:Verdana;font-size:10px;'><text y='50%'> \00B0</text></svg>"); background-repeat: no-repeat; background-position: center right; }
button { border-radius: 300px; padding: 1 12 1 12; }
.crossedtotl {
background:
linear-gradient(to top left,
rgba(127,127,127,0) 0%,
rgba(127,127,127,0) calc(50% - 0.8px),
rgba(127,127,127,1) 50%,
rgba(127,127,127,0) calc(50% + 0.8px),
rgba(127,127,127,0) 100%);
}
.crossedtotr {
background:
linear-gradient(to top right,
rgba(127,127,127,0) 0%,
rgba(127,127,127,0) calc(50% - 0.8px),
rgba(127,127,127,1) 50%,
rgba(127,127,127,0) calc(50% + 0.8px),
rgba(127,127,127,0) 100%);
}
.boldoption {
font-weight: bold;
}
</style>
<script type=text/javascript>
var venn_def="graph V {~~ node [shape=circle fontsize=12]~~ A [height=1 fillcolor=\"#90806090\" style=\"filled\" pos=\"184,144\" label=\"\" xlabel=\"A\" xlp=\"184,144\"]~~ B [height=1 fillcolor=\"#82927290\" style=\"filled\" pos=\"236,144\" label=\"\" xlabel=\"B\" xlp=\"232,150\"]~~ C [height=1 fillcolor=\"#66b69690\" style=\"filled\" pos=\"209,96\" label=\"\" xlabel=\"C\" xlp=\"202,96\"]~~ mylabelABC [shape=plaintext pos=\"0,0\" label=\"\" xlabel=\"\" xlp=\"210,126\"]~~ mylabelAB [shape=plaintext pos=\"0,0\" label=\"\" xlabel=\"\" xlp=\"210,148\"]~~ mylabelAC [shape=plaintext pos=\"0,0\" label=\"\" xlabel=\"\" xlp=\"200,120\"]~~ mylabelBC [shape=plaintext pos=\"0,0\" label=\"\" xlabel=\"\" xlp=\"220,120\"]~~ mylabel [shape=plaintext pos=\"0,0\" label=\"\" xlabel=\"My Venn Diagram\" xlp=\"84,160\"]~~}~~##";
var imagechartthere=true, exstring='', exstr='';
var alturl='';
var vals=[];
var firstpromptvenn=false;
var thescript='<scr' + 'ipt type="text/javascript">' + String.fromCharCode(10) + ' function youralert(othiso, oblurbo) { ' + String.fromCharCode(10) + " var yesno=confirm('' + oblurbo); " + String.fromCharCode(10) + String.fromCharCode(10) + ' } ' + String.fromCharCode(10) + '</sc' + 'ript>';
var scripteditor=' <details style=display:inline-block; id=detsed title="Edit your image event logic" onclick="fillindetsed(this);"><summary id=sumsed title="Edit your image event logic"><img title="Edit your image event logic" src=/MarkItUp/greenpen.png></img></summary></details>';
var done=false;
var pjsbih='', lastpjsbih='';
var prefixandon='';
var dtextis='dtext';
var obsuffix='';
var pretherest='';
var wasthing='', wasid='';
var newtherest='';
var tmod='';
var colchange='';
var cht=location.search.split('cht=')[1] ? decodeURIComponent(location.search.split('cht=')[1].split('&')[0]) : "b"; //"v";
if ((cht + ' ').substring(0,1) == 'p' && cht != 'p') { pretherest=cht.substring(1); }
//if ((cht + ' ').substring(0,2) == 'bv' && cht != 'bv') { pretherest=cht.substring(2); if (1 == 1) { cht='bv'; } }
if ((cht + ' ').substring(0,1) == 'bv'.substring(0,1) && cht != 'bv'.substring(0,1)) { pretherest=cht.substring(1); if (1 == 1) { cht='bv'.substring(0,1); } }
if ((cht + ' ').substring(0,1) == 'l' && cht != 'l') { pretherest=cht.substring(1); if (1 == 1) { cht='l'; } }
if ((cht + ' ').substring(0,1) == 'r' && cht != 'r') { pretherest=cht.substring(1); if (1 == 1) { cht='r'; } }
var ccode=location.search.split('chld=')[1] ? decodeURIComponent(location.search.split('chld=')[1].split('&')[0]) : "";
var ctype=location.search.split('type=')[1] ? decodeURIComponent(location.search.split('type=')[1].split('&')[0]) : cht;
var cname=(ctype.substring(0,1) == 'v' ? 'Venn Chart' : (ctype == 's' ? 'Scatter Chart' : (ctype == 'gv' ? 'GraphViz Chart' :
(ctype.substring(0,1) == 'p' ? 'Pie Chart' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? 'Bar Chart' : (ctype.substring(0,1) == 'l' ? 'Line Chart' :
(ctype == 'map' ? 'Map Chart' :
(ctype == 'gom' ? 'Google-O-Meter Chart' :
(ctype == 'r' ? 'Radar Chart' :
'')))))))));
var cencodename=(ctype.substring(0,1) == 'v' ? 'Venn%20Diagram' : (ctype == 's' ? 'Scatter%20Chart' : (ctype == 'gv' ? 'GraphViz%20Chart' :
(ctype.substring(0,1) == 'p' ? 'Pie%20Chart' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? 'Bar%20Chart' : (ctype.substring(0,1) == 'l' ? 'Line%20Chart' :
(ctype == 'map' ? 'Map%20Chart' :
(ctype == 'gom' ? 'Google-O-Meter%20Chart' :
(ctype == 'r' ? 'Radar%20Chart' :
'')))))))));
var chdt=(ctype.substring(0,1) == 'v' ? '&chd=t:' : (ctype == 's' ? '&chd=t:' : (ctype == 'gv' ? '&chl=' :
(ctype.substring(0,1) == 'p' ? pretherest + '&chd=t:' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? '&chd=t:' : (ctype.substring(0,1) == 'l' ? '&chd=t:' :
(ctype == 'map' ? '' :
(ctype == 'gom' ? '&chd=t:' :
(ctype == 'r' ? pretherest + '&chd=t:' :
'')))))))));
var chdeq=(ctype.substring(0,1) == 'v' ? '&chd=' : (ctype == 's' ? '&chd=' : (ctype == 'gv' ? '&chl=' :
(ctype.substring(0,1) == 'p' ? '&chd=' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? '&chd=' : (ctype.substring(0,1) == 'l' ? '&chd=' :
(ctype == 'map' ? '&chld=' :
(ctype == 'gom' ? '&chld=' :
(ctype == 'r' ? '&chd=' :
'')))))))));
var tc=(ctype.substring(0,1) == 'v' ? 't:' : (ctype == 's' ? 't:' : (ctype == 'gv' ? '' :
(ctype.substring(0,1) == 'p' ? 't:' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? 't:' : (ctype.substring(0,1) == 'l' ? 't:' :
(ctype == 'map' ? '' :
(ctype == 'gom' ? 't:' :
(ctype == 'r' ? 't:' :
'')))))))));
var chdl=(ctype.substring(0,1) == 'v' ? '&chdl=' : (ctype == 's' ? '&chdl=' : (ctype == 'gv' ? '' :
(ctype.substring(0,1) == 'p' ? '&chdl=' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? '&chbh=' : (ctype.substring(0,1) == 'l' ? '&chbh=' :
(ctype == 'map' ? '' :
(ctype == 'gom' ? '&chdl=' :
(ctype == 'r' ? '&chxt=x&chxl=' :
'')))))))));
var prenchtt=(ctype.substring(0,1) == 'v' ? venn_def.replace(/\ \&\ /g, ' and ') + '100,80,60,30,30,30,10' : (ctype == 's' ? '12,87,75,41,23,96,68,71,34,9|98,60,27,34,56,79,58,74,18,76|84,23,69,81,47,94,60,93,64,54' : (ctype == 'gv' ? 'graph{C_0--H_0[type=s];C_0--H_1[type=s];C_0--H_2[type=s];C_0--C_1[type=s];C_1--H_3[type=s];C_1--H_4[type=s];C_1--H_5[type=s]}' :
(ctype.substring(0,1) == 'p' ? '1,2,3,4' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? '5,5,5|10,10,10|15,15,15' : (ctype.substring(0,1) == 'l' ? '5,45,5|10,60,10|15,85,15' :
(ctype == 'map' ? '' :
(ctype == 'gom' ? '20,40,60' :
(ctype == 'r' ? '10,20,30,40,50' :
'')))))))));
var preachtt=(ctype.substring(0,1) == 'v' ? 'A|B|C' : (ctype == 's' ? 'Cats|Dogs' : (ctype == 'gv' ? '' :
(ctype.substring(0,1) == 'p' ? 'January|February|March|April' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? '15,4,15' : (ctype.substring(0,1) == 'l' ? '15,4,15' :
(ctype == 'map' ? '' :
(ctype == 'gom' ? 'A|B|C' :
(ctype == 'r' ? '0:|1|2|3|4|5|6' :
'')))))))));
var defchco=(ctype.substring(0,1) == 'v' ? 'ff0000,00ff00,0000ff' : (ctype == 's' ? 'FF0000|0000FF&chxt=x,y' : (ctype == 'gv' ? '' :
(ctype.substring(0,1) == 'p' ? 'ff0000,00ff00,0000ff,ff00ff' :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? '4D89F9,C6D9FD,C6FDD9&chxt=x,y' : (ctype.substring(0,1) == 'l' ? '3D89F9.B6D9FD,B6FDD9&chxt=x,y' :
(ctype == 'map' ? '' :
(ctype == 'gom' ? 'ff0000,00ff00,0000ff' :
(ctype == 'r' ? 'FF0000,FF9900,ff0a00,00ffb0,000cff' :
'')))))))));
var prechtt=(ctype.substring(0,1) == 'v' ? chdt + prenchtt + chdl + preachtt : (ctype == 's' ? chdt + prenchtt + chdl + preachtt + '&chxt=x,y' : (ctype == 'gv' ? chdt + prenchtt :
(ctype.substring(0,1) == 'p' ? chdt + prenchtt + chdl + preachtt :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? chdt + prenchtt + chdl + preachtt : (ctype.substring(0,1) == 'l' ? chdt + prenchtt + chdl + preachtt :
(ctype == 'map' ? '' :
(ctype == 'gom' ? chdt + prenchtt + chdl + preachtt :
(ctype == 'r' ? chdt + prenchtt + chdl + preachtt :
'')))))))));
var promptone=(ctype.substring(0,1) == 'v' ? "Enter delimited values string for Venn Diagram such that ... " + String.fromCharCode(10) + "For QuickCharts adjust the Dot code (where ~~ is line feed and wording is controlled via those xlabel attributes (within which \\n can signify a line feed) for maximum of 3 circles) and where hashes separate the Google Charts Image Chart Venn Chart first three values specify the sizes of three circles: A, B, & C. For chart with only two circles, specify zero for the third value." + String.fromCharCode(10) + "The fourth value specifies the size of the intersection of A and B." + String.fromCharCode(10) + "The fifth value specifies the size of the intersection of A and C. For a chart with only two circles, do not specify a value here." + String.fromCharCode(10) + "The sixth value specifies the size of the intersection of B and C. For a chart with only two circles, do not specify a value here." + String.fromCharCode(10) + "The seventh value specifies the size of the common intersection of A, B, and C. For a chart with only two circles, do not specify a value here." + String.fromCharCode(10) + String.fromCharCode(10) + "" : (ctype == 's' ? "Enter delimited values string for Scatter Chart" : (ctype == 'gv' ? "Enter delimited values string for GraphViz Chart" :
(ctype.substring(0,1) == 'p' ? "Enter delimited values string for Pie Chart" :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? "Enter v for Vertical or h for Horizontal then one of g for Group or s for Stacked or o for Overlapped Bar Chart look then a space and then enter delimited values string for Bar Chart. Here is a Candlestick and horizontal Bar Chart idea eg. hg 1:20,10,15,25,17,30|0,5,10,7,12,6|35,25,45,47,24,46|15,40,30,27,39,54|70,55,63,59,80,6 Here is a vertical Bar Chart and Box Chart idea vs 1:-1,5,10,7,12,-1|-1,25,30,27,24,-1|-1,40,45,47,39,-1|-1,55,63,59,80,-1|-1,30,40,35,30,-1|-1,-1,5,70,90,-1|-1,-1,-1,80,5,-1&chm=F,FF9900,0,1:4,40|H,0CBF0B,0,1:4,1:20|H,000000,4,1:4,1:40|H,0000FF,3,1:4,1:20|o,FF0000,5,-1,7|o,FF0000,6,-1,7 Prefix just the delimited string you enter by 1: to additionally display Candlestick/Box Charts or by 0: to only display Candlestick/Box Chart" :
(ctype.substring(0,1) == 'l' ? "Enter c for Even or s for Sparklines or xy for Just XY Line Chart look then a space and then enter delimited values string for Line Chart. Here is a Candlestick and Line Chart idea eg. c 1:20,10,15,25,17,30|0,5,10,7,12,6|35,25,45,47,24,46|15,40,30,27,39,54|70,55,63,59,80,6 Here is a Line Chart and Box Chart idea s 1:-1,5,10,7,12,-1|-1,25,30,27,24,-1|-1,40,45,47,39,-1|-1,55,63,59,80,-1|-1,30,40,35,30,-1|-1,-1,5,70,90,-1|-1,-1,-1,80,5,-1&chm=F,FF9900,0,1:4,40|H,0CBF0B,0,1:4,1:20|H,000000,4,1:4,1:40|H,0000FF,3,1:4,1:20|o,FF0000,5,-1,7|o,FF0000,6,-1,7 Prefix just the delimited string you enter by 1: to additionally display Candlestick/Box Charts or by 0: to only display Candlestick/Box Chart" :
(ctype == 'map' ? "" :
(ctype == 'gom' ? "Enter delimited values string for Google-O-Meter Chart" :
(ctype == 'r' ? "Enter delimited values string for Radar Chart but prefix with an s for smooth lines" :
"")))))))));
var oneprompt=(ctype.substring(0,1) == 'v' ? "Enter delimited values string for your Venn Diagram collaborations, optionally, such that ... " + String.fromCharCode(10) + "For QuickCharts adjust the Dot code (where ~~ is line feed) where hash separates the Google Charts Image Chart Venn Chart first three values specify the sizes of three circles: A, B, & C. For chart with only two circles, specify zero for the third value." + String.fromCharCode(10) + "The fourth value specifies the size of the intersection of A and B." + String.fromCharCode(10) + "The fifth value specifies the size of the intersection of A and C. For a chart with only two circles, do not specify a value here." + String.fromCharCode(10) + "The sixth value specifies the size of the intersection of B and C. For a chart with only two circles, do not specify a value here." + String.fromCharCode(10) + "The seventh value specifies the size of the common intersection of A, B, and C. For a chart with only two circles, do not specify a value here." + String.fromCharCode(10) + String.fromCharCode(10) + "" : (ctype == 's' ? "Enter delimited values string for Scatter Chart" : (ctype == 'gv' ? "Enter delimited values string for GraphViz Chart" :
(ctype.substring(0,1) == 'p' ? "Enter delimited values string for Pie Chart" :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? "Enter g for Grouped or s for Stacked or o for Overlapped Bar Chart look then a space and then enter delimited values string for Bar Chart. Here is a Candlestick and Bar Chart idea eg. g 1:20,10,15,25,17,30|0,5,10,7,12,6|35,25,45,47,24,46|15,40,30,27,39,54|70,55,63,59,80,6 Here is a vertical Bar Chart and Box Chart idea vs 1:-1,5,10,7,12,-1|-1,25,30,27,24,-1|-1,40,45,47,39,-1|-1,55,63,59,80,-1|-1,30,40,35,30,-1|-1,-1,5,70,90,-1|-1,-1,-1,80,5,-1&chm=F,FF9900,0,1:4,40|H,0CBF0B,0,1:4,1:20|H,000000,4,1:4,1:40|H,0000FF,3,1:4,1:20|o,FF0000,5,-1,7|o,FF0000,6,-1,7 Prefix just the delimited string you enter by 1: to additionally display Candlestick/Box Charts or by 0: to only display Candlestick/Box Chart" :
(ctype.substring(0,1) == 'l' ? "Enter c for Even or s for Sparklines or xy for Just XY Line Chart look then a space and then enter delimited values string for Line Chart. Here is a Candlestick and Line Chart idea eg. c 1:20,10,15,25,17,30|0,5,10,7,12,6|35,25,45,47,24,46|15,40,30,27,39,54|70,55,63,59,80,6 Here is a Line Chart and Box Chart idea s 1:-1,5,10,7,12,-1|-1,25,30,27,24,-1|-1,40,45,47,39,-1|-1,55,63,59,80,-1|-1,30,40,35,30,-1|-1,-1,5,70,90,-1|-1,-1,-1,80,5,-1&chm=F,FF9900,0,1:4,40|H,0CBF0B,0,1:4,1:20|H,000000,4,1:4,1:40|H,0000FF,3,1:4,1:20|o,FF0000,5,-1,7|o,FF0000,6,-1,7 Prefix just the delimited string you enter by 1: to additionally display Candlestick/Box Charts or by 0: to only display Candlestick/Box Chart" :
(ctype == 'map' ? "" :
(ctype == 'gom' ? "Enter delimited values string for Google-O-Meter Chart" :
(ctype == 'r' ? "Enter delimited values string for Radar Chart but prefix with an s for smooth lines" :
"")))))))));
var asktwo=(ctype.substring(0,1) == 'v' ? true : (ctype == 's' ? true : (ctype == 'gv' ? false :
(ctype.substring(0,1) == 'p' ? true :
((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? true : (ctype.substring(0,1) == 'l' ? true :
(ctype == 'map' ? false :
(ctype == 'gom' ? true :
(ctype == 'r' ? true :
false)))))))));
var answersuffix=(ctype.substring(0,1).replace('m','l').replace('b','l').replace('r','l') == 'l' ? '. Please note that optional Dynamic Icons are available via a suffixing string example applied to the second data point such as &chem=y;s=bubble_icon_text_small;d=ski,bb,Wheeee!,FFFFFF;dp=1;ds=0 ' : '');
var agvoh='';
var twopb=(ctype.substring(0,1) == 'p' ? 'Any optional legend or title argument snippets? Optionally prefix by 3 for 3d Pie Chart or by c for Concentric Pie Chart. Eg. 3' + chdl + preachtt + '&chtt=My%20' + cencodename + '&chco=' + defchco : 'Any optional legend or title argument snippets? Eg. ' + chdl + preachtt + '&chtt=My%20' + cencodename + '&chco=' + defchco);
var beforeanswer=(ctype.substring(0,1) == 'l' ? 'c ' : ((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? 'vg ' : ''));
var emsmlist='';
if ((document.URL.toLowerCase().indexOf('chd=t%3a') == -1 && document.URL.toLowerCase().indexOf('chd=t:') == -1) && document.URL.toLowerCase().indexOf('chd=t') != -1 && document.URL.toLowerCase().indexOf('%3a') != -1) {
tmod=document.URL.toLowerCase().split('chd=t')[1].split('%3')[0];
//tc='t' + tmod + ':';
//chdt=chdt.replace('t:', 't' + tmod + ':');
//answer=answer.trim().replace(tmod + ':','');
//therest+='&chm=F,,1,1:4,20';
} else if ((document.URL.toLowerCase().indexOf('chd=t%3a') == -1 && document.URL.toLowerCase().indexOf('chd=t:') == -1) && document.URL.toLowerCase().indexOf('chd=t') != -1 && document.URL.toLowerCase().substring(8).indexOf(':') != -1) {
tmod=document.URL.toLowerCase().split('chd=t')[1].split(':')[0];
//tc='t' + tmod + ':';
//chdt=chdt.replace('t:', 't' + tmod + ':');
//answer=answer.trim().replace(tmod + ':','');
//therest+='&chm=F,,1,1:4,20';
}
var atend="<canvas id=sharecanvas style=display:none;></canvas><input type=hidden id=uniquifier value=''></input><input type=hidden id=emlist value=''></input><a style=display:none; id=ainvite href='mailto:?subject=Demonstration%20of%20Interfacing%20to%20Google%20Charts%20Image%20Chart%20" + encodeURIComponent(cname) + "%20via%20" + encodeURIComponent('RJM Programming') + "%20...&body='>Invite</a><a style=display:none; id=sinvite href='sms:&body='>Invite</a><iframe name=fif id=fif style=display:none; src=//www.rjmprogramming.com.au/ITblog/550/350/?huh=huh></iframe><form target=fif id=postcc action='//www.rjmprogramming.com.au/ITblog/" + Math.min(550,window.innerWidth) + "/" + Math.min(350,window.innerHeight) + "/?cht=" + ctype + "' method=POST style=display:none;><input type=hidden id=canvcont name=canvcont value=''></input><input style=display:none; type=submit id=subcc></input></form><div style=display:none;><label for='shareurl'><input type=button onclick='downloadmaybe(); shareurl();' id='sbut' value='Share URL Link'></input>: </label><input onblur=changeu(this.value); title='Suffix by hashtag 1 is text and hashtag 2 is title' style='width:45%;' type=url value='' placeholder='https://www.rjmprogramming.com.au/ITblog/#RJM Programming Blog#IT Blog' id=shareurl ondblclick='this.value=trythis(this.placeholder);'></input><br><br><span> ... and/or ... </span><br><br><label for='files'><input type=button onclick=document.getElementById('share').click(); value='Share media or document files'></input>: </label><input id='files' type='file' accept='image/*,video/*,audio/*,application/*,text/*' multiple></div><br><br><button id='share' type='button'>Share your media or documents or link!</button><output id='output'></output><scr" + "ipt type='text/javascript' src='/web_share_api_test.js?canv" + "asshare=as_necessary9867654' defer></scr" + "ipt>";
atend='';
atend="<div id=dmap><map name='mymap' id='mymap'><area id=adef onclick=defclick(event); shape='default' nohref></map>" + thescript + "</div><iframe onload=sofarpj(this); id=pjs style=display:none; src='//www.rjmprogramming.com.au/presentation.json?rand=" + Math.floor(Math.random() * 19878675) + "'></iframe><input type=hidden id=emlist value=''></input><a style=display:none; id=ainvite href='mailto:?subject=Demonstration%20of%20Interfacing%20to%20Google%20Charts%20Image%20Chart%20" + encodeURIComponent(cname) + "%20via%20" + encodeURIComponent('RJM Programming') + "%20...&body='>Invite</a><a style=display:none; id=sinvite href='sms:&body='>Invite</a><iframe name=fif id=fif style=display:none; src=//www.rjmprogramming.com.au/ITblog/550/350/?huh=huh></iframe><form target=fif id=postcc action='//www.rjmprogramming.com.au/ITblog/" + Math.min(550,window.innerWidth) + "/" + Math.min(350,window.innerHeight) + "/?cht=" + ctype + "' method=POST style=display:none;><input type=hidden id=uniquifier name=uniquifier value=''></input><input type=hidden id=mapstuff name=mapstuff value=''></input><input type=hidden id=canvcont name=canvcont value=''></input><input style=display:none; type=submit id=subcc></input></form>"; //"<div style=display:none;><label for='shareurl'><input type=button onclick='downloadmaybe(); shareurl();' id='sbut' value='Share URL Link'></input>: </label><input onblur=changeu(this.value); title='Suffix by hashtag 1 is text and hashtag 2 is title' style='width:45%;' type=url value='' placeholder='https://www.rjmprogramming.com.au/ITblog/#RJM Programming Blog#IT Blog' id=shareurl ondblclick='this.value=trythis(this.placeholder);'></input><br><br><span> ... and/or ... </span><br><br><label for='files'><input type=button onclick=document.getElementById('share').click(); value='Share media or document files'></input>: </label><input id='files' type='file' accept='image/*,video/*,audio/*,application/*,text/*' multiple></div><br><br><button id='share' type='button'>Share your media or documents or link!</button><output id='output'></output><scr" + "ipt type='text/javascript' src='/web_share_api_test.js?canv" + "asshare=as_necessary9867654' defer></scr" + "ipt>";
thescript=location.search.split('cht=')[1] ? decodeURIComponent(location.search.split('cht=')[1].split('&')[0]) : thescript;
var findout=false;
var jufr='';
var vso=null;
try {
if (window.parent) { vso=window.parent; }
} catch(exc) {
vso=null;
}
if (vso != window) {
if (parent.document.URL.indexOf('/ITblog') != -1) {
if (chd != '') {
atend=atend;
} else {
atend="<div id=dmap><map name='mymap' id='mymap'><area id=adef onclick=\" defclick(event); if (!done) { done=false; if (atstart) { normalcall=false; ask(null); normalcall=true; atstart=false; } else { ask(event); } } \" shape='default' nohref>" + thescript + "</map></div><iframe onload=sofarpj(this); id=pjs style=display:none; src='//www.rjmprogramming.com.au/presentation.json?rand=" + Math.floor(Math.random() * 19878675) + "'></iframe><input type=hidden id=emlist value=''></input><a style=display:none; id=ainvite href='mailto:?subject=Demonstration%20of%20Interfacing%20to%20Google%20Charts%20Image%20Chart%20" + encodeURIComponent(cname) + "%20via%20" + encodeURIComponent('RJM Programming') + "%20...&body='>Invite</a><a style=display:none; id=sinvite href='sms:&body='>Invite</a><iframe name=fif id=fif style=display:none; src=//www.rjmprogramming.com.au/ITblog/550/350/?huh=huh></iframe><form target=fif id=postcc action='//www.rjmprogramming.com.au/ITblog/" + Math.min(550,window.innerWidth) + "/" + Math.min(350,window.innerHeight) + "/?cht=" + ctype + "' method=POST style=display:none;><input type=hidden id=uniquifier name=uniquifier value=''></input><input type=hidden id=mapstuff name=mapstuff value=''></input><input type=hidden id=canvcont name=canvcont value=''></input><input style=display:none; type=submit id=subcc></input></form>"; //"<div style=display:none;><label for='shareurl'><input type=button onclick='downloadmaybe(); shareurl();' id='sbut' value='Share URL Link'></input>: </label><input onblur=changeu(this.value); title='Suffix by hashtag 1 is text and hashtag 2 is title' style='width:45%;' type=url value='' placeholder='https://www.rjmprogramming.com.au/ITblog/#RJM Programming Blog#IT Blog' id=shareurl ondblclick='this.value=trythis(this.placeholder);'></input><br><br><span> ... and/or ... </span><br><br><label for='files'><input type=button onclick=document.getElementById('share').click(); value='Share media or document files'></input>: </label><input id='files' type='file' accept='image/*,video/*,audio/*,application/*,text/*' multiple></div><br><br><button id='share' type='button'>Share your media or documents or link!</button><output id='output'></output><scr" + "ipt type='text/javascript' src='/web_share_api_test.js?canv" + "asshare=as_necessary9867654' defer></scr" + "ipt>";
}
}
} else if (chd != '') {
atend="<div id=dmap><map name='mymap' id='mymap'><area id=adef onclick=\" defclick(event); if (!done) { done=false; if (atstart) { normalcall=false; ask(null); normalcall=true; atstart=false; } else { ask(event); } } \" shape='default' nohref>" + thescript + "</map></div><iframe onload=sofarpj(this); id=pjs style=display:none; src='//www.rjmprogramming.com.au/presentation.json?rand=" + Math.floor(Math.random() * 19878675) + "'></iframe><input type=hidden id=emlist value=''></input><a style=display:none; id=ainvite href='mailto:?subject=Demonstration%20of%20Interfacing%20to%20Google%20Charts%20Image%20Chart%20" + encodeURIComponent(cname) + "%20via%20" + encodeURIComponent('RJM Programming') + "%20...&body='>Invite</a><a style=display:none; id=sinvite href='sms:&body='>Invite</a><iframe name=fif id=fif style=display:none; src=//www.rjmprogramming.com.au/ITblog/550/350/?huh=huh></iframe><form target=fif id=postcc action='//www.rjmprogramming.com.au/ITblog/" + Math.min(550,window.innerWidth) + "/" + Math.min(350,window.innerHeight) + "/?cht=" + ctype + "' method=POST style=display:none;><input type=hidden id=uniquifier name=uniquifier value=''></input><input type=hidden id=mapstuff name=mapstuff value=''></input><input type=hidden id=canvcont name=canvcont value=''></input><input style=display:none; type=submit id=subcc></input></form>"; //"<div style=display:none;><label for='shareurl'><input type=button onclick='downloadmaybe(); shareurl();' id='sbut' value='Share URL Link'></input>: </label><input onblur=changeu(this.value); title='Suffix by hashtag 1 is text and hashtag 2 is title' style='width:45%;' type=url value='' placeholder='https://www.rjmprogramming.com.au/ITblog/#RJM Programming Blog#IT Blog' id=shareurl ondblclick='this.value=trythis(this.placeholder);'></input><br><br><span> ... and/or ... </span><br><br><label for='files'><input type=button onclick=document.getElementById('share').click(); value='Share media or document files'></input>: </label><input id='files' type='file' accept='image/*,video/*,audio/*,application/*,text/*' multiple></div><br><br><button id='share' type='button'>Share your media or documents or link!</button><output id='output'></output><scr" + "ipt type='text/javascript' src='/web_share_api_test.js?canv" + "asshare=as_necessary9867654' defer></scr" + "ipt>";
} else {
atend=atend;
}
var annowin=null, myfscol='', tcolbit='', origmap='';
var agscript="<canvas id=agcanvas style=display:none;></canvas>";
//"<scr" + "ipt type=text/javascript> v" + "ar ii=0, uniquif='', snapshots=[], elem=null, elemcontext=null, oimg=null; functi" + "on canvinit() { alert(43); elem=document.getElementById('agcanvas'); elemcontext=elem.getContext('2d'); elem.width=elem.width; elemcontext.drawImage(document.getElementById('talkimg'),0,0); if (ii == 0) { snapshots.push(elem.toDataURL()); document.getElementById('tdtr').style.background='url(' + snapshots[ii] + ');'; ii=1; setInterval(canvinit, 9000); } else { elem.width=elem.width; elemcontext.drawImage(document.getElementById('talkimg'),0,0); if (document.getElementById('tdtr').outerHTML.indexOf(elem.toDataURL()) == -1) { snapshots.push(elem.toDataURL()); document.getElementById('tdtr').style.background+=',url(' + snapshots[ii] + ');'; ii++; } } } setTime" + "out(canvinit, 3000); </scr" + "ipt>";
//while (agscript.indexOf(String.fromCharCode(10)) != -1) {
// agscript=agscript.replace(String.fromCharCode(10), ' ');
//}
var singhex='#777777';
var singcword='gray';
var singrval=127;
var singgval=127;
var singbval=127;
var fsx='0', fsxcss='';
var lastbit=" <button title='Other complex canvas annotation functionalities (forgoes the simpler ones above) ...' id=annobut onclick=\"document.getElementById('tdleft').style.verticalAlign='top'; setTimeout(prerepaint, 12000); if (arest.length != 0) { if (document.getElementById('myvenn').src.indexOf(arest) == -1) { pdivhide(); document.getElementById('myvenn').src=lessthannt(document.getElementById('myvenn').src.split(arest.substring(0,5))[0] + arest); document.getElementById('tdleft').style.verticalAlign='top'; } } annowin=window.open('/HTMLCSS/user_of_signature_signature.htm?elemode=img','_blank','top=445,left=620,width=900,height=440'); \" style=\"background-color:yellow;display:inline-block;\">More Annotations &<br>Broadcast Talk Possibilities</button><span id=spanprenchtt></span> <div id=sbshare style=display:inline-block;><button id=bshare onclick=repaint(this); style=display:none;>Repaint <font size=1>(but lose sharing emojis above)</font><br>also way to Broadcast Talk</button></div><br><br><div id=divcanvas style=display:none;><canvas id=bottomcanvas></canvas></div>";
var fszbit=' <span id=spanfsz></span><select id=fsz onchange="xfsz=huhnothing(this.value);"><option value=".10">10px</option><option value=".6">6px</option><option value=".8">8px</option><option value=".9">9px</option><option value=".11">11px</option><option value=".12">12px</option><option value=".14">14px</option><option value=".16">16px</option><option value=".18">18px</option><option value=".20">20px</option><option value=".24">24px</option><option value=".30">30px</option><option value=".36">36px</option><option value=".40">40px</option><option value=".48">48px</option><option value=".50">50px</option><option value=".64">64px</option></select> <input onchange="myfscol=hextoninedec(this.value.replace(String.fromCharCode(35),String.fromCharCode(32)).replace(String.fromCharCode(59),String.fromCharCode(32)).trim());" title=\"\" type=color id=fscol value="' + singhex + '"></input> <input onblur=fsxit(this); onchange=fsxit(this); type=number id=fsangle max=359 step=1 min=0 value=' + fsx + ' title=Angle></input>';
var origemailurl='mailto:?subject=My%20' + cencodename + '%20...%20best%20viewed%20in%20landscape%20...&body=';
var origsmsurl='sms:&body=My%20' + cencodename + '%20...%20best%20viewed%20in%20landscape%20...';
var smsee='';
var chd=location.search.split(chdeq)[1] ? (tc + decodeURIComponent(location.search.split(chdeq)[1].split('&')[0])).replace('t:t:', 't:').replace(/^t\:$/g, '') : "";
var therest=location.search.split(chdeq)[1] ? (pretherest + document.URL.split(document.URL.split('#')[0].split(chdeq)[1].split('&')[0])[1].split('#')[0]) : "";
newtherest=((ctype + ' ').substring(0,2).substring(0,1) == 'bv'.substring(0,1) ? therest : '');
var lasttext='';
var textnum=1;
var asmsurl='', aemailurl='', arest='';
var x=-1, y=-1, xx=-1, yy=-1, lastx=-1, lasty=-1;
var atstart=true;
var normalcall=true;
var mvp=null;
var elemLeft=0; // = elem.offsetLeft;
var elemTop=0; // = elem.offsetTop;
var curno=-1;
var needtohave=2;
var curmode=-1;
var xneeds=[], yneeds=[];
var xfsz='.10', fsy='';
var wascont='';
var canvw=0, canvh=0;
var nowcont='';
var celem=null, ccontext=null, cimg=null;
var scelem=null, sccontext=null, scimg=null;
var dorepaint=false;
var eightthousand=16000;
var lastval='';
var myxhr=null, rawhtml='';
var zhr=null, zform=null;
var inbetween='';
var ievn='img';
if (document.URL.indexOf('&woit=') != -1) { ievn='iframe'; }
var evn=' data-onload=canvit(this); onclick=';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// evn=' data-onload=canvit(this); ontouchdown=';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i)) {
inbetween='</tr><tr>';
}
}
var iijk=0, uniquif=''; snapshots=[], elem=null, elemcontext=null, oimg=null, checkforsquare=2;
function someencodeURIComponent(swhat) {
if (document.URL.indexOf('&woit=') != -1) { return encodeURIComponent(swhat).replace(/\%7C/g,'|'); }
return encodeURIComponent(swhat);
}
function tproc(ota) {
//alert(ota.value);
var tag = document.createElement('script');
if (1 == 1) {
obsuffix='&thescript=' + encodeURIComponent(ota.value);
if (document.getElementById('aemail')) {
hrefcheck(document.getElementById('aemail'));
}
//alert('<scr' + 'ipt type="text/javascript"> ' + String.fromCharCode(10) + ota.value + String.fromCharCode(10) + ' </scr' + 'ipt>');
tag.innerHTML = ' <scr'.substring(0,1) + 'ipt type="text/javascript"> '.slice(-1) + String.fromCharCode(10) + ota.value + String.fromCharCode(10) + ' </scr'.substring(0,1) + 'ipt> '.slice(-1);
document.getElementById('dmap').innerHTML=document.getElementById('mymap').outerHTML + ' <scr' + 'ipt type="text/javascript"> ' + String.fromCharCode(10) + ota.value + String.fromCharCode(10) + ' </scr' + 'ipt> ';
}
var firstScriptTag = document.getElementsByTagName('script')[eval(-1 + document.getElementsByTagName('script').length)];
//alert(tag.outerHTML);
firstScriptTag.insertAdjacentElement("afterend", tag);
//alert(ota.value);
document.getElementById('detsed').open=false;
}
function fillindetsed(odet) {
if (odet.innerHTML.split('</summary>')[1] == '') {
document.getElementById('tdleft').style.verticalAlign='top';
var onls=thescript.split('<scr' + 'ipt type="text/javascript">');
var onlstuff=onls[1].split('</sc' + 'ript>')[0];
xonlstuff=onlstuff;
while (xonlstuff.indexOf(String.fromCharCode(9)) != -1) {
xonlstuff=xonlstuff.replace(String.fromCharCode(9), ' ');
}
xonlstuff=xonlstuff.replace(/\ \ \ /g, ' ');
xonlstuff=xonlstuff.replace(/\ \ \ /g, ' ');
xonlstuff=xonlstuff.replace(/\ \ \ /g, ' ');
odet.innerHTML+='<scr' + 'ipt type="text/javascript">' + "<br><textarea onblur=tproc(this); id=tscript rows=100 cols=80 value=\"\">" + xonlstuff + "</textarea><br></script>";
//odet.innerHTML+='<scr' + 'ipt type="text/javascript">' + "<br><textarea onblur=tproc(this); id=tscript rows=100 cols=80 value=''>" + encodeURIComponent(onlstuff) + "</textarea><br></script>";
//document.getElementById('tscript').value=decodeURIComponent(document.getElementById('tscript').innerHTML);
//document.getElementById('tscript').value=xonlstuff;
}
}
function acton(what) {
if (what == '') {
document.getElementById('dmap').innerHTML='';
setTimeout(function(){ document.getElementById('myvenn').removeAttribute('usemap'); }, 200);
//alert('why');
} else {
document.getElementById('dmap').innerHTML=origmap;
document.getElementById('myvenn').useMap=what;
}
return what;
}
function defclick(evt) {
switch ('' + evt.type) {
case 'click':
alert('Welcome to RJM Programming interfacing to Google Charts Image Chart ' + cname);
break;
default:
switch (('' + evt.type + ' ').substring(0,5)) {
case 'mouse':
document.getElementById('myh3').innerHTML='RJM Programming - November, 2023 ... non-mobile mouse event ' + evt.type + ' called by ' + ('' + evt.target.id);
break;
case 'touch':
document.getElementById('myh3').innerHTML='RJM Programming - November, 2023 ... mobile touch event ' + evt.type + ' called by ' + ('' + evt.target.id);
break;
default:
alert(evt.type);
break;
}
break;
}
}
function dummyfsxo(inv) {
return inv;
}
function fsxo(inv) {
var zrs='';
//alert(' fsx=' + fsx + ' and inv=' + inv);
if (fsx == '0') { return inv; }
var extents=document.getElementsByTagName('p');
var minusn=-2;
if (inv == '') {
minusn=-1;
var beforerectex=extents[eval(minusn + extents.length)].getBoundingClientRect();
var wasfsx=fsxcss;
var wasfs=fsxcss.split('translate(');
if (eval('' + wasfs.length) > 1) {
for (var ikj=1; ikj<wasfs.length; ikj++) {
fsxcss=fsxcss.replace('translate(' + wasfs[ikj].split(')')[0] + ')', '');
}
}
fsxcss=fsxcss.replace(/\;\;/g,';');
wasfs=fsxcss.split('transform-origin:');
if (eval('' + wasfs.length) > 1) {
for (var jikj=1; jikj<wasfs.length; jikj++) {
fsxcss=fsxcss.replace('transform-origin:' + wasfs[jikj].split(';')[0] + ';', 'transform-origin:0 0;');
}
}
fsxcss=fsxcss.replace('rotate(', 'translate(-' + Math.floor(eval(beforerectex.width / 2)) + 'px,-' + Math.floor(eval(beforerectex.height / 2)) + 'px) rotate(').replace('transform-origin:0 0;', 'transform-origin:' + Math.floor(eval(beforerectex.width / 2)) + 'px ' + Math.floor(eval(beforerectex.height / 2)) + 'px;').replace('deJUNKg)', 'deg) translate(-' + Math.floor(eval(beforerectex.width / 2)) + 'px,-' + Math.floor(eval(beforerectex.height / 2)) + 'px)');
//alert(fsxcss + ' via ' + wasfsx);
if (1 == 11) {
setTimeout(function() {
if (arest.length != 0) {
if (document.getElementById('myvenn').src.indexOf(arest) == -1) {
bitpdivhide();
document.getElementById('myvenn').src=lessthannt(document.getElementById('myvenn').src.split(arest.substring(0,5))[0] + arest);
document.getElementById('tdleft').style.verticalAlign='top';
}
}
}, 1000);
}
return inv;
}
var rectex=extents[eval(-1 + extents.length)].getBoundingClientRect();
if (document.URL.indexOf('debug=') != -1) {
document.body.innerHTML+='<div style="position:absolute;border:1px solid rgba(255,0,0,0.5);top:' + rectex.top + 'px;left:' + rectex.left + 'px;width:' + rectex.width + 'px;height:' + rectex.height + 'px;z-index:200;" title="position:absolute;border:1px solid rgba(255,0,0,0.5);top:' + rectex.top + 'px;left:' + rectex.left + 'px;width:' + rectex.width + 'px;height:' + rectex.height + 'px;z-index:200;"></div>';
}
var invs=inv.split('.'); // angled text origin depends on angle quadrant
var wasi=inv;
var theang=eval('' + fsx);
//alert('' + inv + ' ' + theang);
if (eval('' + invs.length) > 2 && inv.indexOf(',') != -1) {
//alert('' + rectex.width + 'x' + rectex.height + ' ' + ';' + rectex.top + 'vs' + rectex.bottom + ' ' + ';' + rectex.left + 'vs' + rectex.right + ' ' + inv + ' ' + extents[-1 + extents.length].outerHTML + ' ' + rectex.x + '+' + rectex.y);
if (7 == 8) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left + rectex.width / 2)));
} else {
if (theang > (315 + 45) || theang < (45 + 45)) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 1 + rectex.right * 0 + 0 * rectex.width / 2)));
} else if (theang >= (45 + 45) && theang <= (135 + 45)) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 0 + rectex.right * 1 + 0 * rectex.width / 2)));
} else if (theang >= (225 + 45) && theang <= (315 + 45)) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 1 + rectex.right * 0 + 0 * rectex.width / 2)));
} else {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 0 + rectex.right * 1 + 0 * rectex.width / 2)));
}
}
if (7 == 8) {
inv=inv.replace(',' + invs[1].split(',')[1], ',' + Math.floor(eval(rectex.top + rectex.height / 2)));
} else {
if (theang > (315 + 45) || theang < (45 + 45)) {
inv=inv.replace(',' + invs[1].split(',')[1], ',' + Math.floor(eval(rectex.top * 0 + rectex.bottom * 1 + 0 * rectex.height / 2)));
//alert('' + wasi + ' vs ' + inv + ' ' + invs.length);
} else if (theang >= (225 + 45) && theang <= (315 + 45)) {
inv=inv.replace(',' + invs[1].split(',')[1], ',' + Math.floor(eval(rectex.top * 1 + rectex.bottom * 0 + 0 * rectex.height / 2)));
} else if (theang >= (45 + 45) && theang < (135 + 45)) {
inv=inv.replace(',' + invs[1].split(',')[1], ',' + Math.floor(eval(rectex.top * 0 + rectex.bottom * 1 + 0 * rectex.height / 2)));
} else {
inv=inv.replace(',' + invs[1].split(',')[1], ',' + Math.floor(eval(rectex.top * 1 + rectex.bottom * 0 + 0 * rectex.height / 2)));
}
}
//alert('was=' + wasi + ' and now=' + inv);
} else if (eval('' + invs.length) == 2 && inv.indexOf(',') != -1) {
//alert('' + rectex.width + 'x' + rectex.height + ' ' + ';' + rectex.top + 'vs' + rectex.bottom + ' ' + ';' + rectex.left + 'vs' + rectex.right + ' ' + inv + ' ' + extents[-1 + extents.length].outerHTML + ' ' + rectex.x + '+' + rectex.y);
if (theang > (315 + 45) || theang < (45 + 45)) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 1 + rectex.right * 0 + 0 * rectex.width / 2)));
} else if (theang >= (45 + 45) && theang <= (135 + 45)) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 0 + rectex.right * 1 + 0 * rectex.width / 2)));
} else if (theang >= (225 + 45) && theang <= (315 + 45)) {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 1 + rectex.right * 0 + 0 * rectex.width / 2)));
} else {
inv=inv.replace(invs[0], '' + Math.floor(eval(rectex.left * 0 + rectex.right * 1 + 0 * rectex.width / 2)));
}
invs=inv.split(',');
if (theang > (315 + 45) || theang <= (45 + 45)) {
inv=inv.replace(',' + invs[1].split(',')[0].split('.')[0], ',' + Math.floor(eval(rectex.top * 0 + rectex.bottom * 1 + 0 * rectex.height / 2)));
//alert('' + wasi + ' vs ' + inv + ' ' + invs.length);
} else if (theang >= (225 + 45) && theang <= (315 + 45)) {
inv=inv.replace(',' + invs[1].split(',')[0].split('.')[0], ',' + Math.floor(eval(rectex.top * 1 + rectex.bottom * 0 + 0 * rectex.height / 2)));
} else if (theang >= (45 + 45) && theang < (135 + 45)) {
inv=inv.replace(',' + invs[1].split(',')[0].split('.')[0], ',' + Math.floor(eval(rectex.top * 0 + rectex.bottom * 1 + 0 * rectex.height / 2)));
} else {
inv=inv.replace(',' + invs[1].split(',')[0].split('.')[0], ',' + Math.floor(eval(rectex.top * 1 + rectex.bottom * 0 + 0 * rectex.height / 2)));
}
//alert('was=' + wasi + ' and now=' + inv);
}
if (eval('' + fsx) > 5) {
zrs='0' + ('000' + fsx).slice(-3) + '0';
} else {
for (var jsx=0; jsx<eval('' + fsx); jsx++) {
zrs+='0';
}
}
if (inv.indexOf('.') != -1) {
//alert(' fsx=' + fsx + ' and zrs=' + zrs + ' ' + inv.replace('.', '.' + zrs));
return inv.replace('.', '.' + zrs);
}
return zrs + inv;
}
function fsxit(inv) {
// transform-origin: 0 0; transform: translate(-100%, 50%) rotate(45deg) translate(100%, -50%);
if (('' + inv.value).trim() != '') { fsx='' + inv.value; fsxcss='visibility:visible;opacity:1.0;transform-origin:0 0;transform:rotate(' + eval(360 - eval('' + fsx)) + 'deg);'; } else { fsxcss=''; }
//if (('' + inv.value).trim() != '') { fsx='' + inv.value; fsxcss='transform:rotate(' + eval(360 - eval('' + fsx)) + 'deg);'; } else { fsxcss=''; }
}
function huhnothing(invl) {
if (invl == '') { return xfsz; }
return invl;
}
function hextoninedec(inv) {
inv=inv.toLowerCase();
var retval=''; //('000000000' + parseInt(inv, 16)).slice(-9);
var letters='0123456789abcdef';
var rvalis=0, gvalis=0, bvalis=0, aval='';
for (var iiu=1; iiu<=inv.length; iiu++) {
aval=inv.substring(eval(-1 + iiu)).substring(0,1);
if (iiu == 1) {
rvalis+=eval(16 * eval(letters.indexOf('' + aval)));
} else if (iiu == 2) {
rvalis+=eval(1 * eval(letters.indexOf('' + aval)));
} else if (iiu == 3) {
gvalis+=eval(16 * eval(letters.indexOf('' + aval)));
} else if (iiu == 4) {
gvalis+=eval(1 * eval(letters.indexOf('' + aval)));
} else if (iiu == 5) {
bvalis+=eval(16 * eval(letters.indexOf('' + aval)));
} else if (iiu == 6) {
bvalis+=eval(1 * eval(letters.indexOf('' + aval)));
}
}
retval=('000' + rvalis).slice(-3) + ('000' + gvalis).slice(-3) + ('000' + bvalis).slice(-3);
singcword='#' + inv;
tcolbit='color:' + singcword + ';';
fsy='.' + retval;
singhex=singcword;
singrval=eval(('#' + retval.substring(0,3).trimStart('0')).replace(/^\#$/g, '0').replace('#',''));
singgval=eval(('#' + retval.substring(3).substring(0,3).trimStart('0')).replace(/^\#$/g, '0').replace('#',''));
singbval=eval(('#' + retval.substring(6).substring(0,3).trimStart('0')).replace(/^\#$/g, '0').replace('#',''));
//alert('inv=' + inv + ' retval=' + retval + ' singcword=' + singcword + ' (' + singrval + ',' + singgval + ',' + singbval + ')');
if (colchange == '') {
colchange='0';
} else {
colchange='' + eval(1 + eval('' + colchange));
}
document.getElementById('dstyle').innerHTML+='<style> .crossedtotl' + colchange + ' { background: linear-gradient(to top left, rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) 0%, rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) calc(50% - 0.8px), rgba(' + singrval + ',' + singgval + ',' + singbval + ',1) 50%, rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) calc(50% + 0.8px), rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) 100%); } .crossedtotr' + colchange + ' { background: linear-gradient(to top right, rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) 0%, rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) calc(50% - 0.8px), rgba(' + singrval + ',' + singgval + ',' + singbval + ',1) 50%, rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) calc(50% + 0.8px), rgba(' + singrval + ',' + singgval + ',' + singbval + ',0) 100%); } </style>';
if (xfsz != '') {
fszbit=' <span id=spanfsz></span><select id=fsz onchange="xfsz=huhnothing(this.value);"><option value="' + xfsz + '">' + xfsz.replace('.','') + 'px</option><option value=".10">10px</option><option value=".6">6px</option><option value=".8">8px</option><option value=".9">9px</option><option value=".11">11px</option><option value=".12">12px</option><option value=".14">14px</option><option value=".16">16px</option><option value=".18">18px</option><option value=".20">20px</option><option value=".24">24px</option><option value=".30">30px</option><option value=".36">36px</option><option value=".40">40px</option><option value=".48">48px</option><option value=".50">50px</option><option value=".64">64px</option></select> <input onchange="myfscol=hextoninedec(this.value.replace(String.fromCharCode(35),String.fromCharCode(32)).replace(String.fromCharCode(59),String.fromCharCode(32)).trim());" title=\"\" type=color id=fscol value="' + singhex + '"></input> <input onblur=fsxit(this); onchange=fsxit(this); type=number id=fsangle max=359 step=1 min=0 value=' + fsx + ' title=Angle></input>';
if (document.getElementById('fsz')) { document.getElementById('fsz').value=xfsz; }
if (document.getElementById('fsangle')) { document.getElementById('fsangle').value='' + fsx; }
} else {
fszbit=' <span id=spanfsz></span><select id=fsz onchange="xfsz=huhnothing(this.value);"><option value=".10">10px</option><option value=".6">6px</option><option value=".8">8px</option><option value=".9">9px</option><option value=".11">11px</option><option value=".12">12px</option><option value=".14">14px</option><option value=".16">16px</option><option value=".18">18px</option><option value=".20">20px</option><option value=".24">24px</option><option value=".30">30px</option><option value=".36">36px</option><option value=".40">40px</option><option value=".48">48px</option><option value=".50">50px</option><option value=".64">64px</option></select> <input onchange="myfscol=hextoninedec(this.value.replace(String.fromCharCode(35),String.fromCharCode(32)).replace(String.fromCharCode(59),String.fromCharCode(32)).trim());" title=\"\" type=color id=fscol value="' + singhex + '"></input> <input onblur=fsxit(this); onchange=fsxit(this); type=number id=fsangle max=359 step=1 min=0 value=' + fsx + ' title=Angle></input>';
}
return '' + retval;
}
function canvinit() {
var kkii=0, wpx=0, hpx=0;
var tdr=document.getElementById('tdtr').getBoundingClientRect();
wpx=eval('' + tdr.width);
hpx=eval('' + tdr.height);
elem=document.getElementById('agcanvas');
elemcontext=elem.getContext('2d');
elem.width=elem.width;
elemcontext.drawImage(document.getElementById('talkimg'),0,0);
if (iijk == 0 || ('' + document.getElementById('tdtr').style.backgroundImage).indexOf('rand=0') != -1) {
//alert('89 ' + elem.toDataURL().length);
//snapshots.push(elem.toDataURL());
iijk=eval(-1 + eval('' + ('' + document.getElementById('tdtr').style.backgroundImage).split('),').length));
document.getElementById('tdtr').style.backgroundImage=('' + document.getElementById('tdtr').style.backgroundImage).replace(('' + document.getElementById('tdtr').style.backgroundImage).split('),')[iijk], '' + 'url(' + elem.toDataURL() + '),' + ('' + document.getElementById('tdtr').style.backgroundImage).split('),')[iijk]).replace('rand=0', 'rand=x');
iijk=eval(0 + eval('' + ('' + document.getElementById('tdtr').style.backgroundImage).split('),').length));
setInterval(canvinit, 9000);
} else {
elem.width=elem.width;
elemcontext.drawImage(document.getElementById('talkimg'),0,0);
if (document.body.innerHTML.indexOf(elem.toDataURL()) == -1) {
//snapshots.push(elem.toDataURL());
iijk=eval(-1 + eval('' + ('' + document.getElementById('tdtr').style.backgroundImage).split('),').length));
document.getElementById('tdtr').style.backgroundImage=('' + document.getElementById('tdtr').style.backgroundImage).replace(('' + document.getElementById('tdtr').style.backgroundImage).split('),')[iijk], '' + 'url(' + elem.toDataURL() + '),' + ('' + document.getElementById('tdtr').style.backgroundImage).split('),')[iijk]).replace('rand=x','rand=x' + Math.floor(Math.random() * 9));
iijk=eval(0 + eval('' + ('' + document.getElementById('tdtr').style.backgroundImage).split('),').length));
}
}
var bpx='background-position:;';
var bbpx='background-position:;';
var bsx='background-size:;';
var brx='background-repeat:;';
var xstart=0;
var ystart=0;
var xxstart=eval('' + tdr.left);
var yystart=eval('' + tdr.top);
if (iijk > eval(checkforsquare * checkforsquare)) { checkforsquare++; }
for (kkii=1; kkii<=iijk; kkii++) {
if (bsx.indexOf(':;') != -1) {
bsx=bsx.replace(':;', ':' + Math.round(eval(wpx / checkforsquare)) + 'px ' + Math.round(eval(hpx /checkforsquare)) + 'px;');
brx=brx.replace(':;', ':no-repeat;');
bpx=bpx.replace(':;', ':' + Math.round(xstart) + 'px ' + Math.round(ystart) + 'px;');
bbpx=bbpx.replace(':;', ':' + Math.round(xxstart) + 'px ' + Math.round(yystart) + 'px;');
} else {
bsx=bsx.replace(';', ',' + Math.round(eval(wpx / checkforsquare)) + 'px ' + Math.round(eval(hpx /checkforsquare)) + 'px;');
brx=brx.replace(';', ',no-repeat;');
bpx=bpx.replace(';', ',' + Math.round(xstart) + 'px ' + Math.round(ystart) + 'px;');
bbpx=bbpx.replace(';', ',' + Math.round(xxstart) + 'px ' + Math.round(yystart) + 'px;');
}
if (eval(kkii % checkforsquare) == 0) {
xstart=0;
xxstart=eval('' + tdr.left);
ystart+=eval(hpx / checkforsquare);
yystart+=eval(hpx / checkforsquare);
} else {
xstart+=eval(wpx / checkforsquare);
xxstart+=eval(wpx / checkforsquare);
}
}
//alert('iijk=' + iijk + ' ' + bbpx + ' ' + bpx + ' ' + bsx + ' ' + brx);
document.getElementById('tdtr').style.backgroundRepeat=brx.split(':')[1];
document.getElementById('tdtr').style.backgroundSize=bsx.split(':')[1];
document.getElementById('tdtr').style.backgroundPosition=bpx.split(':')[1];
//document.body.style.backgroundImage=('' + document.getElementById('tdtr').style.backgroundImage);
//document.body.style.backgroundRepeat=brx.split(':')[1];
//document.body.style.backgroundSize=bsx.split(':')[1];
document.body.style.backgroundPosition=bbpx.split(':')[1];
var kdss=bsx.split(':')[1].replace(/\;/g,'').split(',');
var idss=bbpx.split(':')[1].replace(/\;/g,'').split(',');
var jdss=(('' + document.getElementById('tdtr').style.backgroundImage) + ',').replace(';,',',').replace(/url\(/g,'').replace(/URL\(/g,'').replace(/\"\;/g,'').replace(/\"/g,'').split('),');
document.getElementById('idiv').innerHTML='';
var istuff='', laststuff='';
for (var iop=0; iop<idss.length; iop++) {
//while (istuff == laststuff) {
if (('' + jdss[iop]) != 'undefined' && ('' + jdss[iop]).trim() != '') {
if (jdss[iop].trim().indexOf('iVBOR') != -1) {
istuff+='<img style="position:absolute;width:' + kdss[iop].split(' ')[0] + ';height:' + kdss[iop].split(' ')[1] + ';left:' + idss[iop].split(' ')[0] + ';top:' + idss[iop].split(' ')[1] + ';" src="data:image/png;base64,iVBOR' + jdss[iop].trim().split('iVBOR')[1] + '"></img>';
} else if (jdss[iop].trim() .indexOf('//') != -1) {
istuff+='<img style="position:absolute;width:' + kdss[iop].split(' ')[0] + ';height:' + kdss[iop].split(' ')[1] + ';left:' + idss[iop].split(' ')[0] + ';top:' + idss[iop].split(' ')[1] + ';" src="' + jdss[iop].trim() + '"></img>';
}
//}
laststuff=istuff;
}
}
document.getElementById('idiv').innerHTML=istuff;
}
function bitpdivhide() {
var elemsare=document.getElementsByTagName('p');
var ijh=0;
for (ijh=0; ijh<elemsare.length; ijh++) {
if (elemsare[ijh].outerHTML.indexOf(' class=') != -1) {
elemsare[ijh].style.visibility='hidden';
}
}
elemsare=document.getElementsByTagName('div');
for (ijh=0; ijh<elemsare.length; ijh++) {
if (elemsare[ijh].outerHTML.indexOf(' class=') != -1) {
elemsare[ijh].style.visibility='hidden';
}
}
}
function pdivhide() {
setTimeout(nofsz, 4000);
var elemsare=document.getElementsByTagName('p');
var ijh=0;
for (ijh=0; ijh<elemsare.length; ijh++) {
if (elemsare[ijh].outerHTML.indexOf(' class=') != -1) {
elemsare[ijh].style.visibility='hidden';
}
}
elemsare=document.getElementsByTagName('div');
for (ijh=0; ijh<elemsare.length; ijh++) {
if (elemsare[ijh].outerHTML.indexOf(' class=') != -1) {
elemsare[ijh].style.visibility='hidden';
}
}
document.getElementById('ilp').style.visibility='hidden';
document.getElementById('fscol').style.visibility='hidden';
document.getElementById('fsangle').style.visibility='hidden';
document.getElementById('fsz').style.visibility='hidden';
document.getElementById('line').style.visibility='hidden';
document.getElementById('rectangle').style.visibility='hidden';
document.getElementById('orectangle').style.visibility='hidden';
document.getElementById('circle').style.visibility='hidden';
document.getElementById('ocircle').style.visibility='hidden';
document.getElementById('detsed').style.visibility='hidden';
document.getElementById('orerect').style.visibility='hidden';
document.getElementById('ilp').style.display='none';
document.getElementById('line').style.display='none';
document.getElementById('rectangle').style.display='none';
document.getElementById('orectangle').style.display='none';
document.getElementById('circle').style.display='none';
document.getElementById('ocircle').style.display='none';
document.getElementById('detsed').style.display='none';
document.getElementById('orerect').style.display='none';
document.getElementById('fscol').style.display='none';
document.getElementById('fsangle').style.display='none';
document.getElementById('fsz').style.display='none';
document.getElementById('tdleft').style.verticalAlign='top';
if (document.getElementById('spanfsz')) { document.getElementById('spanfsz').innerHTML=''; }
}
function nofsz() {
//alert(4);
if (document.getElementById('fsz') && 1 == 5) {
document.getElementById('fsz').style.position='absolute';
document.getElementById('fsz').style.top='-300px';
document.getElementById('fsz').style.left='-300px';
document.getElementById('fsz').style.opacity='0.0';
document.getElementById('fsz').style.visibility='hidden';
}
if (document.getElementById('spanfsz')) { document.getElementById('spanfsz').innerHTML=''; }
//alert(44);
}
function askaway() {
var waspis=prefixandon, nl='', newwaspis='';
if (document.getElementById('bcommentary')) {
if (document.getElementById('bcommentary').value.trim() != '') {
document.getElementById('bcommentary').value=document.getElementById('bcommentary').value.replace(/\'/g,'`').replace(/\"/g,'`');
if (document.getElementById('bcommentary').value.trim().indexOf(String.fromCharCode(10)) == -1) {
nl=String.fromCharCode(10);
}
eightthousand=24000;
if ((' ' + document.getElementById('bcommentary').value.trim()).slice(-3) != '...' && (' ' + prefixandon.trim()).slice(-3) != '...' && (document.getElementById('bcommentary').value.trim() + ' ').substring(0,3) != '...') {
prefixandon='';
lastval='';
} else if ((document.getElementById('bcommentary').value.trim() + ' ').substring(0,3) == '...') {
if (waspis.indexOf(lastval.trim()) == -1) {
prefixandon=String.fromCharCode(10) + lastval.trim().replace(/\.\.\.NoWayJosE$/g, ' ' + nl + ('' + (new Date())) + ' ... ') + waspis;
newwaspis=prefixandon;
}
}
if ((' ' + document.getElementById('bcommentary').value.trim()).slice(-3) == '...') {
document.getElementById('ifco').src=lessthannt('//www.rjmprogramming.com.au/ITblog/' + Math.min(550,window.innerWidth) + '/' + Math.min(350,window.innerHeight) + '/?uniquifier=' + encodeURIComponent(document.getElementById('uniquifier').value) + '&canvcont=' + encodeURIComponent(document.getElementById('bcommentary').value.trim().replace(/\.\.\.$/g, ' ' + nl + ('' + (new Date())) + ' ... ' + String.fromCharCode(10) + String.fromCharCode(10) + prefixandon)));
} else {
document.getElementById('ifco').src=lessthannt('//www.rjmprogramming.com.au/ITblog/' + Math.min(550,window.innerWidth) + '/' + Math.min(350,window.innerHeight) + '/?uniquifier=' + encodeURIComponent(document.getElementById('uniquifier').value) + '&canvcont=' + encodeURIComponent(document.getElementById('bcommentary').value + String.fromCharCode(10) + String.fromCharCode(10) + prefixandon));
}
document.getElementById('bcommentary').title=document.getElementById('bcommentary').value;
if ((document.getElementById('bcommentary').value.trim() + ' ').substring(0,3) == '...') {
if (newwaspis != '') { waspis=newwaspis; }
if (waspis.indexOf(document.getElementById('bcommentary').value.trim()) == -1) {
prefixandon=String.fromCharCode(10) + document.getElementById('bcommentary').value.trim().replace(/\.\.\.$/g, ' ' + nl + ('' + (new Date())) + ' ... ') + waspis;
}
}
lastval=document.getElementById('bcommentary').value;
document.getElementById('bcommentary').value='';
if (document.getElementById('dmap')) {
if (document.getElementById('mapstuff').value == '') {
//alert(document.getElementById('dmap').innerHTML);
document.getElementById('mapstuff').value=document.getElementById('dmap').innerHTML.replace(document.getElementById('adef').outerHTML, '<area id=adef onclick=defclick(event); shape=default nohref>').replace(/\ \ \ /g, String.fromCharCode(9)).replace(/\+\=/g, ' += ');
}
}
setTimeout(function(){ document.getElementById('subcc').click(); }, 2000);
}
}
}
function lessthannt(insd) {
if (5 == 6) {
if (document.URL.indexOf('?') == -1 && insd.indexOf('chof=json') == -1 && !document.getElementById('dmap')) {
setTimeout(function(){ document.getElementById('dmap').innerHTML='<map name="mymap" id="mymap"><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="rect" coords="523,165,535,177" id="legend0" name="legend0" alt="legend0" onclick="youralert(this,~This feature name is legend0~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="rect" coords="523,183,535,195" id="legend1" name="legend1" alt="legend1" onclick="youralert(this,~This feature name is legend1~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="rect" coords="523,201,535,213" id="legend2" name="legend2" alt="legend2" onclick="youralert(this,~This feature name is legend2~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="circle" coords="324,222,127" id="circle0" name="circle0" alt="circle0" onclick="youralert(this,~This feature name is circle0~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="circle" coords="176,222,113" id="circle1" name="circle1" alt="circle1" onclick="youralert(this,~This feature name is circle1~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="circle" coords="237,126,98" id="circle2" name="circle2" alt="circle2" onclick="youralert(this,~This feature name is circle2~);" nohref=""><area id="adef" onclick=" defclick(event); if (!done) { done=false; if (atstart) { normalcall=false; ask(null); normalcall=true; atstart=false; } else { ask(event); } } " shape="default" nohref=""></map>'.replace(/\~/g, "'"); }, 6000);
//alert(insd);
if (eval('' + insd.length) < 794) { return insd; }
return insd.substring(0, 794);
} else if (document.URL.indexOf('?') == -1 && insd.indexOf('chof=json') == -1 && document.getElementById('dmap').innerHTML == '') {
document.getElementById('dmap').innerHTML='<map name="mymap" id="mymap"><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="rect" coords="523,165,535,177" id="legend0" name="legend0" alt="legend0" onclick="youralert(this,~This feature name is legend0~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="rect" coords="523,183,535,195" id="legend1" name="legend1" alt="legend1" onclick="youralert(this,~This feature name is legend1~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="rect" coords="523,201,535,213" id="legend2" name="legend2" alt="legend2" onclick="youralert(this,~This feature name is legend2~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="circle" coords="324,222,127" id="circle0" name="circle0" alt="circle0" onclick="youralert(this,~This feature name is circle0~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="circle" coords="176,222,113" id="circle1" name="circle1" alt="circle1" onclick="youralert(this,~This feature name is circle1~);" nohref=""><area onmousedown="defclick(event);" ondblclick="defclick(event);" oncontextmenu="defclick(event);" ontouchend="defclick(event);" ontouchstart="defclick(event);" onmouseout="defclick(event);" onmousemove="defclick(event);" ontouchdown="defclick(event);" onmouseover="defclick(event);" shape="circle" coords="237,126,98" id="circle2" name="circle2" alt="circle2" onclick="youralert(this,~This feature name is circle2~);" nohref=""><area id="adef" onclick=" defclick(event); if (!done) { done=false; if (atstart) { normalcall=false; ask(null); normalcall=true; atstart=false; } else { ask(event); } } " shape="default" nohref=""></map>'.replace(/\~/g, "'");
//alert('2: ' + insd);
if (eval('' + insd.length) < 794) { return insd; }
return insd.substring(0, 794);
}
}
if (insd.indexOf('?') != -1 && insd.indexOf('ufr=') == -1) {
if (jufr == '') {
jufr='_' + Math.floor(Math.random() * 19878675);
}
//insd+='&ufr=' + jufr;
if (document.URL.indexOf('&woit=') != -1) { insd+='&screenheight=900#ufr=' + jufr; } else { insd+='&ufr=' + jufr; }
}
if (insd.indexOf('?') != -1 && insd.indexOf('chof=json') == -1 && ((ctype + ' ').substring(0,2).replace(/^v/g,'go').replace(/^p/g,'go').replace(/^b/g,'go').replace(/^l/g,'go').replace(/^s/g,'go').replace(/^r/g,'go').substring(0,1) == 'go'.substring(0,1) ? true : false)) {
insd=insd + '&chof=json';
}
if (insd.indexOf('chof=json') != -1) {
var ampfrom='&';
var ampto='';
if (insd.indexOf('/ITblog/') == -1 || insd.indexOf('/ITblog/render') != -1) {
ampto='&chs=550x350&';
} else {
ampto='&chs=' + insd.split('/ITblog/')[1].split('/')[0] + 'x' + insd.split('/ITblog/')[1].split('/')[1].split('/')[0].split('?')[0].split('#')[0] + '&';
}
//window.open(insd.replace(insd.split('?')[0], '//chart.googleapis.com/chart').replace(ampfrom, ampto), '_blank', 'top=50,left=50,width=500,height=500');
//insd=insd.replace('?chof=json&', '?').replace('&chof=json', '');
lastpjsbih=pjsbih + ' ';
setTimeout(function(){ if (document.getElementById('pjs')) { document.getElementById('pjs').src=document.getElementById('pjs').src.split('=')[0] + '=' + Math.floor(Math.random() * 198786754); } }, 6000);
}
if (eval('' + insd.length) < 794) { return insd; }
return insd.substring(0, 794);
}
function newfunction() {
if (document.getElementById('bshare')) {
document.getElementById('sbshare').innerHTML='<iframe id=ifco style=display:none; src=></iframe><br><br><textarea rows=2 cols=80 id=bcommentary placeholder="Commentary to Viewers can go here ... start with or end with ... for ongoing ..." onblur="askaway(this);" value=""></textarea><br><br>';
}
}
function prerepaint() {
if (wascont == '' && annowin.document.getElementById('topcanvas')) {
wascont=annowin.document.getElementById('topcanvas').toDataURL();
canvw=annowin.document.getElementById('topcanvas').width;
canvh=annowin.document.getElementById('topcanvas').height;
celem=document.getElementById('bottomcanvas');
celem.width=canvw;
celem.height=canvh;
ccontext = celem.getContext("2d");
//document.getElementById('divcanvas').style.display='block';
//setTimeout(prerepaint, 10000);
if (wascont != '') { setInterval(prerepaint, 24000); }
} else {
try {
nowcont=annowin.document.getElementById('topcanvas').toDataURL();
} catch(erewt) {
nowcont='';
}
var isok=true;
if (nowcont != wascont) {
if (eval('' + nowcont.length) < eval('' + wascont.length)) {
if (annowin) {
if (!annowin.closed) { isok=true; } else { isok=false; if (document.getElementById('bshare')) { document.getElementById('bshare').disabled=true; } }
} else {
isok=false;
if (document.getElementById('bshare')) {
document.getElementById('bshare').disabled=true;
}
}
if (!isok) { nowcont=wascont; }
}
if (isok) {
if (document.getElementById('bshare')) {
document.getElementById('bshare').style.display='inline-block';
}
document.getElementById('divcanvas').style.display='block';
cimg=new Image;
cimg.onload = function(){
ccontext.drawImage(cimg,0,0);
};
cimg.src=nowcont;
if (dorepaint) {
document.getElementById('myvenn').src=nowcont;
if (9 == 99) {
document.getElementById('uniquifier').value='_96';
}
if (document.getElementById('uniquifier').value != '' || document.getElementById('canvcont').value == '') {
document.getElementById('canvcont').value=nowcont;
if (document.getElementById('dmap')) {
if (document.getElementById('mapstuff').value == '') {
//alert(document.getElementById('dmap').innerHTML);
document.getElementById('mapstuff').value=document.getElementById('dmap').innerHTML.replace(document.getElementById('adef').outerHTML, '<area id=adef onclick=defclick(event); shape=default nohref>').replace(/\ \ \ /g, String.fromCharCode(9)).replace(/\+\=/g, ' += ');
}
}
document.getElementById('subcc').click();
}
}
wascont=nowcont;
// setTimeout(prerepaint, 24000);
}
}
}
}
function prehrefcheck(inso) {
if (obsuffix != '') {
zhr = new XMLHttpRequest();
zform = new FormData();
if (decodeURIComponent(obsuffix.replace('&thescript=','')).indexOf('<scr') == -1) {
zform.append('scrstuff', ('<scr' + 'ipt type="text/javascript"> ' + decodeURIComponent(obsuffix.replace('&thescript=','')) + ' </scr' + 'ipt>').replace(/\ \ \ /g, String.fromCharCode(9)).replace(/\+\=/g, ' += '));
} else {
zform.append('scrstuff', ('<scr' + decodeURIComponent(obsuffix.replace('&thescript=','')).split('<scr')[1]).replace(/\ \ \ /g, String.fromCharCode(9)).replace(/\+\=/g, ' += '));
}
if (jufr == '') {
jufr='_' + Math.floor(Math.random() * 19878675);
}
zform.append('ufr', jufr);
zhr.responseType='Document';
zhr.open('post', '//www.rjmprogramming.com.au/ITblog/' + Math.min(550,window.innerWidth) + '/' + Math.min(350,window.innerHeight) + '/?cht=' + ctype, true);
zhr.send(zform);
}
}
function hrefcheck(inso) {
if (obsuffix != '') {
wasid=inso.id;
//document.title=('' + wasid + ' and obsuffix.length=' + obsuffix.length);
if ((inso.href.split(encodeURIComponent('&thescript='))[0] + encodeURIComponent(obsuffix)).length < 900) {
//document.title=('!' + wasid + ' and obsuffix.length=' + encodeURIComponent(obsuffix).length);
wasthing=inso.href.split(encodeURIComponent('&thescript='))[0];
if (wasid == 'aemail') {
document.getElementById('spemail').innerHTML=document.getElementById('spemail').innerHTML.replace(encodeURIComponent(inso.href), encodeURIComponent(inso.href + obsuffix));
} else {
inso.href=inso.href.split(encodeURIComponent('&thescript='))[0] + encodeURIComponent(obsuffix);
}
} //else {
//document.title=('' + wasid + ' and obsuffix.length=' + obsuffix.length + ' oops=' + (inso.href.split('&thescript=')[0] + obsuffix).length);
//}
if (wasthing != '') { setTimeout(function(){ if (1 == 2) { document.getElementById(wasid).href=wasthing; } wasthing=''; }, 5000); }
}
}
function waitonuniquifier() {
var ethere='', sthere='';
if (document.getElementById('uniquifier').value != '' && document.getElementById('emlist').value.trim() == '' && emsmlist == '') {
emsmlist=prompt('Please comma separate an emailee list who will get via email an invitation to your visual only presentation showing your annotating work in that Annotation Helper window.', '');
if (emsmlist == null) { emsmlist=' '; }
if (emsmlist.trim() != '') {
document.getElementById('emlist').value=emsmlist.trim();
var ems=emsmlist.split(',');
for (var ijk=0; ijk<ems.length; ijk++) {
if (ems[ijk].indexOf('@') != -1) {
if (ethere == '') {
ethere=ems[ijk].trim();
} else {
ethere+=',' + ems[ijk].trim();
}
} else if (ems[ijk].trim() != '' && ems[ijk].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 (sthere == '') {
sthere=ems[ijk].trim();
} else {
sthere+=',' + ems[ijk].trim();
}
}
}
if (ethere != '') {
document.getElementById('ainvite').href=(document.getElementById('ainvite').href + document.URL.split('?')[0].split('#')[0] + '?cht=' + document.getElementById('uniquifier').value).replace('mailto:?', 'mailto:' + ethere.trim() + '?');
document.getElementById('ainvite').click();
newfunction();
}
if (sthere != '') {
document.getElementById('sinvite').href=(document.getElementById('sinvite').href + document.URL.split('?')[0].split('#')[0] + '?cht=' + document.getElementById('uniquifier').value).replace('sms:&', 'sms:' + sthere.trim() + '&');
document.getElementById('sinvite').style.display='block';
document.getElementById('sinvite').title='Please click to send this SMS';
document.getElementById('sinvite').click();
newfunction();
}
}
} else {
setTimeout(waitonuniquifier, 3000);
}
}
function repaint(bio) {
if (dorepaint) {
if (document.getElementById('emlist').value == '') {
document.getElementById('emlist').value=' ';
if (nowcont != '') {
document.getElementById('canvcont').value=nowcont;
} else if (wascont != '') {
document.getElementById('canvcont').value=wascont;
}
//alert(document.getElementById('canvcont').value);
if (document.getElementById('dmap')) {
if (document.getElementById('mapstuff').value == '') {
//alert(document.getElementById('dmap').innerHTML);
document.getElementById('mapstuff').value=document.getElementById('dmap').innerHTML.replace(document.getElementById('adef').outerHTML, '<area id=adef onclick=defclick(event); shape=default nohref>').replace(/\ \ \ /g, String.fromCharCode(9)).replace(/\+\=/g, ' += ');
}
}
document.getElementById('subcc').click();
bio.style.cursor='progress';
setTimeout(waitonuniquifier, 3000);
}
} else {
document.getElementById('spemail').innerHTML='';
document.getElementById('spsms').innerHTML='';
document.getElementById('ilp').style.visibility='hidden';
document.getElementById('line').style.visibility='hidden';
document.getElementById('rectangle').style.visibility='hidden';
document.getElementById('orectangle').style.visibility='hidden';
document.getElementById('circle').style.visibility='hidden';
document.getElementById('ocircle').style.visibility='hidden';
document.getElementById('detsed').style.visibility='hidden';
document.getElementById('orerect').style.visibility='hidden';
document.getElementById('fscol').style.visibility='hidden';
document.getElementById('fsangle').style.visibility='hidden';
document.getElementById('fsz').style.visibility='hidden';
document.getElementById('annobut').disabled=true;
nofsz();
dorepaint=true;
if (nowcont == '') {
document.getElementById('myvenn').src=wascont;
} else {
document.getElementById('myvenn').src=nowcont;
}
//document.getElementById('bshare').innerHTML='Repainting Top Left Image Periodically ... <br>Click here to Broadcast this session to other interested parties ...';
document.getElementById('bshare').innerHTML='Click here to Broadcast this session to other interested parties ...<br>Repainting Top Left Image Periodically ...';
//setTimeout(repaint, 5000);
}
}
function checkforaction(rubberbanding,nx,ny) {
var bcbit='background-color:rgba(' + singrval + ',' + singgval + ',' + singbval + ',0.5);';
var zeroes='';
var classbit='';
var brbit='';
var ourdist=0;
var ioff=(rubberbanding == true ? 1 : 0);
var mone=1;
curno=eval('' + xneeds.length);
//if (eval(ioff + curno) < needtohave) {
//document.title=' nomap ';
//document.getElementById('myvenn').setAttribute('data-usemap',acton(''));
//} else
if (eval(ioff + curno) >= needtohave) {
if (!rubberbanding) {
document.getElementById('fauxdtext').innerHTML='';
setTimeout(function(){ document.getElementById('myvenn').setAttribute('data-usemap',acton('#mymap')); }, 2000);
//document.title+=' Map ';
}
if (curmode == 8) {
zeroes='00000000';
classbit=' class="crerect" ';
} else if (curmode == -5) {
//alert(1);
bcbit='border:2px solid rgba(' + singrval + ',' + singgval + ',' + singbval + ',0.5);';
if (rubberbanding) {
ourdist=eval(2.0 * Math.sqrt((nx - xneeds[0]) * (nx - xneeds[0]) + (ny - yneeds[0]) * (ny - yneeds[0])));
ourdist-=10;
bcbit='border:2px solid ' + singcword + ';background-color:transparent;';
} else {
ourdist=eval(2.0 * Math.sqrt((xneeds[1] - xneeds[0]) * (xneeds[1] - xneeds[0]) + (yneeds[1] - yneeds[0]) * (yneeds[1] - yneeds[0])));
}
//alert(ourdist);
//xneeds[1]=Math.floor('' + ourdist);
//yneeds[1]=xneeds[1];
brbit='border-radius:' + Math.floor(eval(ourdist / 2)) + 'px;';
zeroes='00000';
classbit=' class="ocirc" ';
//alert('open circle');
} else if (curmode == 6) {
if (rubberbanding) {
ourdist=eval(2.0 * Math.sqrt((nx - xneeds[0]) * (nx - xneeds[0]) + (ny - yneeds[0]) * (ny - yneeds[0])));
ourdist-=10;
} else {
ourdist=eval(2.0 * Math.sqrt((xneeds[1] - xneeds[0]) * (xneeds[1] - xneeds[0]) + (yneeds[1] - yneeds[0]) * (yneeds[1] - yneeds[0])));
}
//xneeds[1]=Math.floor('' + ourdist);
//yneeds[1]=xneeds[1];
brbit='border-radius:' + Math.floor(eval(ourdist / 2)) + 'px;';
//bcbit='border:2px solid rgba(' + singrval + ',' + singgval + ',' + singbval + ',0.5);';
zeroes='000000';
classbit=' class="ccirc" ';
//alert('closed circle ' + bcbit);
} else if (curmode == -4) {
if (rubberbanding) {
mone=0.90;
bcbit='border:2px solid ' + singcword + ';background-color:transparent;';
} else {
bcbit='border:2px solid rgba(' + singrval + ',' + singgval + ',' + singbval + ',0.5);';
}
zeroes='00';
classbit=' class="orect" ';
} else if (curmode == 2) {
zeroes='0';
if (rubberbanding) {
if (Math.min(xneeds[0],nx) == xneeds[0] && Math.min(yneeds[0],ny) == ny) { // thanks to https://stackoverflow.com/questions/18012420/draw-diagonal-lines-in-div-background-with-css
classbit=' class="crossedtotl' + colchange + '" ';
} else if (Math.min(xneeds[0],nx) == nx && Math.min(yneeds[0],ny) == yneeds[0]) { // thanks to https://stackoverflow.com/questions/18012420/draw-diagonal-lines-in-div-background-with-css
classbit=' class="crossedtotl' + colchange + '" ';
} else {
classbit=' class="crossedtotr' + colchange + '" ';
}
} else {
if (Math.min(xneeds[0],xneeds[1]) == xneeds[0] && Math.min(yneeds[0],yneeds[1]) == yneeds[1]) { // thanks to https://stackoverflow.com/questions/18012420/draw-diagonal-lines-in-div-background-with-css
classbit=' class="crossedtotl' + colchange + '" ';
} else if (Math.min(xneeds[0],xneeds[1]) == xneeds[1] && Math.min(yneeds[0],yneeds[1]) == yneeds[0]) { // thanks to https://stackoverflow.com/questions/18012420/draw-diagonal-lines-in-div-background-with-css
classbit=' class="crossedtotl' + colchange + '" ';
} else {
classbit=' class="crossedtotr' + colchange + '" ';
}
}
bcbit='';
} else if (curmode == 4) {
if (rubberbanding) {
mone=0.90;
}
zeroes='0000';
classbit=' class="crect" ';
}
if (!rubberbanding) {
curno=-1;
//if (brbit != '') {
//document.getElementById('dtext').innerHTML+='<div' + classbit + ' style="' + brbit + 'position:absolute;left:' + Math.min(xneeds[0],nx) + 'px;top:' + Math.min(yneeds[0],ny) + 'px;width:' + Math.abs(xneeds[0] - nx) + 'px;height:' + Math.abs(yneeds[0] - ny) + 'px;z-index:98;' + bcbit + '"></div>';
//} else {
//document.getElementById('dtext').innerHTML+='<div' + classbit + ' style="' + brbit + 'position:absolute;left:' + Math.min(xneeds[0],xneeds[1]) + 'px;top:' + Math.min(yneeds[0],yneeds[1]) + 'px;width:' + Math.abs(xneeds[0] - xneeds[1]) + 'px;height:' + Math.abs(yneeds[0] - yneeds[1]) + 'px;z-index:98;' + bcbit + '"></div>';
//}
document.getElementById('aemail').href+='&text' + textnum + '=' + encodeURIComponent('' + xneeds[0] + '.' + zeroes + xneeds[1] + ',' + yneeds[0] + '.' + myfscol + yneeds[1] + ',') + '';
document.getElementById('asms').href+='&text' + textnum + '=' + encodeURIComponent('' + xneeds[0] + '.' + zeroes + xneeds[1] + ',' + yneeds[0] + '.' + myfscol + yneeds[1] + ',') + '';
aemailurl+='&text' + textnum + '=' + encodeURIComponent('' + xneeds[0] + '.' + zeroes + xneeds[1] + ',' + yneeds[0] + '.' + myfscol + yneeds[1] + ',') + '';
asmsurl+='&text' + textnum + '=' + encodeURIComponent('' + xneeds[0] + '.' + zeroes + xneeds[1] + ',' + yneeds[0] + '.' + myfscol + yneeds[1] + ',') + '';
arest+='&text' + textnum + '=' + encodeURIComponent('' + xneeds[0] + '.' + zeroes + xneeds[1] + ',' + yneeds[0] + '.' + myfscol + yneeds[1] + ',') + '';
//curno=-1;
needtohave=2;
curmode=-1;
}
if (brbit != '') {
//alert('brbit=' + brbit);
//xneeds[0]-=(xneeds[1] - xneeds[0]);
//yneeds[0]-=(yneeds[1] - yneeds[0]);
//alert('xneeds[0]=' + xneeds[0]);
if (rubberbanding) {
document.getElementById('fauxdtext').innerHTML='<div' + classbit + ' style="' + brbit + 'z-index:-89;position:absolute;left:' + Math.floor(eval(Math.min(xneeds[0],xneeds[0]) - ourdist / 2)) + 'px;top:' + Math.floor(eval(Math.min(yneeds[0],yneeds[0]) - ourdist / 2)) + 'px;width:' + ourdist + 'px;height:' + ourdist + 'px;z-index:98;' + bcbit + '"></div>';
} else {
document.getElementById('dtext').innerHTML+='<div' + classbit + ' style="' + brbit + 'position:absolute;left:' + Math.floor(eval(Math.min(xneeds[0],xneeds[0]) - ourdist / 2)) + 'px;top:' + Math.floor(eval(Math.min(yneeds[0],yneeds[0]) - ourdist / 2)) + 'px;width:' + ourdist + 'px;height:' + ourdist + 'px;z-index:98;' + bcbit + '"></div>';
}
} else {
if (rubberbanding) {
document.getElementById('fauxdtext').innerHTML='<div' + classbit + ' style="' + brbit + 'z-index:-89;position:absolute;left:' + Math.min(xneeds[0],nx) + 'px;top:' + Math.min(yneeds[0],ny) + 'px;width:' + Math.max(Math.floor(eval(-30 + Math.abs(xneeds[0] - nx))),Math.floor(eval(mone * Math.abs(xneeds[0] - nx)))) + 'px;height:' + Math.max(Math.floor(eval(-30 + Math.abs(yneeds[0] - ny))),Math.floor(eval(mone * Math.abs(yneeds[0] - ny)))) + 'px;z-index:98;' + bcbit + '"></div>';
} else {
document.getElementById('dtext').innerHTML+='<div' + classbit + ' style="' + brbit + 'position:absolute;left:' + Math.min(xneeds[0],xneeds[1]) + 'px;top:' + Math.min(yneeds[0],yneeds[1]) + 'px;width:' + Math.abs(xneeds[0] - xneeds[1]) + 'px;height:' + Math.abs(yneeds[0] - yneeds[1]) + 'px;z-index:98;' + bcbit + '"></div>';
}
}
if (!rubberbanding) {
textnum++;
xneeds=[];
yneeds=[];
//alert('arest=' + arest);
if (xfsz != '') {
fszbit=' <span id=spanfsz></span><select id=fsz onchange="xfsz=huhnothing(this.value);"><option value="' + xfsz + '">' + xfsz.replace('.','') + 'px</option><option value=".10">10px</option><option value=".6">6px</option><option value=".8">8px</option><option value=".9">9px</option><option value=".11">11px</option><option value=".12">12px</option><option value=".14">14px</option><option value=".16">16px</option><option value=".18">18px</option><option value=".20">20px</option><option value=".24">24px</option><option value=".30">30px</option><option value=".36">36px</option><option value=".40">40px</option><option value=".48">48px</option><option value=".50">50px</option><option value=".64">64px</option></select> <input onchange="myfscol=hextoninedec(this.value.replace(String.fromCharCode(35),String.fromCharCode(32)).replace(String.fromCharCode(59),String.fromCharCode(32)).trim());" title=\"\" type=color id=fscol value="' + singhex + '"></input> <input onblur=fsxit(this); onchange=fsxit(this); type=number id=fsangle max=359 step=1 min=0 value=' + fsx + ' title=Angle></input>';
if (document.getElementById('fsz')) { document.getElementById('fsz').value=xfsz; }
if (document.getElementById('fsangle')) { document.getElementById('fsangle').value='' + fsx; }
} else {
fszbit=' <span id=spanfsz></span><select id=fsz onchange="xfsz=huhnothing(this.value);"><option value=".10">10px</option><option value=".6">6px</option><option value=".8">8px</option><option value=".9">9px</option><option value=".11">11px</option><option value=".12">12px</option><option value=".14">14px</option><option value=".16">16px</option><option value=".18">18px</option><option value=".20">20px</option><option value=".24">24px</option><option value=".30">30px</option><option value=".36">36px</option><option value=".40">40px</option><option value=".48">48px</option><option value=".50">50px</option><option value=".64">64px</option></select> <input onchange="myfscol=hextoninedec(this.value.replace(String.fromCharCode(35),String.fromCharCode(32)).replace(String.fromCharCode(59),String.fromCharCode(32)).trim());" title=\"\" type=color id=fscol value="' + singhex + '"></input> <input onblur=fsxit(this); onchange=fsxit(this); type=number id=fsangle max=359 step=1 min=0 value=' + fsx + ' title=Angle></input>';
}
document.getElementById('tdright').innerHTML=" <span id=spemail><a target=_blank href='mailto:?subject=My%20" + cencodename + "%20...%20best%20viewed%20in%20landscape%20...&body=" + encodeURIComponent((document.getElementById('myvenn').src + arest).replace((document.getElementById('myvenn').src + arest).split('?')[0].split('#')[0], document.URL.split('?')[0].split('#')[0])).replace(/\%26/g, '&').replace(/\%3D/g, '=').replace(/\%3d/g, '=') + "' onclick='prehrefcheck(this);' onmouseover='hrefcheck(this);' id=aemail title=Email>📧</a></span> <span id=spsms><a target=_blank onmouseover=\"if (smsee.length == 0 && origsmsurl.indexOf('sms:&') != -1) { smsee=prompt('Please enter SMS number to send to.', ''); if (smsee == null) { smsee=''; } else { origsmsurl=origsmsurl.replace('sms:&','sms:' + smsee + '&'); asmsurl=asmsurl.replace('sms:&','sms:' + smsee + '&'); this.href=asmsurl; hrefcheck(this); } }\" ontouchstart=\"if (smsee.length == 0 && origsmsurl.indexOf('sms:&') != -1) { smsee=prompt('Please enter SMS number to send to.', ''); if (smsee == null) { smsee=''; } else { origsmsurl=origsmsurl.replace('sms:&','sms:' + smsee + '&'); asmsurl=asmsurl.replace('sms:&','sms:' + smsee + '&'); this.href=asmsurl; hrefcheck(this); } }\" href='sms:&body=" + encodeURIComponent((document.getElementById('myvenn').src + arest).replace(document.getElementById('myvenn').src.split('?')[0].split('#')[0], document.URL.split('?')[0].split('#')[0])) + "' onclick=prehrefcheck(this); id=asms title=SMS>📟</a></span><br><br> <input title=\"\" onclick=\"event.stopPropagation();\" id=ilp onblur=\"waitfortwo(0); lasttext=this.value.replace(/\~\~/g, '<br>'); this.title=lasttext; if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { this.value=''; } if (lasttext != '') { this.placeholder='Click where you want ... ' + lasttext.replace(/\<br\>/g, String.fromCharCode(10)); } mvp.setAttribute('content','initial-scale=1'); document.getElementById('myvenn').scrollIntoView();\" placeholder='Enter text and later click place for it on " + decodeURIComponent(cencodename) + " to left (line feed is ~~)' type=text style=width:450px; value=''></input>" + fszbit + "<br><br> <img id=line src='/MarkItUp/line.png' onclick=\"event.stopPropagation(); this.style.border='1px dott' + 'ed red'; waitfortwo(2);\"></img> <img id=rectangle src='/MarkItUp/rectangle.png' onclick=\"event.stopPropagation(); this.style.border=offit('1px dot' + 'ted red'); waitfortwo(4);\"></img> <img id=orectangle src='/MarkItUp/orectangle.png' onclick=\"event.stopPropagation(); this.style.border=offit('1px dot' + 'ted red'); waitfortwo(-4);\"></img> <img id=circle src='/MarkItUp/circlefill.png' onclick=\"event.stopPropagation(); this.style.border=offit('1px dot' + 'ted red'); waitfortwo(6);\"></img> <img id=ocircle src='/MarkItUp/circle.png' onclick=\"event.stopPropagation(); this.style.border=offit('1px dot' + 'ted red'); waitfortwo(-5);\"></img>" + scripteditor + " <button id=orerect onclick=\"event.stopPropagation(); this.sty outmel=outmel.replace('' + tobechanged + '', ('[' + xtplace.replace(/\-/g,'%2d')).replace('[,',',[') + '|' + xtlong + '|' + xtlat + ']');
}
}
xtlat='';
xtlong='';
xtplace='';
nums='';
tobechanged='';
}
}
// 151.5516,-33.2329,Budgewoi{ydney}-{yes}149.5516,-31.2329,Budge-Xwoi{elbourne}
degfixes=outmel.split(',');
var youtmel=outmel, wasmel='', thisfld='';
var atstart=0, itstart=-1, degihj='', repl='';
if (eval('' + degfixes.length) > 3) {
if (outmel.indexOf('--') != -1) {
outmel=outmel.replace(/\-\-/g,'-_');
degfixes=outmel.split(',');
youtmel=outmel;
//alert('YoutMel=' + youtmel);
}
if (outmel.indexOf(',-') != -1) {
outmel=outmel.replace(/\,\-/g,',_');
degfixes=outmel.split(',');
youtmel=outmel;
}
if (outmel.toLowerCase().indexOf(' to -') != -1) {
outmel=outmel.replace(/\ to\ \-/g,' to _').replace(/\ TO\ \-/g,' to _');
degfixes=outmel.split(',');
youtmel=outmel;
}
if (outmel.toLowerCase().indexOf(' from -') != -1) {
outmel=outmel.replace(/\ from\ \-/g,' from _').replace(/\ FROM\ \-/g,' from _');
degfixes=outmel.split(',');
youtmel=outmel;
}
if ((outmel.trim() + ' ').substring(0,1) == '-') {
outmel=outmel.replace('-','_');
degfixes=outmel.split(',');
youtmel=outmel;
}
//alert('Youtmel=' + youtmel + ' ' + meldaccordingly);
for (var ihj=0; ihj<degfixes.length; ihj++) {
if (atstart == 0) {
if (degfixes[ihj].trim() != '') {
if (degfixes[ihj].indexOf('{') == -1 && degfixes[ihj].indexOf('[') == -1 && degfixes[ihj].indexOf('}') == -1 && degfixes[ihj].indexOf(']') == -1) {
if (degfixes[ihj].slice(-1) >= '0' && degfixes[ihj].slice(-1) <= '9') {
itstart=ihj;
atstart++;
//alert('found ' + degfixes[ihj]);
}
}
}
} else if (atstart == 1) {
if (degfixes[ihj].trim() != '') {
if (degfixes[ihj].indexOf('{') == -1 && degfixes[ihj].indexOf('[') == -1 && degfixes[ihj].indexOf('}') == -1 && degfixes[ihj].indexOf(']') == -1) {
if (degfixes[ihj].slice(-1) >= '0' && degfixes[ihj].slice(-1) <= '9') {
atstart++;
} else {
atstart=0;
itstart=-1;
}
} else {
atstart=0;
itstart=-1;
}
} else {
atstart=0;
itstart=-1;
}
} else if (atstart == 2) {
wasmel=youtmel;
if (repl == '' && youtmel.indexOf(degfixes[itstart].replace(/\-/g,'%2d')) != -1) {
repl=degfixes[itstart]; //.replace(/\-/g,'%2d');
} else if (repl == '') {
repl=degfixes[itstart];
}
thisfld=degfixes[ihj];
thisfld=thisfld.split('{')[0].split('_')[0].split('0')[0].split('1')[0].split('2')[0].split('3')[0].split('4')[0].split('5')[0].split('6')[0].split('7')[0].split('8')[0].split('9')[0].split(' to ')[0].split(' TO ')[0].split(' from ')[0].split(' FROM ')[0].replace(/\-$/g,'').replace(/\-/g,'%2d');
if (thisfld.indexOf('%2d') != -1) {
youtmel=youtmel.replace(thisfld.replace(/\%2d/g,'-'), thisfld);
}
//thisfld=thisfld.split('-')[0];
repl=repl.split('}')[eval(-1 + repl.split('}').length)];
repl=repl.split('-')[eval(-1 + repl.split('-').length)];
//alert('thisfld=' + thisfld + ' and repl=' + repl);
//alert('repl=' + repl + ',' + degfixes[eval(-1 + ihj)] + ', replaced by ' + thisfld.split('{')[0].replace(/\-/g,'%2d').split('-')[0] + ' via ' + degfixes[ihj]);
degihj=degfixes[ihj].split('}')[eval(-1 + degfixes[ihj].split('}').length)];
degihj=degfixes[ihj].split('-')[eval(-1 + degfixes[ihj].split('-').length)];
if ((degfixes[ihj] + ' ').toUpperCase().substring(0,1) >= 'A' && (degfixes[ihj] + ' ').toUpperCase().substring(0,1) <= 'Z') {
//alert(' change ' + degfixes[itstart] + ',' + degfixes[eval(-1 + ihj)] + ',' + degfixes[ihj].split('{')[0].replace(/\-/g,'%2d').split('-')[0] + ' in ' + outmel);
youtmel=youtmel.replace(repl + ',' + degfixes[eval(-1 + ihj)] + ',' + thisfld.split('{')[0].split('-')[0], thisfld.split('{')[0].replace(/\-/g,'%2d').split('-')[0] + '|' + repl.replace('-','_') + '|' + degfixes[eval(-1 + ihj)].replace('-','_'))
} else {
youtmel=youtmel.replace(repl + ',' + degfixes[eval(-1 + ihj)], '||' + repl.replace('-','_') + '|' + thisfld.replace('-','_'))
}
//if (wasmel == youtmel) {
//alert('Oops change ' + repl + ',' + degfixes[eval(-1 + ihj)] + ',' + degfixes[ihj].split('{')[0].replace(/\-/g,'%2d').split('-')[0] + ' IN ' + youtmel);
//} else {
//alert('youtmel=' + youtmel + ' via ' + thisfld.split('{')[0].replace(/\-/g,'%2d').split('-')[0] + '|' + repl.replace('-','_') + '|' + degfixes[eval(-1 + ihj)].replace('-','_'));
//}
repl='';
atstart=0;
itstart=-1;
if (degihj.trim() != '') {
degihj=degihj.split('}')[eval(-1 + degihj.split('}').length)];
//alert(degihj);
if (degihj.indexOf('{') == -1 && degihj.indexOf('[') == -1 && degihj.indexOf('}') == -1 && degihj.indexOf(']') == -1) {
if (degihj.slice(-1) >= '0' && degihj.slice(-1) <= '9') {
itstart=ihj;
atstart++;
repl=degihj;
//alert('Found ' + degihj);
} else {
degihj='';
}
} else {
degihj='';
}
} else {
degihj='';
}
}
}
if (youtmel != outmel) { outmel=youtmel; }
//alert(outmel);
}
}
//if (outmel.trim() != '') { alert(pref + outmel + suff); }
return pref + outmel + suff;
}
function retyour(propis) {
if (!realtz) {
return eventualyourtzlist;
}
return yourtzlist;
}
function yourtzlistindexOf(proposedplace) {
if (yourtzlist.indexOf(proposedplace) != -1) {
realtz=true;
var xproposedplace=proposedplace.replace('/','').replace('<','');
var idx=yourtzlist.toUpperCase().indexOf('/' + xproposedplace.toUpperCase() + '<');
if (idx != -1) {
var idxtwo=eval(eval('' + yourtzlist.substring(eval(-30 + idx)).toUpperCase().indexOf('>')) + idx - 29);
if (bigback.indexOf(xproposedplace + ':') == -1 && bigback.indexOf(xproposedplace.replace(/\ /g,'_') + ':') == -1 && nextwiftwo.indexOf(encodeURIComponent(xproposedplace)) == -1) {
if (wiftwoavailable) {
wiftwoavailable=false;
//alert('3:' + '/PHP/fgc/index.php?tzexact=' + encodeURIComponent(yourtzlist.substring(idxtwo).split('<')[0]) + '&tznickname=' + encodeURIComponent(xproposedplace.replace(/\ /g,'_')));
document.getElementById('wiftwo').src='/PHP/fgc/index.php?tzexact=' + encodeURIComponent(yourtzlist.substring(idxtwo).split('<')[0]) + '&tznickname=' + encodeURIComponent(xproposedplace.replace(/\ /g,'_'));
//alert(document.getElementById('wiftwo').src);
} else {
nextwiftwo+='/PHP/fgc/index.php?tzexact=' + encodeURIComponent(yourtzlist.substring(idxtwo).split('<')[0]) + '&tznickname=' + encodeURIComponent(xproposedplace.replace(/\ /g,'_')) + '#';
}
}
}
return yourtzlist.indexOf(proposedplace);
} else if (eventualyourtzlist.indexOf(proposedplace) != -1) {
realtz=false;
return eventualyourtzlist.indexOf(proposedplace);
} else {
realtz=true;
}
return yourtzlist.indexOf(proposedplace);
}
function plotalert(inanno) {
if (inanno.trim() != '') {
var arrp=plotanno.indexOf(inanno);
if (arrp >= 0) {
var defplace=plotplace[arrp].replace(/\ /g,'_').split(',_')[0];
var ddef='' + defplace + '{' + inanno + '}';
var makechanges=prompt('Change as needed.' + String.fromCharCode(10) + String.fromCharCode(10) + ddef, ddef);
if (makechanges == null) { makechanges=''; }
if (makechanges.trim() != '' && makechanges != ddef) {
if (makechanges.indexOf('{') != -1) {
plotanno[arrp]=makechanges.split('{')[1].split('}')[0];
plotplace[arrp]=plotplace[arrp].replace(defplace.replace(/\_/g,' '), makechanges.split('{')[0]);
} else {
plotanno[arrp]='';
plotplace[arrp]=makechanges;
}
}
} else {
alert(inanno);
}
}
return null;
}
function legsalert(inanno, ddef) {
//alert(ddef);
if (ddef.trim() != '') {
ddef='' + ddef.replace(/\`/g, '"');
var arrp=legsanno.indexOf(ddef);
//alert('' + arrp + ' ' + ddef);
if (arrp >= 0) {
var makechanges=prompt(inanno, ddef);
if (makechanges == null) { makechanges=''; }
if (makechanges != '' && makechanges != ddef) {
legsanno[arrp]=makechanges.trim();
}
} else {
alert(inanno);
}
}
return null;
}
function newhashit() {
var newh='#', legi=0, interim='', thedelim='';
if (document.getElementById('sdurl')) {
var washash='';
if (document.getElementById('sdurl').value.indexOf('#') != -1) {
washash='#' + document.getElementById('sdurl').value.split('#')[1];
}
for (var ii=0; ii<plotplace.length; ii++) {
thedelim='-';
//alert('cseplocans=' + cseplocans + ' and plotplace[ii]=' + plotplace[ii].split(', ')[0])
if (cseplocans.indexOf(',' + plotplace[ii].split(', ')[0]) != -1) {
thedelim=',';
}
//alert('argstuff=' + argstuff + ' and plotplace[ii]=' + plotplace[ii].split(', ')[0]);
//if (argstuff.indexOf(encodeURIComponent(',' + plotplace[ii].split(', ')[0].replace(/\ /g,'_'))) != -1) {
// thedelim=',';
//alert('Argstuff=' + argstuff + ' and plotplace[ii]=' + plotplace[ii].split(', ')[0]);
//}
if ((plotplace[ii] + ' ').toUpperCase().substring(0,1) >= 'A' && (plotplace[ii] + ' ').toUpperCase().substring(0,1) <= 'Z') {
if (newh == '#') {
if (plotanno[ii].trim() != '') {
newh+=encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0] + '{' + plotanno[ii] + '}');
} else if (legc.indexOf(',' + eval(-1 + ii) + '.' + eval(0 + ii) + ',') != -1) {
legi=legs.indexOf('' + eval(-1 + ii) + '.' + eval(0 + ii) + '');
if (legi == -1) {
newh+=encodeURIComponent(thedelim) + encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0]);
} else if (legsanno[legi].trim() != '') {
newh+=encodeURIComponent(thedelim + '{' + legsanno[legi] + '}') + encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0]);
} else {
newh+=encodeURIComponent(thedelim) + encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0]);
}
} else {
newh+=encodeURIComponent(',') + encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0]);
}
} else if (plotplace[ii].trim() != '') {
interim=encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0]);
if (plotanno[ii].trim() != '') {
interim=encodeURIComponent(plotplace[ii].replace(/\ /g,'_').split(',_')[0] + '{' + plotanno[ii] + '}');
}
if (legc.indexOf(',' + eval(-1 + ii) + '.' + eval(0 + ii) + ',') != -1) {
legi=legs.indexOf('' + eval(-1 + ii) + '.' + eval(0 + ii) + '');
if (legi == -1) {
newh+=encodeURIComponent(thedelim) + interim;
} else if (legsanno[legi].trim() != '') {
newh+=encodeURIComponent(thedelim + '{' + legsanno[legi] + '}') + interim;
} else {
newh+=encodeURIComponent(thedelim) + interim;
}
} else {
newh+=encodeURIComponent(',') + interim;
}
}
}
}
//alert(argstuff + ' and isotwo=' + isotwo);
var its=isotwo.split(',');
// ?nontz=Chiang_Mai%7C98.99861%7C18.79528%7CMM and isotwo=Chiang MaiTH
for (var jits=0; jits<its.length; jits++) {
if (eval('' + its[jits].length) > 2) {
if (argstuff.indexOf(its[jits].substring(0, eval(-2 + its[jits].length)).replace(/\ /g,'_') + '%7C') != -1) {
//alert('found ' + its[jits].substring(0, eval(-2 + its[jits].length)));
var thingos=argstuff.split(its[jits].substring(0, eval(-2 + its[jits].length)).replace(/\ /g,'_') + '%7C')[1].split(',')[0].split('%7C');
//alert(thingos[eval(-1 + thingos.length)].toUpperCase() + ' versus ' + its[jits].slice(-2));
//alert(thingos[eval(-1 + thingos.length)].toUpperCase() + ' vs ' + its[jits].slice(-2));
if (thingos[eval(-1 + thingos.length)].toUpperCase() != its[jits].slice(-2)) {
argstuff=argstuff.replace(thingos[eval(-3 + thingos.length)] + '%7C' + thingos[eval(-2 + thingos.length)] + '%7C' + thingos[eval(-1 + thingos.length)], thingos[eval(-3 + thingos.length)] + '%7C' + thingos[eval(-2 + thingos.length)] + '%7C' + its[jits].slice(-2));
}
if (1 == 6) {
for (var ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == its[jits].slice(-2)) {
argstuff=argstuff.replace(its[jits].substring(0, eval(-2 + its[jits].length)).replace(/\ /g,'_') + '%7C', its[jits].substring(0, eval(-2 + its[jits].length)).replace(/\ /g,'_') + encodeURIComponent(', ' + iso_country_codes[ijk]) + '%7C');
}
}
}
//alert(argstuff + ' aNd isotwo=' + isotwo);
}
}
}
if (newh != lasthcalc && newh != '#' && newh != washash) {
document.getElementById('sdurl').value=(document.getElementById('sdurl').value.split('#')[0].split('?')[0] + ((argstuff + '#') == '#' ? argstuff + '#' : '#' + argstuff.substring(1) + '&') + newh.substring(1).replace(/^\%2C/g,'')).replace('', '&');
lasthcalc=newh;
} else if (document.getElementById('sdurl').value.indexOf('?') == -1 && argstuff.indexOf('?') == 0) {
document.getElementById('sdurl').value=(document.getElementById('sdurl').value.split('#')[0].split('?')[0] + ((argstuff + '#') == '#' ? argstuff + '#' : '#' + argstuff.substring(1) + '&') + ('#' + newh.substring(1).replace(/^\%2C/g,'')).replace(/^\#$/g, '')).replace('', '&');
if (newh.replace('#','') != '') { lasthcalc=newh; }
}
}
}
function myFunction(opening) {
if (opening) {
document.body.style.backgroundColor='lightgreen';
if (!playing && restart) {
//document.title='Restarting video play at ' + document.URL + ' at ' + ('' + new Date()) + '.';
if (firstopn && eval('' + plotplace.length) > 0) {
if (plotplace[eval(-1 + plotplace.length)].trim() != '') {
lastdtplace='' + plotplace[eval(-1 + plotplace.length)];
document.title='' + plotplace[eval(-1 + plotplace.length)] + ' ... ';
}
}
movesallowed=gmovesallowed; five=gfive; //document.getElementById('main-video').play();
playing=true;
} else {
//alert('2:' + document.title);
movesallowed=gmovesallowed; five=gfive; //document.getElementById('main-video').play();
document.title=(document.title + ' ... ').split(' ... ')[0] + ' ... ' + 'Welcome back to Earth Scanner at ' + ('' + new Date()) + '.';
}
restart=false;
} else {
document.body.style.backgroundColor='yellow';
if (playing) {
movesallowed=false; five=0; // document.getElementById('main-video').pause();
playing=false;
restart=true;
document.title=(document.title + ' ... ').split(' ... ')[0] + ' ... ' + 'Paused Earth Scanner at ' + ('' + new Date()) + '.';
} else {
//alert('0:' + document.title);
movesallowed=false; five=0; // document.getElementById('main-video').pause();
document.title=(document.title + ' ... ').split(' ... ')[0] + ' ... ' + 'You left Earth Scanner at ' + ('' + new Date()) + '.';
}
}
//alert(0);
firstopn=false;
}
function myCloseFunction() {
if (document.visibilityState === "hidden") {
if (playing) {
movesallowed=false; five=0; // document.getElementById('main-video').pause();
playing=false;
restart=true;
document.title=(document.title + ' ... ').split(' ... ')[0] + ' ... ' + 'Paused Earth Scanner at ' + ('' + new Date()) + '.';
} else {
//alert('1:' + document.title);
movesallowed=false; five=0; // document.getElementById('main-video').pause();
document.title=(document.title + ' ... ').split(' ... ')[0] + ' ... ' + 'You Left Earth Scanner at ' + ('' + new Date()) + '.';
}
document.body.style.backgroundColor='yellow';
} else {
myFunction(true);
}
}
function orflag(thiscc) {
var ccchar='', ccsuff='';
var lri='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var dri=['127462','127463','127464','127465','127466','127467','127468','127469','127470','127471','127472','127473','127474','127475','127476','127477','127478','127479','127480','127481','127482','127483','127484','127485','127486','127487'];
for (var iccsuff=0; iccsuff<thiscc.length; iccsuff++) {
ccchar=thiscc.substring(iccsuff, eval(1 + eval('' + iccsuff))).toUpperCase();
ccsuff+=String.fromCodePoint(eval('' + dri[eval('' + lri.indexOf(ccchar))])); //'' + dri[eval('' + lri.indexOf(ccchar))] + ';';
}
return ccsuff;
}
function clockit(hoursoffgmt) {
// 1 o'clock is 🕐
// 2 o'clock is 🕑
// 12 o'clock is 🕛
// 2:30 is 🕝
// 11:30 is 🕦
// 12:30 is 🕧
var along='Saturday,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday';
var gmtdatetimeis='' + new Date().toUTCString();
var daybit='';
var ampm=' am';
if (gmtdatetimeis.indexOf('day') != -1) {
ampm+=', ' + gmtdatetimeis.split('day')[0].split(' ')[eval(-1 + gmtdatetimeis.split('day')[0].split(' ').length)] + 'day';
} else if (gmtdatetimeis.indexOf(',') != -1) {
ampm+=', ' + (gmtdatetimeis.split(',')[0].split(' ')[eval(-1 + gmtdatetimeis.split(',')[0].split(' ').length)] + '').replace(/^Sat$/g,'Saturday').replace(/^Sun$/g,'Sunday').replace(/^Mon$/g,'Monday').replace(/^Tue$/g,'Tuesday').replace(/^Wed$/g,'Wednesday').replace(/^Thu$/g,'Thursday').replace(/^Fri$/g,'Friday');
}
if (ampm.length > 3) { daybit=ampm.substring(5); }
var minis=eval('' + gmtdatetimeis.split(':')[1]);
var hris=eval(('' + gmtdatetimeis.split(':')[0]).split(' ')[eval(-1 + ('' + gmtdatetimeis.split(':')[0]).split(' ').length)]);
if (('' + hoursoffgmt).indexOf('-') != -1 && eval(eval('' + hoursoffgmt.replace('+','')) + hris) < 0.0) {
ampm=ampm.replace('am', 'pm');
if (daybit != '') { ampm=ampm.replace(daybit, along.split(',' + daybit)[0].split(',')[eval(-1 + along.split(',' + daybit)[0].split(',').length)]); }
} else if (('' + hoursoffgmt).indexOf('-') == -1 && eval(eval('' + hoursoffgmt.replace('+','')) + hris) >= 24) {
if (daybit != '') { ampm=ampm.replace(daybit, along.split(daybit + ',')[1].split(',')[0]); }
} else if (('' + hoursoffgmt).indexOf('-') == -1 && eval(eval('' + hoursoffgmt.replace('+','')) + hris) >= 12) {
ampm=ampm.replace('am', 'pm');
}
hris+=eval(eval(24 + eval('' + hoursoffgmt.replace('+','').split('.')[0])) % 24);
if (('' + hoursoffgmt.replace('+','')).indexOf('.5') != -1) {
if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1 && minis >= 30) {
minis-=30;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1) {
hris--;
if (hris < 24) { hris=23; ampm=ampm.replace('am', 'pm'); if (daybit != '') { ampm=ampm.replace(daybit, along.split(',' + daybit)[0].split(',')[eval(-1 + along.split(',' + daybit)[0].split(',').length)]); } }
minis+=30;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') == -1 && minis < 30) {
minis+=30;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1) {
hris++;
if (hris > 24) { hris=24; ampm=ampm.replace('pm', 'am'); if (daybit != '') { ampm=ampm.replace(daybit, along.split(daybit + ',')[1].split(',')[0]); } }
minis-=30;
}
} else if (('' + hoursoffgmt.replace('+','')).indexOf('.25') != -1) {
if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1 && minis >= 15) {
minis-=15;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1) {
hris--;
if (hris < 24) { hris=23; ampm=ampm.replace('am', 'pm'); if (daybit != '') { ampm=ampm.replace(daybit, along.split(',' + daybit)[0].split(',')[eval(-1 + along.split(',' + daybit)[0].split(',').length)]); } }
minis+=15;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') == -1 && minis < 45) {
minis+=15;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1) {
hris++;
if (hris > 24) { hris=24; ampm=ampm.replace('pm', 'am'); if (daybit != '') { ampm=ampm.replace(daybit, along.split(daybit + ',')[1].split(',')[0]); } }
minis-=15;
}
} else if (('' + hoursoffgmt.replace('+','')).indexOf('.75') != -1) {
if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1 && minis >= 45) {
minis-=45;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1) {
hris--;
if (hris < 24) { hris=23; ampm=ampm.replace('am', 'pm'); if (daybit != '') { ampm=ampm.replace(daybit, along.split(',' + daybit)[0].split(',')[eval(-1 + along.split(',' + daybit)[0].split(',').length)]); } }
minis+=45;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') == -1 && minis < 15) {
minis+=45;
} else if (('' + hoursoffgmt.replace('+','')).indexOf('-') != -1) {
hris++;
if (hris > 24) { hris=24; ampm=ampm.replace('pm', 'am'); if (daybit != '') { ampm=ampm.replace(daybit, along.split(daybit + ',')[1].split(',')[0]); } }
minis-=45;
}
}
//alert('' + hoursoffgmt + ' ' + hris + ' ' + minis + ' ' + gmtdatetimeis);
if (minis > 45 && eval(hris % 12) == 0) {
return ' ' + String.fromCodePoint(128336) + ampm;
} else if (eval(hris % 12) == 0 && minis <= 15) {
return ' ' + String.fromCodePoint(128347) + ampm;
} else if (eval(hris % 12) == 0) {
return ' ' + String.fromCodePoint(128359) + ampm;
} else if (minis >= 45) {
return ' ' + String.fromCodePoint(eval(eval(hris % 12) + 128336)) + ampm;
} else if (minis <= 15) {
return ' ' + String.fromCodePoint(eval(eval(hris % 12) + 128335)) + ampm;
} else {
return ' ' + String.fromCodePoint(eval(eval(hris % 12) + 128347)) + ampm;
}
return '';
}
function retnearest(tolong, tolat) {
//alert(1);
var diff, date0, date1, utcDate, tzDate, udate, utzdate;
//alert(0);
gmtemj='|' + clockit('0');
var datetime_str='';
var sofardist=-12, ntolong=tolong, ntolat=tolat, thisfardist=0, extratz='', extratztime='', extraemj=''; // thisplace='', thiscc='', thiscn=''
var iplacesarr=yourtzlist.split(' data-geo="');
for (var jk=1; jk<iplacesarr.length; jk++) {
thisfardist=eval(Math.abs(tolong - eval(iplacesarr[jk].split(',')[1])) * Math.abs(tolong - eval(iplacesarr[jk].split(',')[1])) + Math.abs(tolat - eval(iplacesarr[jk].split(',')[0])) * Math.abs(tolat - eval(iplacesarr[jk].split(',')[0])));
if (sofardist < 0) {
sofardist=thisfardist;
ntolong=eval('' + iplacesarr[jk].split(',')[1]);
ntolat=eval('' + iplacesarr[jk].split(',')[0]);
thiscc=iplacesarr[jk].split(',')[3];
thisplace=iplacesarr[jk].split('>')[1].split('<')[0];
extratz=',' + thisplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
date0=new Date().toLocaleString("en-US", { timeZone: thisplace.replace('GMT','UTC') });
extratztime=('|' + date0);
gmttztime=extratztime;
udate=new Date();
utcDate = new Date(udate.toLocaleString('en-US', { timeZone: 'UTC' }));
thisplace=iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
//alert(0);
gmtemj='|' + clockit('0');
//alert(gmtemj);
} else if (thisfardist < sofardist) {
sofardist=thisfardist;
ntolong=eval('' + iplacesarr[jk].split(',')[1]);
ntolat=eval('' + iplacesarr[jk].split(',')[0]);
thiscc=iplacesarr[jk].split(',')[3];
thisplace=iplacesarr[jk].split('>')[1].split('<')[0];
utzdate=new Date();
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thisplace.replace('GMT','UTC') }));
extratz='|' + thisplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
date1=new Date().toLocaleString("en-US", { timeZone: thisplace.replace('GMT','UTC') });
extratztime=('|' + date1);
thisplace=thisplace.replace('GMT','Europe/London').split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
diff = Math.abs(tzDate.getTime() - utcDate.getTime()) / 3600000;
if (diff > 0 && (eval('' + utcDate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utcDate.getDay()) > eval('' + tzDate.getDay()))) {
diff=-diff;
}
extraemj='|' + clockit('' + diff);
}
}
if (thiscc != '') {
if (thefirst) {
thefirst=false;
//document.title='' + diff + ' ... ' + extratztime + extraemj + ' ... ' + diff;
//if (diff > 0 && tzDate > utcDate) {
//alert('not okay: ' + tzDate + tzDate.getDay() + ' - ' + utcDate + utcDate.getDay());
//} else {
//alert('okay: ' + tzDate + tzDate.getDay() + ' - ' + utcDate + utcDate.getDay());
//}
}
for (var ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == thiscc) {
thisplace+=', ' + iso_country_codes[eval(1 + ijk)];
}
}
}
//alert('' + ntolong + '|' + ntolat + '|' + thiscc + '|' + thisplace + extratz + extratztime + extraemj + gmttztime + gmtemj);
return '' + ntolong + '|' + ntolat + '|' + thiscc + '|' + thisplace + extratz + extratztime + extraemj + gmttztime + gmtemj;
}
function checkll(smlong, lglat, lglong, smlat) {
setTimeout(function(){ prevf='' + smlong + ',' + lglat + ',' + lglong + ',' + smlat; }, fivethousand);
for (var am=-180; am<=180; am+=10) {
if (am >= smlong && am <= lglong) {
if (eval((am + 180) % 180) == 0) {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:90px;"> ' + (('' + am).replace('-','') + (('' + am).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr class=mydm title="Meridian ' + am + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:90px;"> ' + (('' + am).replace('-','') + (('' + am).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr class=mydm title="Meridian ' + am + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(0,0,255,0.5);"></hr>';
}
}
}
}
function bmeranalyze(whatb) {
if (whatb.indexOf('<div id="') != -1 && bmeridian.indexOf('<div id="') != -1) {
var whatid=whatb.split('<div id="')[1].split('"')[0];
var bids=bmeridian.split('<div id="' + whatid + '"');
if (eval('' + bids.length) > 1) {
var underthis=bids[1].split('</div>')[0];
var plonkthis=whatb.split('<div id="' + whatid + '"')[1].split('</div>')[0];
bmeridian=bmeridian.replace(underthis, underthis + plonkthis.replace(plonkthis.split('>')[0] + '>', ''));
return bmeridian;
}
}
bmeridian+=whatb;
return bmeridian;
}
function panno(bec, idx) {
if (plotanno[idx] != bec.replace(/\`/g, '"')) {
plotanno[idx]=bec.replace(/\`/g, '"').replace(/\{/g, '[').replace(/\}/g, ']');
newhashit();
//alert(plotanno[idx]);
}
}
function lganno(bec, idx) {
if (legsanno[idx] != bec.replace(/\`/g, '"')) {
legsanno[idx]=bec.replace(/\`/g, '"').replace(/\{/g, '[').replace(/\}/g, ']');
newhashit();
//alert(legsanno[idx]);
}
}
function doplotplace(ipl, maybeg) {
var jpl=0, detbegin='', detend='', nearend='', textras='', legend='', prelegend='', ileg=0;
var thisclock='', nonclock='', aclocl='', thatplace='', utzdate=null, tzDate=null, xdiff=0, xdate1=null;
if (!reveal) {
detbegin='<details onclick="reveal=!reveal;"><summary></summary>';
detend='</details>';
} else {
detbegin='<details open onclick="reveal=!reveal;"><summary>';
detend='</summary></details>';
}
if (plotcc[ipl].trim() && plottz[ipl].trim() != '') { // && plotplace[ipl].indexOf(':') == -1) {
//alert(plotplace[ipl]);
//alert(plotct[ipl]);
//alert(plotemj[ipl]);
if (maybeg == 'g') {
for (ileg=kleg; ileg<legs.length; ileg++) {
if (('~' + legs[ileg] + '~').indexOf('~' + ipl + '.') != -1) {
jpl=eval(('~' + legs[ileg] + '~').split('~' + ipl + '.')[1].split('~')[0]);
if (pleasenolist.indexOf('|' + plotplace[ipl].split(', ')[0].split(',_')[0] + '|') == -1 && pleasenolist.indexOf('|' + ipl + '|') == -1) {
legend+='<details onclick="event.stopPropagation();" title="Annotations for Leg from ' + plotplace[ipl].replace(/\_/g,' ') + ' ' + orflag(plotcc[ipl]) + ' to ' + plotplace[jpl].replace(/\_/g,' ') + ' ' + orflag(plotcc[jpl]) + ' ..."><summary class=lanno> --> ' + plotplace[jpl].replace(/\_/g,' ') + ' ' + orflag(plotcc[jpl]) + '</summary><textarea class=txleg onclick="event.stopPropagation();" rows=9 cols=40 onblur="lganno(this.value,' + ileg + ');">' + legsanno[ileg].replace(/\"/g,'`') + '</textarea></details>';
}
}
if (('~' + legs[ileg] + '~').indexOf('.' + ipl + '~') != -1) {
jpl=eval(('~' + legs[ileg] + '~').split('.' + ipl + '~')[0].split('~')[1]);
if (pleasenolist.indexOf('|' + plotplace[jpl].split(', ')[0].split(',_')[0] + '|') == -1 && pleasenolist.indexOf('|' + jpl + '|') == -1) {
prelegend+='<details onclick="event.stopPropagation();" title="Annotations for Leg from ' + plotplace[jpl].replace(/\_/g,' ') + ' ' + orflag(plotcc[jpl]) + ' to ' + plotplace[ipl].replace(/\_/g,' ') + ' ' + orflag(plotcc[ipl]) + ' ..."><summary class=lanno>' + plotplace[jpl].replace(/\_/g,' ') + ' ' + orflag(plotcc[jpl]) + ' --></summary><textarea class=txleg onclick="event.stopPropagation();" rows=9 cols=40 onblur="lganno(this.value,' + ileg + ');">' + legsanno[ileg].replace(/\"/g,'`') + '</textarea></details>';
}
}
}
if (bmeridian.indexOf(' id="div' + plotlong[ipl] + plotlat[ipl] + '"') != -1) {
textras=bmeridian.split(' id="div' + plotlong[ipl] + plotlat[ipl] + '"')[1].split('>')[0].replace(/\"$/g, String.fromCharCode(10) + plotanno[ipl].replace(/\"/g,'`') + '"');
} else {
textras=' title="' + plotanno[ipl].replace(/\"/g,'`') + '"';
}
nearend='<div id="div' + plotlong[ipl] + plotlat[ipl] + '"' + textras + '>' + prelegend + '<details onclick="event.stopPropagation();" title="Annotations for ' + plotplace[ipl].replace(/\_/g,' ') + ' ' + orflag(plotcc[ipl]) + ' ..."><summary class=panno>🖋</summary><textarea class=txplc onclick="event.stopPropagation();" rows=9 cols=40 onblur="panno(this.value,' + ipl + ');">' + plotanno[ipl].replace(/\"/g,'`') + '</textarea></details>' + legend + '</div>';
thatplace=plottz[ipl];
utzdate=new Date();
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
xdiff = Math.abs(tzDate.getTime() - gutcDate.getTime()) / 3600000;
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') });
if (xdiff > 0 && (eval('' + utzdate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utzdate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct[ipl]=('' + xdate1);
plotemj[ipl]=(clockit('' + xdiff));
}
if (plotemj[ipl].indexOf('pm') != -1) {
aclock=plotemj[ipl].split('pm')[0];
nonclock=plotemj[ipl].split(aclock)[1];
thisclock='<span class=pm>' + aclock + '</span>';
return plotplace[ipl] + ' ' + orflag(plotcc[ipl]) + detbegin + '<br>' + plotct[ipl] + '<br>' + thisclock + nonclock + nearend + detend;
}
return plotplace[ipl] + ' ' + orflag(plotcc[ipl]) + detbegin + '<br>' + plotct[ipl] + '<br>' + plotemj[ipl] + nearend + detend;
}
return plotplace[ipl];
}
function great_circle_bearing(talis, gnolis, latis, longis) {
// Let ‘R’ be the radius of Earth,
// ‘L’ be the longitude,
// ‘θ’ be latitude,
// ‘β‘ be Bearing.
// Bearing from point A to B, can be calculated as,
// β = atan2(X,Y),
// where, X and Y are two quantities and can be calculated as:
// X = cos θb * sin ∆L
// Y = cos θa * sin θb – sin θa * cos θb * cos ∆L
var ourbrg=eval(eval(360.0 + eval(eval(eval(180.0 / Math.PI) * Math.atan2(
eval(eval('' + Math.cos(eval(Math.PI / 180.0) * eval('' + latis))) *
eval('' + Math.sin(eval(Math.PI / 180.0) * eval(eval('' + longis) - eval('' + gnolis))))),
eval(eval('' + Math.cos(eval(Math.PI / 180.0) * eval('' + talis))) *
eval('' + Math.sin(eval(Math.PI / 180.0) * eval('' + latis)))) -
eval(eval('' + Math.sin(eval(Math.PI / 180.0) * eval('' + talis))) *
eval('' + Math.cos(eval(Math.PI / 180.0) * eval('' + latis))) *
eval('' + Math.cos(eval(Math.PI / 180.0) * eval(eval('' + longis) - eval('' + gnolis)))))
)))) % 360.0);
return '' + ourbrg;
}
function great_circle_distance(talis, gnolis, latis, longis) {
var ourdist=0.0;
var rgnol=eval((gnolis) * Math.PI / 180.0);
var rtal=eval((talis) * Math.PI / 180.0);
var rlong=eval((longis) * Math.PI / 180.0);
var rlat=eval((latis) * Math.PI / 180.0);
var deltalong = Math.abs(eval(((gnolis)-(longis)) * Math.PI / 180.0));
var acof = eval(Math.sin(rtal) * Math.sin(rlat)) + (Math.cos(rtal) * Math.cos(rlat) * Math.cos(deltalong)); // via //en.wikipedia.org/wiki/Great-circle_distance ... thanks
ourdist = eval(Math.round((Math.acos(acof) * 6371000.0) + 0.00001) * 100) / 100;
return '' + ourdist;
}
function plotleg(thisleg, smlong, lglat, lglong, smlat) {
var brgtoset=0.0, disttoset=0.0, gbrgtoset=0.0, gdisttoset=0.0, legi=-1, plusbit='', clabit='', isok=true;
legi=legs.indexOf(thisleg);
var ij=eval('' + plotplace.length);
if (('' + thisleg).indexOf('.') != -1) {
if (ij <= eval('' + ('' + thisleg).split('.')[0])) { if (legi >= 0) { kleg=eval(1 + legi); } isok=false; }
if (ij <= eval('' + ('' + thisleg).split('.')[1])) { if (legi >= 0) { kleg=eval(1 + legi); } isok=false; }
}
if (isok && ('' + thisleg).indexOf('.') != -1 && pleasenolist.indexOf('|' + plotplace[eval('' + (thisleg + '.0').replace(/^\./g,'0.').split('.')[0])].split(', ')[0].split(',_')[0] + '|') == -1 && pleasenolist.indexOf('|' + eval('' + (thisleg + '.0').replace(/^\./g,'0.').split('.')[0]) + '|') == -1) {
if (legi >= 0) {
plusbit=String.fromCharCode(10) + legsanno[legi].replace(/\"/g, '`');
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
plusbit+=String.fromCharCode(10);
}
}
console.log('thisleg=' + thisleg + ' and plotplace.length=' + plotplace.length);
if (1 == 1) {
disttoset=Math.sqrt((eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[0])]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) - eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[1])]) - smlong) / eval(lglong - smlong) * eval(screenwidth))) * (eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[0])]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) - eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[1])]) - smlong) / eval(lglong - smlong) * eval(screenwidth))) + (eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[0])])) / eval(lglat - smlat) * eval(screenheight))) - eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[1])])) / eval(lglat - smlat) * eval(screenheight)))) * (eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[0])])) / eval(lglat - smlat) * eval(screenheight))) - eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[1])])) / eval(lglat - smlat) * eval(screenheight)))));
}
gdisttoset=great_circle_distance(plotlat[eval(thisleg.split('.')[0])], plotlong[eval(thisleg.split('.')[0])], plotlat[eval(thisleg.split('.')[1])], plotlong[eval(thisleg.split('.')[1])]);
var meanlong=eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[0])]) - smlong) / eval(lglong - smlong) * eval(screenwidth));
var meanlat=eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[0])])) / eval(lglat - smlat) * eval(screenheight)));
gbrgtoset=great_circle_bearing(plotlat[eval(thisleg.split('.')[0])], plotlong[eval(thisleg.split('.')[0])], plotlat[eval(thisleg.split('.')[1])], plotlong[eval(thisleg.split('.')[1])]);
brgtoset=Math.atan2(eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[1])])) / eval(lglat - smlat) * eval(screenheight))) - meanlat, eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[1])]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) - meanlong) * 180 / Math.PI;
if (brgtoset <= 180.0) { clabit=' class=hrright '; } else { clabit=' class=hrleft '; }
meanlong+=eval(0 + eval(eval('' + plotlong[eval(thisleg.split('.')[1])]) - smlong) / eval(lglong - smlong) * eval(screenwidth))
meanlong/=2.0;
meanlat+=eval(0 + eval(eval(lglat - eval('' + plotlat[eval(thisleg.split('.')[1])])) / eval(lglat - smlat) * eval(screenheight)));
meanlat/=2.0;
console.log(thisleg + ' ' + brgtoset + ' ' + thisleg + ' ... ' + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + ' to ' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])]);
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (plusbit == '') {
//alert(298);
bmeridian+='<hr' + clabit + ' onclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + encodeURIComponent(plotplace[eval(thisleg.split('.')[0])]) + '/' + encodeURIComponent(plotplace[eval(thisleg.split('.')[1])]) + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; alert(this.title); " ondblclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + '/' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])] + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; alert(this.title); " title="' + plusbit + '' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(brgtoset + 450) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window." data-class=leg style="transform:rotate(' + eval(eval('' + brgtoset) - 0) + 'deg);z-index:975;opacity:0.3;position:' + posval + ';top:' +
meanlat +
'px;left:' +
eval(meanlong - disttoset / 2) +
'px;background-color:rgba(255,0,0,0.5);width:' + disttoset + 'px;height:6px;"></hr><span onclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + encodeURIComponent(plotplace[eval(thisleg.split('.')[0])]) + '/' + encodeURIComponent(plotplace[eval(thisleg.split('.')[1])]) + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " ondblclick="event.stopPropagation(); canlooknow=false; clearwo(); gleg=glegit(this); wo=windowopen(' + "'//www.google.com/maps/dir/" + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + '/' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])] + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " title="' + plusbit + '' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(360 - brgtoset) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window. ' + '" data-class=leg style="cursor:pointer;font-size:6px;z-index:976;margin-top:6px;margin-left:-6px;position:' + posval + ';top:' + meanlat + 'px;left:' + meanlong + 'px;" data-oncontextmenu="event.stopPropagation(); woit(' + "'" + plotplace[eval(thisleg.split('.')[1])].split(', ')[0] + "'" + ');" data-tleg="' + thisleg + '">🧭</span>';
} else {
//alert('98 ' + plusbit);
bmeridian+='<hr' + clabit + ' onclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + encodeURIComponent(plotplace[eval(thisleg.split('.')[0])]) + '/' + encodeURIComponent(plotplace[eval(thisleg.split('.')[1])]) + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; ' + " legsalert(this.title + String.fromCharCode(10) + this.getAttribute('data-titlemore'), this.getAttribute('data-anno')" + '); " ondblclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + '/' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])] + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " data-anno="' + legsanno[legi].replace(/\"/g, '`') + '" title="' + plusbit + '" data-titlemore="' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(brgtoset + 450) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window." data-class=leg style="transform:rotate(' + eval(eval('' + brgtoset) - 0) + 'deg);z-index:975;opacity:0.3;position:' + posval + ';top:' +
meanlat +
'px;left:' +
eval(meanlong - disttoset / 2) +
'px;background-color:rgba(255,0,0,0.5);width:' + disttoset + 'px;height:6px;"></hr><span onclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + encodeURIComponent(plotplace[eval(thisleg.split('.')[0])]) + '/' + encodeURIComponent(plotplace[eval(thisleg.split('.')[1])]) + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " ondblclick="event.stopPropagation(); canlooknow=false; clearwo(); gleg=glegit(this); wo=windowopen(' + "'//www.google.com/maps/dir/" + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + '/' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])] + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " title="' + plusbit + '' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(360 - brgtoset) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window. ' + '" data-class=leg style="cursor:pointer;font-size:6px;z-index:976;margin-top:6px;margin-left:-6px;position:' + posval + ';top:' + meanlat + 'px;left:' + meanlong + 'px;" data-oncontextmenu="event.stopPropagation(); woit(' + "'" + plotplace[eval(thisleg.split('.')[1])].split(', ')[0] + "'" + ');" data-tleg="' + thisleg + '">🧭</span>';
}
} else {
bmeridian+='<hr' + clabit + ' onclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + encodeURIComponent(plotplace[eval(thisleg.split('.')[0])]) + '/' + encodeURIComponent(plotplace[eval(thisleg.split('.')[1])]) + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; ' + " legsalert(this.title + String.fromCharCode(10) + this.getAttribute('data-titlemore'), this.getAttribute('data-anno')" + '); " ondblclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + '/' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])] + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " data-anno="' + legsanno[legi].replace(/\"/g, '`') + '" title="' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(brgtoset + 450) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window. ' + plusbit + '" data-titlemore="' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(brgtoset + 450) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window." data-class=leg style="transform:rotate(' + eval(eval('' + brgtoset) - 0) + 'deg);z-index:975;opacity:0.3;position:' + posval + ';top:' +
meanlat +
'px;left:' +
eval(meanlong - disttoset / 2) +
'px;background-color:rgba(255,0,0,0.5);width:' + disttoset + 'px;height:6px;"></hr><span onclick="event.stopPropagation(); canlooknow=false; clearwo(); wo=window.open(' + "'//www.google.com/maps/dir/" + encodeURIComponent(plotplace[eval(thisleg.split('.')[0])]) + '/' + encodeURIComponent(plotplace[eval(thisleg.split('.')[1])]) + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " ondblclick="event.stopPropagation(); canlooknow=false; clearwo(); gleg=glegit(this); wo=windowopen(' + "'//www.google.com/maps/dir/" + plotlat[eval(thisleg.split('.')[0])] + ',' + plotlong[eval(thisleg.split('.')[0])] + '/' + plotlat[eval(thisleg.split('.')[1])] + ',' + plotlong[eval(thisleg.split('.')[1])] + "#In a minute we will start moving the map again','_blank','top=50,left=50,width=1000,height=900')" + '; canlooknow=true; " title="' + plotplace[eval(thisleg.split('.')[0])] + ' to ' + plotplace[eval(thisleg.split('.')[1])] + ' has the crow flying (' + gbrgtoset + ' degrees setting off at versus on Mercator Projection ...) ' + eval(eval(360 - brgtoset) % 360) + ' degrees for ' + eval(gdisttoset / 1000.0) + ' kilometers. Click (for placename) or double click (for geographicals) to open a Google Directions window. ' + plusbit + '" class=leg style="cursor:pointer;font-size:6px;z-index:976;margin-top:6px;margin-left:-6px;position:' + posval + ';top:' + meanlat + 'px;left:' + meanlong + 'px;" data-oncontextmenu="event.stopPropagation(); woit(' + "'" + plotplace[eval(thisleg.split('.')[1])].split(', ')[0] + "'" + ');" data-tleg="' + thisleg + '">🧭</span>';
}
if (ofive == fivethousand) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
fivethousand*=2;
} else {
fivethousand*=10;
}
setTimeout(callintoplay, 5000);
}
}
}
function clearwo() {
if (wo) {
if (wo.closed) {
wo=null;
} else {
wo.close();
wo=null;
}
}
if (wo == null) {
setTimeout(moback, 16000);
}
}
function moback() {
woclosed=true;
if (wo != null) {
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
movesallowed=false;
gmovesallowed=false;
five=0;
gfive=0;
}
woclosed=wo.closed;
console.log('made false ' + wo.closed);
}
if (!woclosed) {
setTimeout(backmo, 2000);
} else {
setTimeout(amnestyinoneminute, 60000);
}
}
function amnestyinoneminute() {
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
}
function backmo() {
if (wo != null) {
if (wo.closed != woclosed) {
if (canlooknow) {
console.log('made true ' + wo.closed);
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
wo=null;
} else {
setTimeout(backmo, 2000);
}
} else {
setTimeout(backmo, 2000);
}
} else {
console.log('Made true ' + wo.closed);
woclosed=wo.closed;
movesallowed=true;
gmovesallowed=true;
five=5;
gfive=5;
}
}
function rightchecklls(smlong, lglat, lglong, smlat, scbl) {
var sofardone=',';
var diff, date0, date1, utcDate, tzDate, udate, utzdate;
gdate0=new Date().toLocaleString("en-US", { timeZone: 'UTC' });
gextratztime=('|' + gdate0);
gudate=new Date();
gutcDate = new Date(gudate.toLocaleString('en-US', { timeZone: 'UTC' }));
setTimeout(function(){ prevf='' + smlong + ',' + lglat + ',' + lglong + ',' + smlat; }, fivethousand);
var iplot=0;
var joff=0;
topc='90';
bmeridian='';
bcircleoflatitude='';
if (lglong > 180) {
joff=eval(-180 + lglong);
}
smlong-=joff;
lglong-=joff;
for (var al=90; al>=-90; al-=10) {
if (al >= smlat && al <= lglat) {
if (topc == '90') { topc='' + eval(91 + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight))); }
if (eval((al + 90) % 90) == 0) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + al).replace('-','') + (('' + al).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr class=mydl title="Circle of latitude ' + al + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + al).replace('-','') + (('' + al).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr class=mydl title="Circle of latitude ' + al + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,0,255,0.5);"></hr>';
}
for (iplot=0; iplot<plotlat.length; iplot++) {
if (Math.abs(plotlat[iplot] - al) <= 5) {
if (plotlong[iplot] >= smlong && plotlong[iplot] <= lglong) {
if (plotplace[iplot].trim() == '') {
if (('' + plotlat[iplot] + plotlong[iplot]).indexOf('.') != -1) {
if (legc.indexOf(',' + iplot + '.') != -1 && sofardone.indexOf(',' + '' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',') == -1) {
sofardone+='' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',';
plotleg('' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0], smlong, lglat, lglong, smlat);
}
if (legc.indexOf('.' + iplot + ',') != -1 && sofardone.indexOf(',' + legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',') == -1) {
sofardone+=legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',';
plotleg(legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot, smlong, lglat, lglong, smlat);
}
bmeridian+='<span class=place style="z-index:1675;position:' + posval + ';top:' + eval(0 + eval(eval(lglat - eval('' + plotlat[iplot])) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:' + eval(0 + eval(eval('' + plotlong[iplot]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;" onclick="event.stopPropagation(); woit(' + "'" + plotplace[iplot].split(', ')[0] + "'" + ');">📍</span>';
}
} else {
if (legc.indexOf(',' + iplot + '.') != -1 && sofardone.indexOf(',' + '' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',') == -1) {
sofardone+='' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',';
plotleg('' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0], smlong, lglat, lglong, smlat);
}
if (legc.indexOf('.' + iplot + ',') != -1 && sofardone.indexOf(',' + legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',') == -1) {
sofardone+=legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',';
plotleg(legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot, smlong, lglat, lglong, smlat);
}
bmeridian=bmeranalyze('<span class=place style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval('' + plotlat[iplot])) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:' + eval(10 + eval(eval('' + plotlong[iplot]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;" onclick=" if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 1 == 1) { if (this.title.trim().length > 0) { plotalert(this.title); } }" title="' + plotanno[iplot].replace(/\"/g,'`').replace(/^/g, String.fromCharCode(10)) + '">' + doplotplace(iplot,'g') + '</span><span class=place style="z-index:1675;position:' + posval + ';top:' + eval(0 + eval(eval(lglat - eval('' + plotlat[iplot])) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:' + eval(0 + eval(eval('' + plotlong[iplot]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;" id=span' + plotplace[iplot].split(', ')[0].replace(/\ /g,'_') + ' onclick="event.stopPropagation(); woit(' + "'" + plotplace[iplot].split(', ')[0] + "'" + ');">📍</span>');
}
}
}
}
if (Math.abs(latis - al) <= 5) {
if (acircleoflatitude == '') {
if (('' + latis).split('.0')[0].slice(-1) == '0') {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + latis).replace('-','') + (('' + latis).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr id=mydl title="Circle of latitude ' + latis + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + latis).replace('-','') + (('' + latis).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr id=mydl title="Circle of latitude ' + latis + '" style="border-style:dotted;z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(255,0,0,0.1);"></hr>';
}
}
}
if (al == 70) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(66 + 34 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Arctic Circle' + '</span><hr class=mydl title="Circle of latitude ' + eval(66 + 34 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(66 + 34 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
if (al == 30) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(23 + 26 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Tropic of Cancer' + '</span><hr class=mydl title="Circle of latitude ' + eval(23 + 26 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(23 + 26 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
if (al == -20) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(-23 - 26 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Tropic of Capricorn' + '</span><hr class=mydl title="Circle of latitude ' + eval(-23 - 26 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(-23 - 26 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
if (al == -60) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(-66 - 34 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Antarctic Circle' + '</span><hr class=mydl title="Circle of latitude ' + eval(-66 - 34 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(-66 - 34 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
}
}
for (var am=-180; am<=250; am+=10) {
if (am >= smlong && am <= lglong) {
if (Math.abs(longis - am) <= 5) {
if (ameridian == '') {
if (('' + longis).split('.0')[0].slice(-1) == '0') {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:90px;"> ' + (('' + longis).replace('-','') + (('' + longis).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr id=mydm title="Meridian ' + longis + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:90px;"> ' + (('' + longis).replace('-','') + (('' + longis).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr id=mydm title="Meridian ' + longis + '" style="z-index:675;border-style:dotted;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.1);"></hr>';
}
}
}
if (am > 180) {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:' + topc + 'px;"> ' + (('' + eval(am - 360)).replace('-','') + (('' + eval(am - 360)).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr class=mydm title="Meridian ' + eval(am - 180) + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:' + topc + 'px;"> ' + (('' + am).replace('-','') + (('' + am).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr class=mydm title="Meridian ' + am + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
}
}
}
}
function checklls(smlong, lglat, lglong, smlat) {
var sofardone=',';
var diff, date0, date1, utcDate, tzDate, udate, utzdate;
gdate0=new Date().toLocaleString("en-US", { timeZone: 'UTC' });
gextratztime=('|' + gdate0);
gudate=new Date();
gutcDate = new Date(gudate.toLocaleString('en-US', { timeZone: 'UTC' }));
setTimeout(function(){ prevf='' + smlong + ',' + lglat + ',' + lglong + ',' + smlat; }, fivethousand);
var iplot=0;
var joff=0;
topc='90';
bmeridian='';
bcircleoflatitude='';
//if (lglong > 180) {
// joff=eval(-180 + lglong);
//}
smlong-=joff;
lglong-=joff;
for (var al=90; al>=-90; al-=10) {
if (al >= smlat && al <= lglat) {
if (topc == '90') { topc='' + eval(91 + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight))); }
if (eval((al + 90) % 90) == 0) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + al).replace('-','') + (('' + al).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr class=mydl title="Circle of latitude ' + al + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + al).replace('-','') + (('' + al).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr class=mydl title="Circle of latitude ' + al + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - al) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,0,255,0.5);"></hr>';
}
for (iplot=0; iplot<plotlat.length; iplot++) {
if (Math.abs(plotlat[iplot] - al) <= 5) {
if (plotlong[iplot] >= smlong && plotlong[iplot] <= lglong) {
if (plotplace[iplot].trim() == '') {
if (('' + plotlat[iplot] + plotlong[iplot]).indexOf('.') != -1) {
if (legc.indexOf(',' + iplot + '.') != -1 && sofardone.indexOf(',' + '' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',') == -1) {
sofardone+='' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',';
plotleg('' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0], smlong, lglat, lglong, smlat);
}
if (legc.indexOf('.' + iplot + ',') != -1 && sofardone.indexOf(',' + legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',') == -1) {
sofardone+=legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',';
plotleg(legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot, smlong, lglat, lglong, smlat);
}
bmeridian+='<span class=place style="z-index:1675;position:' + posval + ';top:' + eval(0 + eval(eval(lglat - eval('' + plotlat[iplot])) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:' + eval(0 + eval(eval('' + plotlong[iplot]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;" onclick="event.stopPropagation(); woit(' + "'" + plotplace[iplot].split(', ')[0] + "'" + ');">📍</span>';
}
} else {
if (legc.indexOf(',' + iplot + '.') != -1 && sofardone.indexOf(',' + '' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',') == -1) {
sofardone+='' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0] + ',';
plotleg('' + iplot + '.' + legc.split(',' + iplot + '.')[1].split(',')[0], smlong, lglat, lglong, smlat);
}
if (legc.indexOf('.' + iplot + ',') != -1 && sofardone.indexOf(',' + legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',') == -1) {
sofardone+=legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot + ',';
plotleg(legc.split('.' + iplot + ',')[0].split(',')[eval(-1 + legc.split('.' + iplot + ',')[0].split(',').length)] + '.' + iplot, smlong, lglat, lglong, smlat);
}
bmeridian=bmeranalyze('<span class=place style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval('' + plotlat[iplot])) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:' + eval(10 + eval(eval('' + plotlong[iplot]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;" onclick=" if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 1 == 1) { if (this.title.trim().length > 0) { plotalert(this.title); } }" title="' + plotanno[iplot].replace(/\"/g,'`').replace(/^/g, String.fromCharCode(10)) + '">' + doplotplace(iplot,'g') + '</span><span class=place style="z-index:1675;position:' + posval + ';top:' + eval(0 + eval(eval(lglat - eval('' + plotlat[iplot])) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:' + eval(0 + eval(eval('' + plotlong[iplot]) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;" id=span' + plotplace[iplot].split(', ')[0].replace(/\ /g,'_') + ' onclick="event.stopPropagation(); woit(' + "'" + plotplace[iplot].split(', ')[0] + "'" + ');">📍</span>');
}
}
}
}
if (Math.abs(latis - al) <= 5) {
if (acircleoflatitude == '') {
if (('' + latis).split('.0')[0].slice(-1) == '0') {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + latis).replace('-','') + (('' + latis).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr id=mydl title="Circle of latitude ' + latis + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + (('' + latis).replace('-','') + (('' + latis).substring(0,1) == '-' ? 'S' : 'N')).replace(/^90N$/g,' North Pole').replace(/^90S$/g,' South Pole').replace(/^0N$/g,' Equator').replace(/^0S$/g,' Equator').replace(/S$/g,'°S').replace(/N$/g,'°N') + '</span><hr id=mydl title="Circle of latitude ' + latis + '" style="border-style:dotted;z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval('' + latis)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(255,0,0,0.1);"></hr>';
}
}
}
if (al == 70) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(66 + 34 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Arctic Circle' + '</span><hr class=mydl title="Circle of latitude ' + eval(66 + 34 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(66 + 34 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
if (al == 30) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(23 + 26 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Tropic of Cancer' + '</span><hr class=mydl title="Circle of latitude ' + eval(23 + 26 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(23 + 26 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
if (al == -20) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(-23 - 26 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Tropic of Capricorn' + '</span><hr class=mydl title="Circle of latitude ' + eval(-23 - 26 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(-23 - 26 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
if (al == -60) {
bcircleoflatitude+='<span style="z-index:675;position:' + posval + ';top:' + eval(10 + eval(eval(lglat - eval(-66 - 34 / 60)) / eval(lglat - smlat) * eval(screenheight))) + 'px;left:0px;"> ' + 'Antarctic Circle' + '</span><hr class=mydl title="Circle of latitude ' + eval(-66 - 34 / 60) + '" style="z-index:675;position:' + posval + ';top:' + eval(eval(lglat - eval(-66 - 34 / 60)) / eval(lglat - smlat) * eval(screenheight)) + 'px;left:0px;height:1px;width:' + screenwidth + 'px;background-color:rgba(0,255,0,0.5);"></hr>';
}
}
}
for (var am=-180; am<=250; am+=10) {
if (am >= smlong && am <= lglong) {
if (Math.abs(longis - am) <= 5) {
if (ameridian == '') {
if (('' + longis).split('.0')[0].slice(-1) == '0') {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:90px;"> ' + (('' + longis).replace('-','') + (('' + longis).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr id=mydm title="Meridian ' + longis + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:90px;"> ' + (('' + longis).replace('-','') + (('' + longis).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr id=mydm title="Meridian ' + longis + '" style="z-index:675;border-style:dotted;position:' + posval + ';left:' + eval(eval(eval('' + longis) - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.1);"></hr>';
}
}
}
if (am > 180) {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:' + topc + 'px;"> ' + (('' + eval(am - 360)).replace('-','') + (('' + eval(am - 360)).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr class=mydm title="Meridian ' + eval(am - 180) + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
} else {
bmeridian+='<span style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:' + topc + 'px;"> ' + (('' + am).replace('-','') + (('' + am).substring(0,1) == '-' ? 'W' : 'E')).replace(/^0E$/g,' Greenwich<br> Meridian').replace(/^180E/g,' International<br> Date<br> Line').replace(/^180W/g,'International<br> Date<br> Line').replace('E','°E').replace('W','°W') + '</span><hr class=mydm title="Meridian ' + am + '" style="z-index:675;position:' + posval + ';left:' + eval(eval(am - smlong) / eval(lglong - smlong) * eval(screenwidth)) + 'px;top:0px;height:' + screenheight + 'px;width:1px;background-color:rgba(255,0,0,0.5);"></hr>';
}
}
}
}
function minusetc(insg) {
var outsg=insg;
var iout=0, outsm=insg.split('-');
if (eval('' + outsm.length) > 1) {
for (iout=1; iout<outsm.length; iout++) {
if (outsm[eval(-1 + iout)].toUpperCase().indexOf('TIMOR') != -1 && outsm[eval(0 + iout)].toUpperCase().indexOf('LESTE') != -1) {
outsg=outsg.replace(outsm[eval(-1 + iout)] + '-' + outsm[eval(0 + iout)], outsm[eval(-1 + iout)] + '%2d' + outsm[eval(0 + iout)]);
} else if (outsm[eval(-1 + iout)].toUpperCase().indexOf('GUINEA') != -1 && outsm[eval(0 + iout)].toUpperCase().indexOf('BISSAU') != -1) {
outsg=outsg.replace(outsm[eval(-1 + iout)] + '-' + outsm[eval(0 + iout)], outsm[eval(-1 + iout)] + '%2d' + outsm[eval(0 + iout)]);
}
}
}
outsg=outsg.replace(/\|\-/g,'|_').replace(/\-/g,',').replace(/\ from\ /g,',').replace(/\ to\ /g,',').replace(/\ FROM\ /g,',').replace(/\ TO\ /g,',').replace(/\%2d/g,'-');
return outsg;
}
function ourprompt(e, blurb, defv) {
var lannos=[], fromannos=[];
var prelannos=[], prefromannos=[];
var locans=null, ijk=0, extras='',thatplace='', utzdate, tzDate, xdate1, xextratztime, xextraemj, xdiff;
var tllg=-180,tlla=90,brlg=-180,brla=90;
if (eval(uc_iso_country_codes.length) == 0) {
for (ijk=0; ijk<iso_country_codes.length; ijk++) {
uc_iso_country_codes.push(iso_country_codes[ijk].toUpperCase());
}
}
if (defv == '') {
e = e || window.event;
e.preventDefault();
if (e.touches) {
if (e.touches[0].pageX) {
xinxy.push(eval(e.touches[0].pageX + document.body.scrollLeft * 0) * 1);
yinxy.push(eval(e.touches[0].pageY + document.body.scrollTop * 0) * 1);
} else {
xinxy.push(eval(e.touches[0].clientX + document.body.scrollLeft * 0) * 1);
yinxy.push(eval(e.touches[0].clientY + document.body.scrollTop * 0) * 1);
}
} else if (e.clientX || e.clientY) {
xinxy.push(e.clientX + document.body.scrollLeft * 0);
yinxy.push(e.clientY + document.body.scrollTop * 0);
} else {
xinxy.push(e.pageX + document.body.scrollLeft * 0);
yinxy.push(e.pageY + document.body.scrollTop * 0);
}
var llsa=blurb.split(') (')[1];
//alert(blurb + ' ... ' + llsa);
tllg=eval(llsa.split(',')[0]);
tlla=eval(llsa.split(',')[1].split(')')[0]);
brlg=eval(llsa.split('(')[1].split(',')[0]);
brla=eval(llsa.split('(')[1].split(',')[1].split(')')[0]);
thislong=eval(tllg + eval(eval(xinxy[eval(-1 + xinxy.length)] / screenwidth) * eval(screenlong)));
thislat=eval(tlla - eval(eval(yinxy[eval(-1 + yinxy.length)] / screenheight) * eval(screenlat)));
var nearbyfour=retnearest(thislong, thislat);
//alert(nearbyfour);
var aatm='youllneverfindthis';
var bbtm=String.fromCharCode(9);
if (blurb.indexOf('Thanks to ') != -1) {
if (blurb.split('Thanks to ')[1].indexOf(' ...') != -1) {
bbtm='Thanks to ' + blurb.split('Thanks to ')[1].split(' ...')[0] + ' ...';
}
}
if (blurb.indexOf(' and around the middle ') != -1) {
aatm=' and around the middle ' + blurb.split(' and around the middle ')[1].split(')')[0] + ')';
}
var ourblurb=null;
ourblurb=(blurb.replace(bbtm,'').replace('Currently top ','Top ').replace(' in terms of ',' as ').replace(aatm, '').replace(/\ and\ /g,' & ').replace('? ', '? ' + ' Nearest timezone place (via N) is ' + nearbyfour.split('|')[3] + ' at [' + nearbyfour.split('|')[0] + ',' + nearbyfour.split('|')[1] + '] to your clicked (via C) [' + thislong + ',' + thislat + '] ') + bbtm.replace(String.fromCharCode(9),'')).replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ').replace(String.fromCharCode(10),' ');
} else {
cseplocans=defv;
//alert('cseplocans=' + cseplocans);
//defv='';
}
if (prevf.indexOf(',') != -1 || defv != '') {
if (defv == '') {
if (Math.abs(eval(prevf.split(',')[0]) - tllg) <= 0.5) {
prevf='' + prevone + ',' + prevtwo + ',' + prevthree + ',' + prevfour;
}
if (Math.abs(eval(prevf.split(',')[0]) - tllg) > 0.5) {
tllg=eval(prevf.split(',')[0]);
tlla=eval(prevf.split(',')[1]);
brlg=eval(prevf.split(',')[2]);
brla=eval(prevf.split(',')[3]);
var sthislong=eval(tllg + eval(eval(xinxy[eval(-1 + xinxy.length)] / screenwidth) * eval(screenlong)));
var sthislat=eval(tlla - eval(eval(yinxy[eval(-1 + yinxy.length)] / screenheight) * eval(screenlat)));
var snearbyfour=retnearest(sthislong, sthislat);
//alert(ourblurb + ' ' + prevf + ' vs ' + tllg + ' ... ' + Math.abs(eval(prevf.split(',')[0]) - tllg));
ourblurb=ourblurb.replace('? ', '? ' + ' Nearest timezone place (via P) is ' + snearbyfour.split('|')[3] + ' at [' + snearbyfour.split('|')[0] + ',' + snearbyfour.split('|')[1] + '] to your clicked (via A) [' + sthislong + ',' + sthislat + '] ');
}
}
if (defv == '') {
//cseplocans='';
cseplocans=prompt(ourblurb, defv);
var beqts=cseplocans.split('"');
for (var ibeq=1; ibeq<beqts.length; ibeq+=2) {
if (beqts[ibeq].indexOf('-') != -1) {
cseplocans=cseplocans.replace('"' + beqts[ibeq] + '"', beqts[ibeq].replace(/\-/g, '%2d'));
alert(cseplocans);
}
}
if (cseplocans.trim() != cseplocans.trim().replace(/\?$/g,'') || cseplocans.indexOf('!?') != -1 || cseplocans.indexOf('?!') != -1 || cseplocans.indexOf('?{') != -1 || cseplocans.indexOf('?,') != -1 || cseplocans.indexOf('?-') != -1) {
gdefv=cseplocans;
dountilnoquestion();
scmok=false;
movesallowed=false;
five=0;
setTimeout(scmove, fivethousand);
return null;
}
setTimeout(newhashit, 3000);
} else {
defv='';
}
}
if (cseplocans != null) {
while (cseplocans.indexOf('++') != -1) {
cseplocans=cseplocans.replace('++','');
fivethousand+=1000;
}
if (cseplocans.indexOf('--') != -1) {
if (cseplocans.trim().indexOf('--') == 0) {
cseplocans=cseplocans.replace('--','');
}
if (cseplocans.trim() != cseplocans.trim().replace(/^\-\-$/g,'')) {
cseplocans=cseplocans.replace(cseplocans.trim(), cseplocans.trim().replace(/^\-\-$/g,''));
}
fivethousand-=1000;
}
while (cseplocans.indexOf('<') != -1) {
cseplocans=cseplocans.replace('<','');
reveal=true;
}
while (cseplocans.indexOf('>') != -1) {
cseplocans=cseplocans.replace('>','');
reveal=false;
}
//alert('88:' + cseplocans);
cseplocans=toiuo(cseplocans);
//alert('888:' + cseplocans);
var preannocseplocans=cseplocans;
var precs=cseplocans.split('{'), thisanno='', thisprefix='', thissuffix='';
var prevanno=precs[0];
for (var iprecs=1; iprecs<precs.length; iprecs++) {
//for (var iprecs=eval(-1 + precs.length); iprecs>=1; iprecs--) {
thisanno='{' + precs[iprecs].split('}')[0] + '}';
if (preannocseplocans.indexOf('-' + thisanno) != -1) {
//alert('yes ' + prevanno + ' ... ' + precs[iprecs].split('}')[0]);
lannos.push(precs[iprecs].split('}')[0]);
//prelannos.push(preannocseplocans.split('-' + thisanno)[0].split('{')[eval(-1 + preannocseplocans.split('-' + thisanno)[0].split('{').length)]);
prelannos.push(prevanno);
prevanno='';
} else if (preannocseplocans.indexOf(' from ' + thisanno) != -1) {
//alert('Yes');
fromannos.push(precs[iprecs].split('}')[0]);
prefromannos.push(prevanno);
prevanno='';
} else if (preannocseplocans.indexOf(' FROM ' + thisanno) != -1) {
//alert('Yes');
fromannos.push(precs[iprecs].split('}')[0]);
prefromannos.push(prevanno);
prevanno='';
} else if (preannocseplocans.indexOf(' to ' + thisanno) != -1) {
//alert('YeS');
lannos.push(precs[iprecs].split('}')[0]);
prelannos.push(prevanno);
prevanno='';
} else if (preannocseplocans.indexOf(' TO ' + thisanno) != -1) {
//alert('YEs');
lannos.push(precs[iprecs].split('}')[0]);
prelannos.push(prevanno);
prevanno='';
} else if (iprecs >= 1) {
//alert('YES ' + precs[eval(-2 + iprecs)]);
if (eventualyourtzlist.indexOf('/' + precs[eval(-1 + iprecs)]) != -1) {
prevanno=precs[eval(-1 + iprecs)];
} else if (iprecs > 1) {
prevanno=precs[eval(-2 + iprecs)];
}
}
//alert('Thisanno=' + thisanno);
thissuffix=cseplocans.split(precs[iprecs])[1].substring(0);
thisprefix=cseplocans.split('{')[0];
//alert('thisanno last 5=' + thisanno.slice(-5));
if (cseplocans.indexOf(thisanno) == -1) {
cseplocans=thisprefix + thissuffix;
} else {
//if (cseplocans.indexOf(thisanno) == -1) { alert('Why? ' + 'thisprefix=' + thisprefix + ' and thissuffix=' + thissuffix); }
cseplocans=cseplocans.replace(thisanno,'');
}
//alert('cseplocans=' + cseplocans.substring(0,100));
}
var ioff=0;
var icss=0, css=[cseplocans], zlocans='';
if (cseplocans.indexOf('|') != -1 || (cseplocans.trim().replace('[','').toUpperCase().substring(0,1) >= 'A' && cseplocans.trim().replace('[','').toUpperCase().substring(0,1) <= 'Z')) {
//alert(preannocseplocans.substring(0,100));
css=minusetc(cseplocans).replace('[','').replace(']','').split(',');
//alert('css length=' + css.length + ' and preannocseplocans.length=' + preannocseplocans.length + ' and cseplocans.length=' + cseplocans.length + ' ... ' + preannocseplocans.slice(-60) + ' ... ' + preannocseplocans.split('{').length + ' ....' + + preannocseplocans[4]);
}
var thissuffix='', xlocans='', preparts=[], leglook=0, fleglook=0;
//alert('css length=' + css.length + ' and preannocseplocans=' + preannocseplocans + ' and cseplocans=' + cseplocans + ' and locans set to be=' + iuo(css[0]) + ' from ' + css[0]);
for (icss=0; icss<css.length; icss++) {
zlocans=css[icss];
//alert('7777:' + css[icss] + ' via ' + minusetc(cseplocans));
locans='' + iuo(css[icss]);
//alert('77777:' + locans);
xlocans=locans;
xlocans=zlocans;
thissuffix='';
if (preannocseplocans.indexOf(zlocans + '{') != -1) { thissuffix='{' + preannocseplocans.split(zlocans + '{')[1].split('}')[0] + '}'; }
xlocans+=thissuffix;
//alert('xlocans=' + xlocans + ' and cseplocans=' + cseplocans);
if (cseplocans.indexOf(zlocans + '-') != -1 || cseplocans.toUpperCase().indexOf(zlocans.toUpperCase() + ' TO ') != -1 || cseplocans.toUpperCase().indexOf(zlocans.toUpperCase() + ' FROM ') != -1) {
//alert(' and css[icss]=' + css[icss] + ' and locans=' + locans + ' and xlocans=' + xlocans + ' Thissuffix=' + thissuffix);
if (1 == 5) {
preparts=preannocseplocans.split(zlocans + '{');
if (eval('' + preparts.length) > 1) {
//if (preparts[1].indexOf('-{') != -1) {
// alert('Preparts[1]=' + preparts[1]);
// alert('preParts[1]=' + preparts[1].replace(preparts[1].split('}')[0] + '',''));
// alert('preparts[1]=' + preparts[1].replace(preparts[1].split('}')[0] + '}',''));
//}
}
}
// Budgewoi33.2329° S, 151.5516° E{ydney}-{yes}Budge-Xwoi31.2329° S, 149.5516° E{elbourne}
// ... gets to Budgewoi|151.5516|_33.2329{ydney}-{yes}BudgeXwoi|149.5516|_31.2329{elbourne}
// [151.5516,-33.2329,Budgewoi]{ydney}-{yes}[149.5516,-31.2329,Budge-Xwoi]{elbourne}
// ... gets to [Budgewoi|151.5516|_33.2329]{ydney}-{yes}[BudgeXwoi|149.5516|_31.2329]{elbourne}
if (cseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + ' FROM ') != -1) {
legs.push('' + eval(1 + ioff + plotcc.length) + '.' + eval(ioff + plotcc.length));
if (preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + ' FROM {') == -1) {
legsanno.push('');
} else {
legsanno.push(preannocseplocans.substring(eval(eval((xlocans.toUpperCase() + ' FROM {').length) + preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + ' FROM {'))).split('}')[0]);
preannocseplocans=preannocseplocans.replace('{' + legsanno[eval(-1 + legsanno.length)] + '}', '');
//alert('z:' + legsanno[eval(-1 + legsanno.length)]);
}
legc+='' + eval(1 + ioff + plotcc.length) + '.' + eval(ioff + plotcc.length) + ',';
} else {
legs.push('' + eval(ioff + plotcc.length) + '.' + eval(1 + ioff + plotcc.length));
//alert('ThisSuffiX=' + thissuffix + ' and cseplocans=' + cseplocans + ' and zlocans=' + zlocans + ' and css[' + icss + ']=' + css[icss] + ' plotplace[]=' + plotplace[eval(0 + ioff + plotcc.length)] + ' and pleasenolist=' + pleasenolist);
if (preannocseplocans.indexOf((xlocans + '-' + '{')) != -1 || eval('' + lannos.length) > leglook) {
//alert('ThisSUffix=' + thissuffix);
//alert('css[icss]=' + css[icss] + ' and prelannos[leglook]=' + prelannos[leglook]); // css[icss]=Budgewoi|151.5516|_33.2329 and prelannos[leglook]=Budgewoi|151.5516|_33.2329
if (eval('' + lannos.length) > leglook && css[icss] == prelannos[leglook]) {
legsanno.push(lannos[leglook]);
leglook++;
//alert('xxx1:' + legsanno[eval(-1 + legsanno.length)] + ' vs' + preannocseplocans);
} else {
legsanno.push(preannocseplocans.substring(eval(eval((xlocans.toUpperCase() + '-{').length) + preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + '-{'))).split('}')[0]);
//alert('xxx2:' + legsanno[eval(-1 + legsanno.length)] + ' vs ' + preannocseplocans);
}
preannocseplocans=preannocseplocans.replace('{' + legsanno[eval(-1 + legsanno.length)] + '}', '');
//alert('xx:' + legsanno[eval(-1 + legsanno.length)]);
} else if (preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + ' TO {') == -1 && preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + '-') == -1) {
//alert('whY? ');
legsanno.push('');
} else if (preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + ' TO ') != -1) {
legsanno.push(preannocseplocans.substring(eval(eval((xlocans.toUpperCase() + ' TO {').length) + preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + ' TO {'))).split('}')[0]);
preannocseplocans=preannocseplocans.replace('{' + legsanno[eval(-1 + legsanno.length)] + '}', '');
//alert('y:' + legsanno[eval(-1 + legsanno.length)]);
} else if (preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + '-{') != -1) {
//alert('ThisSuffix=' + thissuffix);
legsanno.push(preannocseplocans.substring(eval(eval((xlocans.toUpperCase() + '-{').length) + preannocseplocans.toUpperCase().indexOf(xlocans.toUpperCase() + '-{'))).split('}')[0]);
preannocseplocans=preannocseplocans.replace('{' + legsanno[eval(-1 + legsanno.length)] + '}', '');
//alert('x:' + legsanno[eval(-1 + legsanno.length)]);
} else {
legsanno.push('');
}
legc+='' + plotcc.length + '.' + eval(1 + plotcc.length) + ',';
//alert(legs[0]);
}
}
//alert('locans=' + locans + ' and zlocans=' + zlocans + ' and xlocans=' + xlocans);
// locans=[144.96306,-37.81417,Melbourne] and zlocans=Melbourne|144.96306|_37.81417 and xlocans=Melbourne|144.96306|_37.81417
if (locans.toUpperCase().trim() == 'N') {
locans=locans.toUpperCase().replace('N', '[' + nearbyfour.split('|')[0] + ',' + nearbyfour.split('|')[1] + ']');
if (preannocseplocans.toUpperCase().indexOf('N{') != -1) {
plotanno.push(preannocseplocans.substring(eval(2 + preannocseplocans.toUpperCase().indexOf('N{'))).split('}')[0]);
} else {
plotanno.push('');
}
plotplace.push(decodeURIComponent(nearbyfour.split('|')[3]));
plotcc.push(nearbyfour.split('|')[2]);
plotlong.push(nearbyfour.split('|')[0]);
plotlat.push(nearbyfour.split('|')[1]);
if (eval('' + nearbyfour.length) > 4) {
plottz.push(nearbyfour.split('|')[4]);
plotct.push(nearbyfour.split('|')[5]);
plotemj.push(nearbyfour.split('|')[6]);
} else {
plottz.push('');
plotct.push('');
plotemj.push('');
}
} else if (locans.toUpperCase().trim() == 'C') {
thisplace=' ';
locans=locans.toUpperCase().replace('C', '[' + thislong + ',' + thislat + ']');
if (preannocseplocans.toUpperCase().indexOf('C{') != -1) {
plotanno.push(preannocseplocans.substring(eval(2 + preannocseplocans.toUpperCase().indexOf('C{'))).split('}')[0]);
} else {
plotanno.push('');
}
plotplace.push('');
plotcc.push(nearbyfour.split('|')[2]);
plotlong.push(thislong);
plotlat.push(thislat);
plotct.push('');
plotemj.push('');
plottz.push('');
} else if (locans.toUpperCase().trim() == 'P') {
locans=locans.toUpperCase().replace('P', '[' + snearbyfour.split('|')[0] + ',' + snearbyfour.split('|')[1] + ']');
if (preannocseplocans.toUpperCase().indexOf('P{') != -1) {
plotanno.push(preannocseplocans.substring(eval(2 + preannocseplocans.toUpperCase().indexOf('P{'))).split('}')[0]);
} else {
plotanno.push('');
}
plotplace.push(decodeURIComponent(snearbyfour.split('|')[3]));
plotcc.push(snearbyfour.split('|')[2]);
plotlong.push(snearbyfour.split('|')[0]);
plotlat.push(snearbyfour.split('|')[1]);
if (eval('' + nearbyfour.length) > 4) {
plottz.push(nearbyfour.split('|')[4]);
plotct.push(nearbyfour.split('|')[5]);
plotemj.push(nearbyfour.split('|')[6]);
} else {
plottz.push('');
plotct.push('');
plotemj.push('');
}
} else if (locans.toUpperCase().trim() == 'A') {
thisplace=' ';
locans=locans.toUpperCase().replace('A', '[' + sthislong + ',' + sthislat + ']');
if (preannocseplocans.toUpperCase().indexOf('A{') != -1) {
plotanno.push(preannocseplocans.substring(eval(2 + preannocseplocans.toUpperCase().indexOf('A{'))).split('}')[0]);
} else {
plotanno.push('');
}
plotplace.push('');
plotcc.push(snearbyfour.split('|')[2]);
plotlong.push(sthislong);
plotlat.push(sthislat);
plotct.push('');
plotemj.push('');
plottz.push('');
} else if (eval('' + ('' + locans.trim()).length) >= 3 && ('' + locans).indexOf(',') == -1 && yourtzlistindexOf('/' + ('' + locans.trim()).replace(/\ /g,'_') + '<') != -1) {
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
//alert('a:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
//alert(locans);
thisplace=eventualyourtzlist.split('/' + ('' + locans.trim()).replace(/\ /g,'_') + '<')[0].split(' data-geo="')[eval(-1 + eventualyourtzlist.split('/' + ('' + locans.trim()).replace(/\ /g,'_') + '<')[0].split(' data-geo="').length)];
//alert(thisplace);
udate=new Date();
utcDate = new Date(udate.toLocaleString('en-US', { timeZone: 'UTC' }));
if (!realtz) {
thatplace=eventualyourtzlist.split('/' + ('' + locans.trim()).replace(/\ /g,'_') + '<')[0].split(' value="')[eval(-1 + eventualyourtzlist.split('/' + ('' + locans.trim()).replace(/\ /g,'_') + '<')[0].split(' value="').length)].split('"')[0];
//alert(locans + ' ' + thatplace + ' ' + eventualyourtzlist.slice(-150));
} else {
thatplace=thisplace.split('>')[1].split('<')[0].replace('GMT','UTC') + '/' + locans.trim();
}
//alert(thatplace);
utzdate=new Date();
//alert('thatplace=' + thatplace + '!');
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
extratz=',' + thatplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') });
xextratztime=(',' + xdate1);
plottz.push(thatplace);
thatplace=thatplace.replace('GMT','Europe/London').split('/')[eval(-1 + thatplace.replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdiff = Math.abs(tzDate.getTime() - utcDate.getTime()) / 3600000;
if (xdiff > 0 && (eval('' + utcDate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utcDate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct.push('' + xdate1);
plotemj.push(clockit('' + xdiff));
plotplace.push(decodeURIComponent(eventualyourtzlist.split(thisplace.split('>')[0] + '>')[1].split('<')[0].replace('GMT','Europe/London').split('/')[eval(-1 + eventualyourtzlist.split(thisplace.split('>')[0] + '>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ')));
plotlong.push((thisplace.split(',')[1]));
plotlat.push((thisplace.split(',')[0]));
plotcc.push(thisplace.split(',')[3]);
if (thisplace.split(',')[3] != '') {
for (ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == thisplace.split(',')[3].toUpperCase()) {
extras=', ' + iso_country_codes[eval(1 + ijk)];
plotplace[eval(-1 + plotplace.length)]+=extras;
extras='';
}
}
}
//alert(extras + ' ... ' + locans);
locans=locans.replace(locans.trim(), '[' + thisplace.split(',')[1] + ',' + thisplace.split(',')[0] + ',' + plotplace[eval(-1 + plotplace.length)] + extras + ']');
//alert('locans=' + locans + '!');
thisplace=' ';
} else if (eval('' + ('' + locans.trim()).length) >= 3 && ('' + locans).indexOf(',') == -1 && yourtzlist.toUpperCase().indexOf('/' + ('' + locans.trim()).toUpperCase().replace(/\ /g,'_') + '<') != -1) {
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
//alert('b:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
thisplace=yourtzlist.toUpperCase().split('/' + ('' + locans.trim()).toUpperCase().replace(/\ /g,'_') + '<')[0].split(' DATA-GEO="')[eval(-1 + yourtzlist.toUpperCase().split('/' + ('' + locans.trim()).toUpperCase().replace(/\ /g,'_') + '<')[0].split(' DATA-GEO="').length)];
//alert(thisplace);
udate=new Date();
utcDate = new Date(udate.toLocaleString('en-US', { timeZone: 'UTC' }));
thatplace=thisplace.split('>')[1].split('<')[0].replace('GMT','UTC') + '/' + locans.trim();
utzdate=new Date();
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
extratz=',' + thatplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC') });
xextratztime=(',' + xdate1);
plottz.push(thatplace);
thatplace=thatplace.replace('GMT','Europe/London').split('/')[eval(-1 + thatplace.replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdiff = Math.abs(tzDate.getTime() - utcDate.getTime()) / 3600000;
if (xdiff > 0 && (eval('' + utcDate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utcDate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct.push('' + xdate1);
plotemj.push(clockit('' + xdiff));
plotplace.push(decodeURIComponent(yourtzlist.split(thisplace.split('>')[0] + '>')[1].split('<')[0].replace('GMT','Europe/London').split('/')[eval(-1 + yourtzlist.split(thisplace.split('>')[0] + '>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ')));
plotlong.push((thisplace.split(',')[1]));
plotlat.push((thisplace.split(',')[0]));
plotcc.push(thisplace.split(',')[3]);
if (thisplace.split(',')[3] != '') {
for (ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == thisplace.split(',')[3].toUpperCase()) {
extras=', ' + iso_country_codes[eval(1 + ijk)];
plotplace[eval(-1 + plotplace.length)]+=extras;
extras='';
}
}
}
//alert(extras + ' .... ' + locans);
locans=locans.replace(locans.trim(), '[' + thisplace.split(',')[1] + ',' + thisplace.split(',')[0] + ',' + plotplace[eval(-1 + plotplace.length)] + extras + ']');
//alert(locans);
thisplace=' ';
} else if (eval('' + ('' + locans.trim()).length) == 2 && ('' + locans).indexOf(',') == -1 && yourtzlist.indexOf(',' + ('' + locans.trim()).toUpperCase() + ',') != -1) {
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
//alert('c:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
thisplace=yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[0].split(' data-geo="')[eval(-1 + yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[0].split(' data-geo="').length)];
thatplace=yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','UTC').trim();
utzdate=new Date();
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
extratz=',' + thatplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') });
xextratztime=(',' + xdate1);
plottz.push(thatplace);
thatplace=thatplace.replace('GMT','Europe/London').split('/')[eval(-1 + thatplace.replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdiff = Math.abs(tzDate.getTime() - utzdate.getTime()) / 3600000;
if (xdiff > 0 && (eval('' + utzdate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utzdate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct.push('' + xdate1);
plotemj.push(clockit('' + xdiff));
plotplace.push(decodeURIComponent(yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/')[eval(-1 + yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ')));
plotlong.push((thisplace.split(',')[1]));
plotlat.push((thisplace.split(',')[0]));
plotcc.push(locans.trim());
if (locans != '') {
for (ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == locans.trim().toUpperCase()) {
extras=', ' + iso_country_codes[eval(1 + ijk)];
plotplace[eval(-1 + plotplace.length)]+=extras;
extras='';
}
}
}
//alert(472);
locans=locans.replace(locans.trim(), '[' + thisplace.split(',')[1] + ',' + thisplace.split(',')[0] + ',' + plotplace[eval(-1 + plotplace.length)] + extras + ']');
thisplace=' ';
} else if (eval('' + ('' + locans.trim()).length) >= 3 && ('' + locans).indexOf(',') == -1 && iso_country_codes.indexOf(locans.trim()) != -1) {
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
///alert('d:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
//alert(iso_country_codes[eval(-1 + eval('' + iso_country_codes.indexOf(locans.trim())))].toUpperCase());
if (yourtzlist.indexOf(',' + ('' + iso_country_codes[eval(-1 + eval('' + iso_country_codes.indexOf(locans.trim())))].toUpperCase()) + ',') != -1) {
//alert(2472);
locans=locans.replace(locans.trim(), '' + iso_country_codes[eval(-1 + eval('' + iso_country_codes.indexOf(locans.trim())))]);
thisplace=yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[0].split(' data-geo="')[eval(-1 + yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[0].split(' data-geo="').length)];
//alert('thisplace=' + thisplace + ' and thatplace=' + thatplace);
thatplace=yourtzlist.split(thisplace)[1].split('>')[1].split('<')[0].replace('GMT','UTC');
//alert('thisplace=' + thisplace + ' and thatplace=' + thatplace);
utzdate=new Date();
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
extratz=',' + thatplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') });
xextratztime=(',' + xdate1);
plottz.push(thatplace);
thatplace=thatplace.replace('GMT','Europe/London').split('/')[eval(-1 + thatplace.replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdiff = Math.abs(tzDate.getTime() - utzdate.getTime()) / 3600000;
if (xdiff > 0 && (eval('' + utzdate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utzdate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct.push('' + xdate1);
plotemj.push(clockit('' + xdiff));
plotplace.push(decodeURIComponent(yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/')[eval(-1 + yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ')));
plotlong.push((thisplace.split(',')[1]));
plotlat.push((thisplace.split(',')[0]));
plotcc.push(locans.trim());
if (locans != '') {
for (ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == locans.trim().toUpperCase()) {
extras=', ' + iso_country_codes[eval(1 + ijk)];
plotplace[eval(-1 + plotplace.length)]+=extras;
extras='';
}
}
}
//alert(572);
locans=locans.replace(locans.trim(), '[' + thisplace.split(',')[1] + ',' + thisplace.split(',')[0] + ',' + plotplace[eval(-1 + plotplace.length)] + extras + ']');
thisplace=' ';
} else if (locans.trim() != '' && locans.trim() != locans) {
//alert(98);
//alert(7472);
locans=locans.replace(locans.trim(), '');
} else if (locans.trim() != locans) {
//alert('988' + locans + '88');
locans=locans;
} else {
//alert('98' + locans + '8');
locans=null;
}
} else if (eval('' + ('' + locans.trim()).length) >= 3 && ('' + locans).indexOf(',') == -1 && uc_iso_country_codes.indexOf(locans.trim().toUpperCase()) != -1) {
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
//alert('g:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
//alert(iso_country_codes[eval(-1 + eval('' + uc_iso_country_codes.indexOf(locans.trim())))].toUpperCase());
if (yourtzlist.indexOf(',' + iso_country_codes[eval(-1 + uc_iso_country_codes.indexOf(locans.trim().toUpperCase()))].toUpperCase() + ',') != -1) {
//alert(8472);
locans=locans.replace(locans.trim(), '' + iso_country_codes[eval(-1 + eval('' + uc_iso_country_codes.indexOf(locans.trim().toUpperCase())))]);
thisplace=yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[0].split(' data-geo="')[eval(-1 + yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[0].split(' data-geo="').length)];
thatplace=thisplace.split('>')[1].split('<')[0].replace('GMT','UTC');
utzdate=new Date();
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
extratz=',' + thatplace; //.split('/')[eval(-1 + iplacesarr[jk].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') });
xextratztime=(',' + xdate1);
plottz.push(thatplace);
thatplace=thatplace.replace('GMT','Europe/London').split('/')[eval(-1 + thatplace.replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdiff = Math.abs(tzDate.getTime() - utzdate.getTime()) / 3600000;
if (xdiff > 0 && (eval('' + utzdate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utzdate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct.push('' + xdate1);
plotemj.push(clockit('' + xdiff));
plotplace.push(decodeURIComponent(yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/')[eval(-1 + yourtzlist.split(',' + ('' + locans.trim()).toUpperCase() + ',')[1].split('>')[1].split('<')[0].replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ')));
plotlong.push((thisplace.split(',')[1]));
plotlat.push((thisplace.split(',')[0]));
plotcc.push(locans.trim());
if (locans != '') {
for (ijk=0; ijk<iso_country_codes.length; ijk+=2) {
if (iso_country_codes[ijk].toUpperCase() == locans.trim().toUpperCase()) {
extras=', ' + iso_country_codes[eval(1 + ijk)];
plotplace[eval(-1 + plotplace.length)]+=extras;
extras='';
}
}
}
//alert(987);
locans=locans.replace(locans.trim(), '[' + thisplace.split(',')[1] + ',' + thisplace.split(',')[0] + ',' + plotplace[eval(-1 + plotplace.length)] + extras + ']');
thisplace=' ';
} else if (locans.trim() != '' && locans.trim() != locans) {
//alert(8);
//alert(9472);
locans=locans.replace(locans.trim(), '');
} else if (locans.trim() != locans) {
//alert('88' + locans + '88');
locans=locans;
} else {
//alert('8' + locans + '8');
locans=null;
}
} else if (('' + locans).indexOf(',') != -1 && ('' + locans).indexOf('[') != -1) {
//alert('preannocseplocans=' + preannocseplocans + ' and realtz=' + realtz);
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
//alert('h:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
thisplace=' ';
plotct.push('');
plotemj.push('');
plottz.push('');
plotcc.push('');
if (eval('' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',').length) > 2) {
plotplace.push(thedecodeURIComponent(locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','')));
thisplace=locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','') + ' ';
//alert('ThisPlace=' + thisplace);
if (zlocans.indexOf('|') != -1) { realtz=false; }
if (zlocans.indexOf('|') != -1 || yourtzlistindexOf('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<') == -1) {
//alert('Thisplace=' + thisplace + ' ' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1] + ',' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0]);
var jmoretzs=('' + retnearest(locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0], locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1])).split('|');
if ((plottz[eval(-1 + plotcc.length)] == ' ' || plotcc[eval(-1 + plotcc.length)].trim() == '') && eval('' + jmoretzs.length) > 2) {
if (plottz[eval(-1 + plotcc.length)] == ' ') { plottz[eval(-1 + plotcc.length)]=''; }
if (eval('' + jmoretzs[2].length) == 2) {
if (plotcc[eval(-1 + plotcc.length)] == '') { plotcc[eval(-1 + plotcc.length)]='' + jmoretzs[2]; }
if (!realtz || 1 == 1) {
if (locans.indexOf('.') == -1) {
if (argstuff == '') {
argstuff='?nontz=' + encodeURIComponent(addcty('' + locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','').replace(/\ /g,'_').trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '.0' + '|' + jmoretzs[2]);
} else {
argstuff+=encodeURIComponent(',' + addcty(locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','').replace(/\ /g,'_').trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '.0' + '|' + jmoretzs[2]);
}
} else {
if (argstuff == '') {
argstuff='?nontz=' + encodeURIComponent(addcty('' + locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','').replace(/\ /g,'_').trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '|' + jmoretzs[2]);
} else {
argstuff+=encodeURIComponent(',' + addcty(locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','').replace(/\ /g,'_').trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '|' + jmoretzs[2]);
}
}
}
}
thisplace=locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','') + ' ';
//alert('thisplace=' + thisplace + ' ' + 'argstuff=' + decodeURIComponent(argstuff.substring(7)));
}
if (eval('' + jmoretzs.length) > 4) {
plottz[eval(-1 + plottz.length)]='' + jmoretzs[4];
if (locans.indexOf('.') == -1) {
eventualyourtzlist+='<option value="' + plottz[eval(-1 + plottz.length)] + '" data-geo="' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1] + '.0,' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0] + ',GMT,' + plotcc[eval(-1 + plotcc.length)] + ',+0">' + plottz[eval(-1 + plottz.length)].replace(plottz[eval(-1 + plottz.length)].split('/')[eval(-1 + plottz[eval(-1 + plottz.length)].split('/').length)], locans.split('|')[0].replace(/\ /g,'_')) + '</option>';
} else {
eventualyourtzlist+='<option value="' + plottz[eval(-1 + plottz.length)] + '" data-geo="' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1] + ',' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0] + ',GMT,' + plotcc[eval(-1 + plotcc.length)] + ',+0">' + plottz[eval(-1 + plottz.length)].replace(plottz[eval(-1 + plottz.length)].split('/')[eval(-1 + plottz[eval(-1 + plottz.length)].split('/').length)], locans.split('|')[0].replace(/\ /g,'_')) + '</option>';
}
if (eventualyourtzlist != yourtzlist) { setTimeout(newhashit, 5000); }
}
var zxc=yourtzlistindexOf('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<');
udate=new Date();
utcDate = new Date(udate.toLocaleString('en-US', { timeZone: 'UTC' }));
if (!realtz) {
thatplace=eventualyourtzlist.split('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<')[0].split(' value="')[eval(-1 + eventualyourtzlist.split('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<')[0].split(' value="').length)].split('"')[0];
//alert(locans + ' ' + thatplace + ' ' + eventualyourtzlist.slice(-150));
} else {
thatplace=eventualyourtzlist.split('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<')[0].split(' value="')[eval(-1 + eventualyourtzlist.split('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<')[0].split(' value="').length)].split('"')[0];
}
//alert(thatplace);
utzdate=new Date();
//alert('thatplace=' + thatplace + '!');
tzDate = new Date(utzdate.toLocaleString('en-US', { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') }));
extratz=',' + thatplace;
xdate1=new Date().toLocaleString("en-US", { timeZone: thatplace.replace('GMT','UTC').replace(/\ /g,'_') });
xextratztime=(',' + xdate1);
plottz[eval(-1 + plottz.length)]=thatplace;
thatplace=thatplace.replace('GMT','Europe/London').split('/')[eval(-1 + thatplace.replace('GMT','Europe/London').split('/').length)].replace(/\_/g,' ');
xdiff = Math.abs(tzDate.getTime() - utcDate.getTime()) / 3600000;
if (xdiff > 0 && (eval('' + utcDate.getDay()) == 0 && eval('' + tzDate.getDay()) == 6 || eval('' + utcDate.getDay()) > eval('' + tzDate.getDay()))) {
xdiff=-xdiff;
}
xextraemj=',' + clockit('' + xdiff);
plotct[eval(-1 + plotct.length)]=('' + xdate1);
plotemj[eval(-1 + plotemj.length)]=(clockit('' + xdiff));
//alert('2788' + locans.split('|')[0].replace(/\_/g,' ') + '88');
//alert(('' + retnearest(locans.split('|')[1].replace('_','-'), locans.split('|')[2].replace('_','-'))));
jmoretzs=('' + retnearest(locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0], locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1])).split('|');
if (plotcc[eval(-1 + plotcc.length)].trim() == '' && eval('' + jmoretzs.length) > 2) {
if (eval('' + jmoretzs[2].length) == 2) {
plotcc[eval(-1 + plotcc.length)]='' + jmoretzs[2];
if (9 == 7) {
if (!realtz) {
if (locans.indexOf('.') == -1) {
if (argstuff == '') {
argstuff='?nontz=' + encodeURIComponent(addcty('' + thisplace.trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '.0' + '|' + jmoretzs[2]);
} else {
argstuff+=encodeURIComponent(',' + addcty(thisplace.trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '.0' + '|' + jmoretzs[2]);
}
} else {
if (argstuff == '') {
argstuff='?nontz=' + encodeURIComponent(addcty('' + thisplace.trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '|' + jmoretzs[2]);
} else {
argstuff+=encodeURIComponent(',' + addcty(thisplace.trim()) + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0].replace('-','_') + '|' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1].replace('-','_') + '|' + jmoretzs[2]);
}
}
}
}
}
if (eval('' + jmoretzs.length) > 4) {
plottz[eval(-1 + plottz.length)]='' + jmoretzs[4];
if (locans.indexOf('.') == -1) {
eventualyourtzlist+='<option value="' + plottz[eval(-1 + plottz.length)] + '" data-geo="' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1] + '.0,' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0] + ',GMT,' + plotcc[eval(-1 + plotcc.length)] + ',+0">' + plottz[eval(-1 + plottz.length)].replace(plottz[eval(-1 + plottz.length)].split('/')[eval(-1 + plottz[eval(-1 + plottz.length)].split('/').length)], locans.split('|')[0].replace(/\ /g,'_')) + '</option>';
} else {
eventualyourtzlist+='<option value="' + plottz[eval(-1 + plottz.length)] + '" data-geo="' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1] + ',' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0] + ',GMT,' + plotcc[eval(-1 + plotcc.length)] + ',+0">' + plottz[eval(-1 + plottz.length)].replace(plottz[eval(-1 + plottz.length)].split('/')[eval(-1 + plottz[eval(-1 + plottz.length)].split('/').length)], locans.split('|')[0].replace(/\ /g,'_')) + '</option>';
}
if (eventualyourtzlist != yourtzlist) { setTimeout(newhashit, 5000); }
}
}
}
} else {
plotplace.push('');
}
plotlong.push(locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[0]);
if (locans.indexOf('.') == -1) {
plotlat.push(locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1] + '.0');
} else {
plotlat.push(locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',')[1]);
}
} else if (('' + locans).indexOf(',') != -1 && ('' + locans).indexOf('.') != -1) {
if (preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{') != -1) {
plotanno.push(preannocseplocans.substring(eval(eval((('' + zlocans).toUpperCase() + '{').length) + preannocseplocans.toUpperCase().indexOf(('' + zlocans).toUpperCase() + '{'))).split('}')[0]);
//alert('j:' + plotanno[eval(-1 + plotanno.length)]);
} else {
plotanno.push('');
}
thisplace=' ';
plotct.push('');
plotemj.push('');
plottz.push('');
plotcc.push('');
if (eval('' + locans.replace('(','').replace(')','').replace('[','').replace(']','').split(',').length) > 2) {
plotplace.push(decodeURIComponent(locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','').trim()));
thisplace=locans.replace(locans.split(',')[0] + ',' + locans.split(',')[1] + ',', '').replace('(','').replace(')','').replace('[','').replace(']','') + ' ';
if (yourtzlistindexOf('/' + ('' + thisplace.trim()).replace(/\ /g,'_') + '<') == -1) {
//alert('thisplace=' + thisplace + ' ' + locans.replace('(',''