4c4 < Legend (of Map, perhaps) - RJM Programming - September, 2016 - Thanks to http://www.html5rocks.com/en/tutorials/file/dndfiles/ and https://www.midwinter-dg.com/permalink-7-great-css-based-text-effects-using-the-text-shadow-property_2011-03-03.html --- > Legend (of Map, perhaps) - RJM Programming - September, 2016 - Thanks to http://www.html5rocks.com/en/tutorials/file/dndfiles/ 14,20c14 < < a.onmap { < color: #fff; < text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff2d95, 0 0 30px #ff2d95, 0 0 40px #ff2d95, 0 0 50px #ff2d95, 0 0 75px #ff2d95; < letter-spacing: 2px; < font: 14px 'MisoRegular'; < } --- > 30c24 < var href=[], onclick=[], names=[], sortnames=[]; --- > var href=[], onclick=[], names=[]; 39,41d32 < var fgc=false; < var wasstr='', sortstr='', headstr='', tailstr='', mode=1; < 45,76d35 < function toggler(cfor) { < if (cfor.indexOf(' for ') != -1) { < return cfor.replace(" for "," for "); < } < return cfor; < } < < function oursort(intbh) { < var outtbh=intbh, curtr, iy, iyy, jyy; < if (names.length > 0) { < if (names[0] != '') { < headstr=intbh.substring(0,intbh.indexOf('',''); < sortnames=names.sort(); < curtr=wasstr.split('' + sortnames[iy] + '') != -1) { < jyy=iyy; < } < } < outtbh+='' + outtbh + ''; < } < 78d36 < setTimeout(checkrest, 2000); 106a65 > setTimeout(checkrest, 2000); 112,114d70 < if ((rawurl.indexOf('rjmprogramming.com.au') == -1 && rawurl.indexOf('/localhost:8888/') == -1)) { // || (xrawurl.indexOf('/~mkuulma/livingroom_corner.htm') != -1 || rawurl.indexOf('/~mkuulma/livingroom_corner.htm') != -1)) { < fgc=true; < //document.getElementById('myif').src = 'http://localhost:8888/legend_via_map.php?url=' + encodeURIComponent(xrawurl); 117d72 < } 213,233d167 < function circlevia(cx,cy,rad) { < var cdelim='', cis=''; < for (var jj=0.0; jj<=360.00; jj++) { < cis+=cdelim + eval(cx + Math.sin(jj * Math.PI / 180.0) * rad); < cdelim=','; < cis+=cdelim + eval(cy + Math.cos(jj * Math.PI / 180.0) * rad); < } < return cis.split(','); < } < < function rectanglevia(cx,cy,cxt,cyt) { < var cdelim='', cis='',pcx=cx,pcy=cy; < for (var jj=0; jj<=360; jj+=90) { < pcx=eval(pcx + Math.sin(Math.PI * jj / 180.0) * eval(eval(cxt) - eval(cx))); < cis+=cdelim + pcx; < cdelim=','; < pcy=eval(pcy + Math.cos(Math.PI * jj / 180.0) * eval(eval(cyt) - eval(cy))); < cis+=cdelim + pcy; < } < return cis.split(','); < } 236c170 < document.getElementById('placemap').innerHTML="
"; --- > document.getElementById('placemap').innerHTML=""; 240c174 < var imi, jmi, mapp=-1, mi=1, sparer='', i, j, k, bits, maphtml='', postbits, hrefbits, onclickbits, minw, maxw, minh, maxh,mybits='',delim=''; --- > var sparer='', i, j, k, bits, maphtml='', postbits, hrefbits, onclickbits, minw, maxw, minh, maxh,mybits='',delim=''; 243,246d176 < //alert(8); < while (rawhtml.indexOf('+') != -1) { < rawhtml=rawhtml.replace('+',' '); < } 248d177 < mapp=rawhtml.replace(' 2) { < for (imi=1; imi eval(jmi)) mi++; < } < } < //alert(mi); < postbits=bits[mi].replace(' SRC=',' src=').split('src='); --- > postbits=bits[1].replace(' SRC=',' src=').split('src='); 266,267c186 < //if (mapimg != '' && mapimg.indexOf('/') == -1 && xrawurl.indexOf('/') != -1) { < if (mapimg != '' && mapimg.indexOf('//') == -1 && mapimg.indexOf(':') == -1 && xrawurl.indexOf(':') != -1 && xrawurl.indexOf('//') != -1) { --- > if (mapimg != '' && mapimg.indexOf('/') == -1 && xrawurl.indexOf('/') != -1) { 281d199 < //alert('mapiMg=' + mapimg); 292,295c210 < while (rawhtml.indexOf('+') != -1) { < rawhtml=rawhtml.replace('+',' '); < } < //document.getElementById('tarea').value = rawhtml; --- > document.getElementById('tarea').value = rawhtml; 335,336c250 < //if (mapimg != '' && mapimg.indexOf('/') == -1 && sparer.indexOf('/') != -1) { < if (mapimg != '' && mapimg.indexOf(':') == -1 && sparer.indexOf(':') != -1 && mapimg.indexOf('//') == -1 && sparer.indexOf('//') != -1) { --- > if (mapimg != '' && mapimg.indexOf('/') == -1 && sparer.indexOf('/') != -1) { 350d263 < //alert('MapiMg=' + mapimg); 372,375d284 < while (rawhtml.indexOf('+') != -1) { < rawhtml=rawhtml.replace('+',' '); < } < //alert(rawhtml); 399,404d307 < //alert(postbits.length); < if (postbits.length == 3) { < postbits=circlevia(eval(postbits[0]),eval(postbits[1]),eval(postbits[2])); < } else if (postbits.length == 4) { < postbits=rectanglevia(eval(postbits[0]),eval(postbits[1]),eval(postbits[2]),eval(postbits[3])); < } 485c388 < tablehtml=('/g,'">').replace(/ \/>/g,'/svg>/td> tablehtml=('
').replace('Legend' + toggler((' for ' + filen + '
/g,'">').replace(/ \/>/g,'/svg>/td> if (mapimg != '') tablehtml=tablehtml.replace('=td1 ', '=td1 style="background:url(' + "'" + mapimg + "'" + '); background-position: -' + Math.max(0,tox[i]) + 'px -' + Math.max(0,toy[i]) + 'px; " '); 492c395 < tablehtml=tablehtml.replace('', '' + names[i] + ''); --- > tablehtml=tablehtml.replace('', '' + names[i] + ''); 495c398 < tablehtml=tablehtml.replace('', '' + names[i] + ''); --- > tablehtml=tablehtml.replace('', '' + names[i] + ''); 498c401 < tablehtml=tablehtml.replace('', '' + names[i] + ''); --- > tablehtml=tablehtml.replace('', '' + names[i] + ''); 505c408 < document.getElementById('table_content').innerHTML = document.getElementById('forscripts').innerHTML + oursort(tablehtml.replace(/ shape="poly" /g,' ').replace(/ shape="rect" /g,' ').replace(/ shape="circle" /g,' ')); --- > document.getElementById('table_content').innerHTML = document.getElementById('forscripts').innerHTML + tablehtml.replace(/ shape="poly" /g,' ').replace(/ shape="rect" /g,' ').replace(/ shape="circle" /g,' '); 560,573c463 < //if ((!fgc && rawurl.indexOf('rjmprogramming.com.au') == -1 && rawurl.indexOf('/localhost:8888/') == -1) || (xrawurl.indexOf('/~mkuulma/livingroom_corner.htm') != -1 || rawurl.indexOf('/~mkuulma/livingroom_corner.htm') != -1)) { < if (fgc) { < if (aconto.document) { aconto = aconto.document; } < if (aconto.body != null) { < //alert(97000); < rawhtml=aconto.body.innerHTML; < //alert(rawhtml); < checkins(); < //aconto.scrollTo(200, 200); < //document.getElementById('mytable').style.top='200px;' < //document.getElementById('mytable').style.left='200px;' < } < fgc=false; < } else if ((xrawurl.indexOf('rjmprogramming.com.au') == -1 && xrawurl.indexOf('/localhost:8888/') == -1)) { // || (xrawurl.indexOf('/~mkuulma/livingroom_corner.htm') != -1 || rawurl.indexOf('/~mkuulma/livingroom_corner.htm') != -1)) { --- > if (rawurl.indexOf('rjmprogramming.com.au') == -1 && xrawurl.indexOf('/~mkuulma/livingroom_corner.htm') == -1 && rawurl.indexOf('/~mkuulma/livingroom_corner.htm') == -1) { 579d468 < //rawurl=''; 584d472 < //alert(9700); 586d473 < //alert(rawhtml); 603c490 < document.getElementById('table_content').innerHTML = document.getElementById('forscripts').innerHTML + oursort(tablehtml.replace(/ shape="poly" /g,' ').replace(/ shape="rect" /g,' ').replace(/ shape="circle" /g,' ')); --- > document.getElementById('table_content').innerHTML = document.getElementById('forscripts').innerHTML + tablehtml.replace(/ shape="poly" /g,' ').replace(/ shape="rect" /g,' ').replace(/ shape="circle" /g,' '); 632,633c519,520 < HTML Itself:


<  Showing (Initially Sorted) Labels --- > HTML Itself:


>  Showing Labels
').replace('Legend' + (' for ' + filen + '