{"id":61221,"date":"2023-10-20T03:01:28","date_gmt":"2023-10-19T17:01:28","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=61221"},"modified":"2023-10-20T17:09:54","modified_gmt":"2023-10-20T07:09:54","slug":"svg-shapes-line-annotation-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-line-annotation-tutorial\/","title":{"rendered":"SVG Shapes Line Annotation Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"SVG Shapes Line Annotation Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes_line_annotation.gif\" title=\"SVG Shapes Line Annotation Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">SVG Shapes Line Annotation Tutorial<\/p><\/div>\n<p>Our &#8220;Show Some Shapes&#8221; web application of <a title='SVG Shapes Overlay Tutorial' href='#svgsot'>SVG Shapes Overlay Tutorial<\/a> was well set up for &#8230;<\/p>\n<ul>\n<li>line<sub>ar<\/sub> annotation &#8230; especially considering &#8230;<\/li>\n<li>line<sub>s<\/sub> use the stroke colour the user defines and the other shape types mainly show the fill colour<\/li>\n<\/ul>\n<p> &#8230; and so, generally speaking, line features can &#8220;overlay&#8221; other shapes, like annotation helps clarify a diagram or document.<\/p>\n<p>In order to allow for this we&#8217;re now accepting these styles of entry (via any textbox presented to the user) &#8230;<\/p>\n<ul>\n<li>comma (and\/or semicolon ; pen up) separated <i>x1,y1,x2,y2<\/i> co-ordinate set<sub>(s)<\/sub> &#8230;<\/li>\n<li>comma (and\/or semicolon ; pen up) separated <i>x1,y1,bearing-distance<\/i> set<sub>(s)<\/sub> &#8230;<\/li>\n<li>justification code from <i>to<\/i> justification code to ( eg. the default <i>tltobr<\/i> )&#8230; where &#8230;\n<ol>\n<li><i>tl<\/i> &#8230; top left<\/li>\n<li><i>tc<\/i> &#8230; top centre<\/li>\n<li><i>tr<\/i> &#8230; top right<\/li>\n<li><i>cl<\/i> &#8230; centre left<\/li>\n<li><i>cc<\/i> &#8230; centre centre<\/li>\n<li><i>cr<\/i> &#8230; centre right<\/li>\n<li><i>bl<\/i> &#8230; bottom left<\/li>\n<li><i>bc<\/i> &#8230; bottom centre<\/li>\n<li><i>br<\/i> &#8230; bottom right<\/li>\n<\/ol>\n<p> &#8230; relative to the SVG window width x height dimensions, comma (and\/or semicolon ; pen up) separated\n<\/li>\n<\/ul>\n<p> &#8230; allowing &#8220;hover&#8221; titles via # (hashtag) delimited comments <font size=1>(hopefully missing commas and semicolons)<\/font> helped out by a new Javascript function &#8230;<\/p>\n<p><code><br \/>\n  function equalsrcheck(ioo) {<br \/>\n    var thisval=ioo.value;<br \/>\n    var justs=['tl','tc','tm','tr','bl','bc','bm','br','cl','cc','cm','cr','ml','mc','mm','mr'];<br \/>\n    var jusxw=[0.00,0.50,0.50,1.00,0.00,0.50,0.50,1.00,0.00,0.50,0.50,1.00,0.00,0.50,0.50,1.00];<br \/>\n    var jusyh=[0.00,0.00,0.00,0.00,1.00,1.00,1.00,1.00,0.50,0.50,0.50,0.50,0.50,0.50,0.50,0.50];<br \/>\n    var xfofarc='', iix, xtoflds=[], jjx;<br \/>\n    \/\/if (thisval.trim() == '' || thisval.indexOf(',') == -1) { equalsr='y'; }<br \/>\n    if (thisval.indexOf(',') != -1) {<br \/>\n       var cflds=thisval.split(',');<br \/>\n       for (var inm=0; inm&lt;cflds.length; inm++) {<br \/>\n         if (cflds[inm].split('#')[0].toLowerCase().indexOf('to') == 2 && eval('' + cflds[inm].split('#')[0].length) == 6) {<br \/>\n       xfofarc='';<br \/>\n       xtoflds=cflds[inm].split('#')[0].toLowerCase().split('to');<br \/>\n       for (iix=0; iix&lt;justs.length; iix++) {<br \/>\n         if (xtoflds[0] == justs[iix] || xtoflds[0] == (justs[iix].substring(1) + justs[iix].substring(0,1))) {<br \/>\n           if (ioo.id.indexOf('mage') != -1) {<br \/>\n            xfofarc='' + eval(jusxw[iix] * imifw) + ',' + eval(jusyh[iix] * imifh) + ',';<br \/>\n           } else if (ioo.id.indexOf('frame') != -1) {<br \/>\n            xfofarc='' + eval(jusxw[iix] * ififw) + ',' + eval(jusyh[iix] * ififh) + ',';<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       if (xfofarc != '') {<br \/>\n       for (jjx=0; jjx&lt;justs.length; jjx++) {<br \/>\n         if (xtoflds[1] == justs[jjx] || xtoflds[1] == (justs[iix].substring(1) + justs[iix].substring(0,1))) {<br \/>\n           if (ioo.id.indexOf('mage') != -1) {<br \/>\n            xfofarc+='' + eval(jusxw[jjx] * imifw) + ',' + eval(jusyh[jjx] * imifh) + '';<br \/>\n           } else if (ioo.id.indexOf('frame') != -1) {<br \/>\n            xfofarc+='' + eval(jusxw[jjx] * ififw) + ',' + eval(jusyh[jjx] * ififh) + '';<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       }<br \/>\n       if (eval('' + xfofarc.split(',').length) == 4) {<br \/>\n           thisval=thisval.replace(cflds[inm].split('#')[0], xfofarc);<br \/>\n       }<br \/>\n         }<br \/>\n         cflds=thisval.split(',');<br \/>\n       }<br \/>\n       if (eval('' + cflds.length) &gt;= 3) {<br \/>\n         if (eval('' + cflds.length) &gt;= 4 && (cflds[2] + ' ').substring(1).indexOf('-') == -1) {<br \/>\n           equalsr=encodeURIComponent(thisval);<br \/>\n           if (ioo.id.replace('cp','sel').indexOf('sel') != -1) { ioo.value=''; }<br \/>\n           thisval='';<br \/>\n         } else if ((cflds[2] + ' ').substring(1).indexOf('-') &gt; 0) {<br \/>\n           var pcx=eval('' + cflds[0].split('#')[0]);<br \/>\n           var pcy=eval('' + cflds[1].split('#')[0]);<br \/>\n           var radialssofar='', fdel='';<br \/>\n           for (var jj=2; jj&lt;cflds.length; jj++) {<br \/>\n           if ((cflds[jj] + ' ').substring(1).indexOf('-') &gt; 0) {<br \/>\n           pcx=eval(pcx + Math.sin(Math.PI * eval('' + cflds[jj].split('#')[0].split('-')[0]) \/ 180.0) * eval('' + cflds[jj].split('#')[0].split('-')[1]));<br \/>\n           pcy=eval(pcy + Math.cos(Math.PI * eval('' + cflds[jj].split('#')[0].split('-')[0]) \/ 180.0) * eval('' + cflds[jj].split('#')[0].split('-')[1]));<br \/>\n           radialssofar+=fdel + cflds[0] + ',' + cflds[1] + ',' + pcx + ',' + pcy;<br \/>\n           pcx=eval('' + cflds[0].split('#')[0]);<br \/>\n           pcy=eval('' + cflds[1].split('#')[0]);<br \/>\n           fdel=';';<br \/>\n           } else {<br \/>\n           radialssofar+=',' + cflds[jj].split('#')[0];<br \/>\n           }<br \/>\n           }<br \/>\n           equalsr=encodeURIComponent(radialssofar);<br \/>\n           if (ioo.id.replace('cp','sel').indexOf('sel') != -1) { ioo.value=''; }<br \/>\n           thisval='';<br \/>\n         } else {<br \/>\n           equalsr='y';<br \/>\n           thisval='' + cflds[0].split('#')[0];<br \/>\n         }<br \/>\n       }<br \/>\n    } else if (thisval.split('#')[0].toLowerCase().indexOf('to') == 2 && eval('' + thisval.split('#')[0].length) == 6) {<br \/>\n       var toflds=thisval.toLowerCase().split('to');<br \/>\n       var combit='';<br \/>\n       if (thisval.indexOf('#') != -1) { combit='#' + thisval.split('#')[1].split(',')[0].split(';')[0]; }<br \/>\n       var fofarc='';<br \/>\n       for (var ii=0; ii&lt;justs.length; ii++) {<br \/>\n         if (toflds[0].split('#')[0] == justs[ii] || toflds[0].split('#')[0] == (justs[ii].substring(1) + justs[ii].substring(0,1))) {<br \/>\n           if (ioo.id.indexOf('mage') != -1) {<br \/>\n            fofarc='' + eval(jusxw[ii] * imifw) + ',' + eval(jusyh[ii] * imifh) + ',';<br \/>\n           } else if (ioo.id.indexOf('frame') != -1) {<br \/>\n            fofarc='' + eval(jusxw[ii] * ififw) + ',' + eval(jusyh[ii] * ififh) + ',';<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       if (fofarc != '') {<br \/>\n       for (var jj=0; jj&lt;justs.length; jj++) {<br \/>\n         if (toflds[1].split('#')[0] == justs[jj] || toflds[1].split('#')[0] == (justs[jj].substring(1) + justs[jj].substring(0,1))) {<br \/>\n           if (ioo.id.indexOf('mage') != -1) {<br \/>\n            fofarc+='' + eval(jusxw[jj] * imifw) + ',' + eval(jusyh[jj] * imifh) + '';<br \/>\n           } else if (ioo.id.indexOf('frame') != -1) {<br \/>\n            fofarc+='' + eval(jusxw[jj] * ififw) + ',' + eval(jusyh[jj] * ififh) + '';<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       }<br \/>\n       if (eval('' + fofarc.split(',').length) == 4) {<br \/>\n           equalsr=encodeURIComponent(fofarc + combit);<br \/>\n           if (ioo.id.replace('cp','sel').indexOf('sel') != -1) { ioo.value=''; }<br \/>\n           thisval='';<br \/>\n       }<br \/>\n    }<br \/>\n    return thisval;<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; in <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html---GETME\">our changed<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html---GETME\">third draft<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\">Show Some Shapes<\/a> web application (you can also <a href='#ifss'>try below<\/a>).<\/p>\n<p>And yes, 404.php had to accomodate these new $_GET argument value expansions <font size=1>(previously only the pretty dumb <i>y<\/i> as a value always)<\/font>, via $plusline line<sub>ar<\/sub> annotation append PHP as per &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n       $plusline='';<br \/>\n       <br \/>\n       if (strpos($_SERVER['QUERY_STRING'], '=') !== false) {<br \/>\n         $rvalis=str_replace('+',' ',urldecode(explode('&',explode('=', $_SERVER['QUERY_STRING'])[1])[0]));<br \/>\n         $semicrvals=explode(';', $rvalis);<br \/>\n         for ($ijk=0; $ijk&lt;sizeof($semicrvals); $ijk++) {<br \/>\n         $crvals=explode(',', $semicrvals[$ijk]);<br \/>\n         $combit='';<br \/>\n         if (sizeof($crvals) &gt;= 4) {<br \/>\n           for ($hj=0; $hj&lt;4; $hj++) {<br \/>\n              $comsb=explode('#', $crvals[$hj]);<br \/>\n              if (sizeof($comsb) &gt; 1) {<br \/>\n                 $combit='&lt;title&gt;' . $comsb[1] . '&lt;\/title&gt;';<br \/>\n              }<br \/>\n           }<br \/>\n           $plusline.='&lt;line x1=\"' . explode('#',$crvals[0])[0] . '\" y1=\"' . explode('#',$crvals[1])[0] . '\" x2=\"' . explode('#',$crvals[2])[0] . '\" y2=\"' . explode('#',$crvals[3])[0] . '\" stroke-width=\"2\" stroke=\"strokec\" fill=\"fillc\"&gt;' . $combit . '&lt;\/line&gt;';<br \/>\n           if (sizeof($crvals) &gt;= 6) {<br \/>\n             for ($ibv=6; $ibv&lt;=sizeof($crvals); $ibv+=2) {<br \/>\n           $combit='';<br \/>\n           for ($hj=-4; $hj&lt;=-1; $hj++) {<br \/>\n              $comsb=explode('#', $crvals[$hj + $ibv]);<br \/>\n              if (sizeof($comsb) &gt; 1) {<br \/>\n                 $combit='&lt;title&gt;' . $comsb[1] . '&lt;\/title&gt;';<br \/>\n              }<br \/>\n           }<br \/>\n              $plusline.='&lt;line x1=\"' . explode('#',$crvals[-4 + $ibv])[0]. '\" y1=\"' . explode('#',$crvals[-3 + $ibv])[0] . '\" x2=\"' . explode('#',$crvals[-2 + $ibv])[0] . '\" y2=\"' . explode('#',$crvals[-1 + $ibv])[0] . '\" stroke-width=\"2\" stroke=\"strokec\" fill=\"fillc\"&gt;' . $combit . '&lt;\/line&gt;';<br \/>\n             }<br \/>\n           }<br \/>\n         } \/\/ else if (sizeof($crvals) == 3) { if (strpos(substr($crvals[2] . ' ',1),'-') !== false) {  $rvalis=$rvalis;   }        }<br \/>\n         }<br \/>\n       }<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p>You want to try some practical examples of use?   Type &#8230;<\/p>\n<blockquote style=font-size:8px;><p>\n<a style=text-decoration:none;cursor:pointer; target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\">167#radius,167,334,167;167#diameter,0,167,334;167#chord,334,334,167;1#tangent,0,1,334;20#secant,0,20,334<\/a>\n<\/p><\/blockquote>\n<p> &#8230; into the iframe fill textbox &#8230; or try the equivalent resultant URL &#8230;<\/p>\n<p><a style=font-size:8px; target=_blank title='URL' href='\/\/www.rjmprogramming.com.au\/ITblog\/334\/334\/?svg0000ff+circle=167%23radius%2C167%2C334%2C167%3B167%23diameter%2C0%2C167%2C334%3B167%23chord%2C334%2C334%2C167%3B1%23tangent%2C0%2C1%2C334%3B20%23secant%2C0%2C20%2C334'>https:\/\/www.rjmprogramming.com.au\/ITblog\/334\/334\/?svg0000ff+circle=167%23radius%2C167%2C334%2C167%3B167%23diameter%2C0%2C167%2C334%3B167%23chord%2C334%2C334%2C<br \/>167%3B1%23tangent%2C0%2C1%2C334%3B20%23secant%2C0%2C20%2C334<\/a> <\/p>\n<p> &#8230; or view it below &#8230;<\/p>\n<p><iframe style='width:100%;height:500px;' src='\/\/www.rjmprogramming.com.au\/ITblog\/334\/334\/?svg0000ff+circle=167%23radius%2C167%2C334%2C167%3B167%23diameter%2C0%2C167%2C334%3B167%23chord%2C334%2C334%2C167%3B1%23tangent%2C0%2C1%2C334%3B20%23secant%2C0%2C20%2C334'><\/iframe><\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/new-svg-shapes-overlay-tutorial\/'>SVG Shapes Line Annotation Tutorial<\/a>.<\/p-->\n<hr>\n<p id='svgsot'>Previous relevant <a target=_blank title='SVG Shapes Overlay Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-overlay-tutorial\/'>SVG Shapes Overlay Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"SVG Shapes Overlay Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes_overlay.gif\" title=\"SVG Shapes Overlay Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">SVG Shapes Overlay Tutorial<\/p><\/div>\n<p>The dimensions discussed in yesterday&#8217;s <a title='SVG Shapes Dimensions and Colour Tutorial' href='#svgsdct'>SVG Shapes Dimensions and Colour Tutorial<\/a> were the &#8220;what we normally talk about as 2D&#8221; dimensions &#8230;<\/p>\n<ol>\n<li>width <font size=1>&#8230; which you could think of as <font color=blue>X<\/font><\/font> &#8230; and &#8230;<\/li>\n<li>height <font size=1>&#8230; which you could think of as <font color=blue>Y<\/font><\/font> &#8230; and, today, we want to add into the mix &#8230;<\/li>\n<li><a target=_blank title=\"Overlay blog postings, inhouse\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/overlay\">&#8220;overlay&#8221;<\/a> &#8230; or depth &#8230; <font size=1>&#8230; which you could think of as <font color=blue>Z<\/font><\/font> &#8230; or elevation &#8230; the three of which we all know of as &#8230; <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=uhiCFdWeQfA'>anyone, anyone<\/a>?  Yes, <a target=_blank title='?' href='https:\/\/en.wikipedia.org\/wiki\/Fayette_Pinkney'>Fayette<\/a>, <a target=_blank title=? href='https:\/\/www.youtube.com\/watch?v=5OpuZzsPBhQ'>we see you<\/a>, <a target=_blank title=? href='https:\/\/www.youtube.com\/watch?v=e9_7GcQeiqw&#038;t=2m37s'>again<\/a>, but not in degrees &#8230; but &#8230; in &#8230; <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=uhiCFdWeQfA'>anyone, anyone<\/a>?  Yes, <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=jT2og9rWEAE'>Kate<\/a>, something&#8217;s coming to you?  Yes &#8230; yes &#8230; three thingos &#8230; thingos being &#8230; maybe &#8230; yes &#8230; <span style=cursor:pointer; onmouseover=\"this.innerHTML=this.innerHTML.replace('4','6').replace(' size=',' color=purple SIZE=');\" onclick=\"this.innerHTML=this.innerHTML.replace('4','6').replace(' size=',' color=purple SIZE=');\"><font size=\"4\">3 dimensions<\/font><\/span>!<\/li>\n<\/ol>\n<p>This opens up the variety of &#8220;shapes&#8221; you can come up with considerably, even without involving any opacity, and so far we have not coded for CSS z-index usage <font size=1>(just good ol&#8217; <i>position:absolute<\/i> usage so far)<\/font>.  Should you stumble upon a useful &#8220;overlay creation&#8221; a right click can open it up in a new web browser tab, should you prefer that arrangement.<\/p>\n<p>To achieve this change asked nothing more of our 404.php code, but rather asked of the client web application the turning of the &#8220;<i>Height<\/i>&#8221; hardcoding into a new select (dropdown) like &#8230;<\/p>\n<p><code><br \/>\n&lt;select onchange=fixv(this); id=selimageoverlay&gt;&lt;option value=\"\"&gt;<i>Height<\/i>&lt;\/option&gt;&lt;option value=\"overlay\"&gt;Height ... Overlayed&lt;\/option&gt;&lt;\/select&gt;<br \/>\n&lt;div id=\"doverlay\"&gt;&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; and accompanying new Javascript global var<font size=1>iables<\/font> and &#8220;onchange event logic&#8221; &#8230;<\/p>\n<p><code><br \/>\n  var imageoverlay=false, iframeoverlay=false;<br \/>\n  var imageprevs='', iframeprevs='';<br \/>\n  var imagelasts='', iframelasts='';<br \/>\n  var imageurlpush=[], iframeurlpush=[];<br \/>\n  var imagerect=[], iframerect=[];<br \/>\n  var snapshotoh='';<br \/>\n  var bigwo=[];<br \/>\n<\/code><\/p>\n<p> &#8230; with new Javascript &#8220;onchange event logic&#8221; code like &#8230;<\/p>\n<p><code><br \/>\n  function fixv(oselinvo) {<br \/>\n    var theval=oselinvo.value;<br \/>\n    switch('' + oselinvo.id) {<br \/>\n      case 'selimageoverlay': \/\/ overlay flag<br \/>\n       if (theval.trim() == '') {<br \/>\n         imageoverlay=false;<br \/>\n         \/\/imageurlpush=[];<br \/>\n         \/\/imagerect=[];<br \/>\n       } else {<br \/>\n         if (eval('' + imageurlpush.length) == 0) {<br \/>\n         snapshotoh='&lt;html&gt;&lt;head&gt;' + document.head.innerHTML + '&lt;\/head&gt;' + document.body.outerHTML + '&lt;\/html&gt;';<br \/>\n         }<br \/>\n         imageoverlay=true;<br \/>\n         imageurlpush.push(document.getElementById('myimage' + imagelasts).src);<br \/>\n         imagerect=[];<br \/>\n         imagerect.push(document.getElementById('myimage' + imagelasts).getBoundingClientRect());<br \/>\n         imagelasts='' + imageurlpush.length;<br \/>\n       }<br \/>\n       break;<br \/>\n<br \/> <br \/>\n      case 'seliframeoverlay': \/\/ overlay flag<br \/>\n       if (theval.trim() == '') {<br \/>\n         iframeoverlay=false;<br \/>\n         \/\/iframeurlpush=[];<br \/>\n         \/\/iframerect=[];<br \/>\n       } else {<br \/>\n         if (eval('' + iframeurlpush.length) == 0) {<br \/>\n         snapshotoh='&lt;html&gt;&lt;head&gt;' + document.head.innerHTML + '&lt;\/head&gt;' + document.body.outerHTML + '&lt;\/html&gt;';<br \/>\n         }<br \/>\n         iframeoverlay=true;<br \/>\n         iframeurlpush.push(document.getElementById('myiframe' + iframelasts).src);<br \/>\n         iframerect=[];<br \/>\n         iframerect.push(document.getElementById('myiframe' + iframelasts).getBoundingClientRect());<br \/>\n         iframelasts='' + iframeurlpush.length;<br \/>\n       }<br \/>\n       break;<br \/>\n\/\/<br \/>\n\/\/ more cases would follow<br \/>\n\/\/<br \/>\n      default:<br \/>\n        break;<br \/>\n    }<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; setting up the &#8220;oncontextmenu&#8221; (ie. right click) event logic &#8230;<\/p>\n<p><code><br \/>\n  function windowopen(purl, pway) {<br \/>\n    bigwo.push(window.open('','_blank'));<br \/>\n    if (imageoverlay && iframeoverlay) {<br \/>\n    bigwo[eval(-1 + bigwo.length)].document.write(snapshotoh.replace(' id=\"my' + 'iframe\" style=\"',' id=\"my' + 'iframe\" style=\"visibility:hidden;').replace(' id=\"my' + 'image\" style=\"',' id=\"my' + 'image\" style=\"visibility:hidden;').replace(' id=\"do' + 'verlay\"&gt;', ' id=\"do' + 'verlay\"&gt;' + document.getElementById('doverlay').innerHTML));<br \/>\n    } else if (imageoverlay) {<br \/>\n    bigwo[eval(-1 + bigwo.length)].document.write(snapshotoh.replace(' id=\"my' + 'ifrXame\" style=\"',' id=\"my' + 'ifrXame\" style=\"visibility:hidden;').replace(' id=\"my' + 'image\" style=\"',' id=\"my' + 'image\" style=\"visibility:hidden;').replace(' id=\"do' + 'verlay\"&gt;', ' id=\"do' + 'verlay\"&gt;' + document.getElementById('doverlay').innerHTML));<br \/>\n    } else if (iframeoverlay) {<br \/>\n    bigwo[eval(-1 + bigwo.length)].document.write(snapshotoh.replace(' id=\"my' + 'iframe\" style=\"',' id=\"my' + 'iframe\" style=\"visibility:hidden;').replace(' id=\"my' + 'imaXge\" style=\"',' id=\"my' + 'imXage\" style=\"visibility:hidden;').replace(' id=\"do' + 'verlay\"&gt;', ' id=\"do' + 'verlay\"&gt;' + document.getElementById('doverlay').innerHTML));<br \/>\n    } else {<br \/>\n    bigwo[eval(-1 + bigwo.length)].document.write('&lt;html&gt;&lt;head&gt;' + document.head.innerHTML + '&lt;\/head&gt;' + document.body.outerHTML + '&lt;\/html&gt;');<br \/>\n    }<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; and all helped out by two &#8220;wrapper functions&#8221; that wrap the image and\/or iframe &#8220;src&#8221; attribute &#8220;calculation&#8221; code, as per &#8230;<\/p>\n<p><code><br \/>\n  function thenimagain(inurl) {<br \/>\n     if (imageoverlay) {<br \/>\n        var wasp=imageprevs;<br \/>\n        \/\/setTimeout(function() {<br \/>\n        imageprevs=imagelasts;<br \/>\n        imageurlpush.push(inurl);<br \/>\n        document.getElementById('doverlay').innerHTML+='&lt;img title=\"Click for new window version or right click showing overlays\" oncontextmenu=\"windowopen(this.src,' + \"'_blank'\" + ');\" onclick=\"window.open(this.src,' + \"'_blank'\" + ');\" style=' + \"'width:\" + imifw + \"px;height:\" + imifh + \"px;left:\" + imagerect[0].left + \"px;top:\" + imagerect[0].top + \"px;position:absolute;'\" + ' id=myimage' + imagelasts + ' src=\"' + inurl + '\"&gt;&lt;\/img&gt;';<br \/>\n        imagerect=[];<br \/>\n        imagerect.push(document.getElementById('myimage' + imagelasts).getBoundingClientRect());<br \/>\n        imagelasts='' + imageurlpush.length;<br \/>\n        \/\/}, 1000);<br \/>\n        return document.getElementById('myimage' + wasp).src + '#';<br \/>\n     }<br \/>\n     return inurl;<br \/>\n  }<br \/>\n  <br \/>\n  function thenifagain(inurl) {<br \/>\n     if (iframeoverlay) {<br \/>\n       var wasp=iframeprevs;<br \/>\n       \/\/setTimeout(function() {<br \/>\n       iframeprevs=iframelasts;<br \/>\n       iframeurlpush.push(inurl);<br \/>\n       document.getElementById('doverlay').innerHTML+='&lt;iframe title=\"Click for new window version or right click showing overlays\" oncontextmenu=\"windowopen(this.src,' + \"'_blank'\" + ');\" onclick=\"window.open(this.src,' + \"'_blank'\" + ');\" frameborder=0 style=' + \"'width:\" + ififw + \"px;height:\" + ififh + \"px;left:\" + iframerect[0].left + \"px;top:\" + iframerect[0].top + \"px;position:absolute;'\" + ' id=myiframe' + iframelasts + ' src=\"' + inurl + '\"&gt;&lt;\/iframe&gt;';<br \/>\n       iframerect=[];<br \/>\n       iframerect.push(document.getElementById('myiframe' + iframelasts).getBoundingClientRect());<br \/>\n       iframelasts='' + iframeurlpush.length;<br \/>\n       \/\/}, 1000);<br \/>\n       return document.getElementById('myiframe' + wasp).src + '#';<br \/>\n     }<br \/>\n     return inurl;<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; in <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html--GETME\">our changed<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html--GETME\">third draft<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\">Show Some Shapes<\/a> web application (you can also <a href='#ifss'>try below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-overlay-tutorial\/'>SVG Shapes Overlay Tutorial<\/a>.<\/p-->\n<hr>\n<p id='svgsdct'>Previous relevant <a target=_blank title='SVG Shapes Dimensions and Colour Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-dimensions-and-colour-tutorial\/'>SVG Shapes Dimensions and Colour Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"SVG Shapes Dimensions and Colour Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes_more.jpg\" title=\"SVG Shapes Dimensions and Colour Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">SVG Shapes Dimensions and Colour Tutorial<\/p><\/div>\n<p>It&#8217;s not so much fun, for a lot of us, learning about things when it&#8217;s just dished up.  It&#8217;s usually better, especially for our visual or kinesthetic learners out there, that the user can change a setting to see a changed result.  And so, further to yesterday&#8217;s <a title='SVG Shapes Game Primer Tutorial' href='#svgsgpt'>SVG Shapes Game Primer Tutorial<\/a>&#8216;s start to <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html-GETME\">our changed<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html-GETME\">second draft<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\">Show Some Shapes<\/a> web application (you can also <a href='#ifss'>try below<\/a>), we&#8217;ve added &#8230;<\/p>\n<ul>\n<li>dimensional width and height &#8220;input&#8221; controls<\/li>\n<li>fill colour and stroke colour &#8220;input&#8221; colour picker controls &#8230; including &#8220;Transparent&#8221; and &#8220;None&#8221; choices presented in an accompanying dropdown<\/li>\n<li>fill colour opacity and stroke colour opacity &#8220;input&#8221; controls<\/li>\n<\/ul>\n<p>Our strategy, here was to allow URLs to our 404.php be a lot more complex via &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n$opacityis=\"1.0\";<br \/>\n$fopacityis=\"1.0\";<br \/>\n$sopacityis=\"1.0\";<br \/>\n<br \/>\n function restcheck($inideacol) {<br \/>\n    global $opacityis, $fopacityis, $sopacityis, $linemode;<br \/>\n    $outideacol=trim($inideacol);<br \/>\n    $inideacol=$outideacol;<br \/>\n    if (strlen($inideacol) &gt;= 4) {<br \/>\n      if (strpos(strtolower(substr($inideacol, -4, 3)), \"to\") !== false) {<br \/>\n        if ( str_replace('l','r',str_replace('t','r',str_replace('b','r',str_replace('c','r',str_replace('m','r',  strtolower(substr($inideacol, -1, 1)))))))      == 'r') {<br \/>\n           $rbit=explode('to', strtolower($inideacol))[-1 + sizeof(explode('to', strtolower($inideacol)))];<br \/>\n           $lbitis=explode('to' . $rbit,  strtolower($inideacol))[-1 + sizeof(explode('to' . $rbit,  strtolower($inideacol)))];<br \/>\n           $lpref='';<br \/>\n           if ( str_replace('l','r',str_replace('t','r',str_replace('b','r',str_replace('c','r',str_replace('m','r',  strtolower(substr($lbitis, -1, 1)))))))      == 'r') {<br \/>\n             $lpref=strtolower(substr($lbitis, -1, 1));<br \/>\n             if ( str_replace('l','r',str_replace('t','r',str_replace('b','r',str_replace('c','r',str_replace('m','r',  strtolower(substr($lbitis, -2, 1)))))))      == 'r') {<br \/>\n              $linemode=strtolower(substr($lbitis, -2, 1)) . $lpref . 'to' . $rbit;<br \/>\n              $outideacol=substr($inideacol,0,(strlen($inideacol) - strlen($linemode)));<br \/>\n             } else {<br \/>\n              $linemode=$lpref . 'to' . $rbit;<br \/>\n              $outideacol=substr($inideacol,0,(strlen($inideacol) - strlen($linemode)));<br \/>\n             }<br \/>\n\t\t   } else {<br \/>\n             $linemode=$lpref . 'to' . $rbit;<br \/>\n             $outideacol=substr($inideacol,0,(strlen($inideacol) - strlen($linemode)));<br \/>\n           }<br \/>\n        }<br \/>\n      }<br \/>\n      if (strpos(strtolower(substr($outideacol, -2, 2)), \".\") !== false && strpos(strtolower(substr($outideacol, -2, 2)), \")\") === false) {<br \/>\n           $rbit=explode('.', strtolower($outideacol))[-1 + sizeof(explode('.', strtolower($outideacol)))];<br \/>\n           $lbitis=explode('.' . $rbit,  strtolower($outideacol))[0];<br \/>\n           $lpref='';<br \/>\n           if ($rbit == \"\" || (substr(($rbit . ' '),0,1) &gt;= '0'    &&  substr(($rbit . ' '),0,1) &lt;= '9'   )) {<br \/>\n            if ((substr(($lbitis . ''),-1,1) &gt;= '0'    &&  substr(($lbitis . ''),-1,1) &lt;= '9'   )) {<br \/>\n              \/\/echo $outideacol . ' ' . substr(($lbitis . ''),-1,1) . '.' . $rbit . '?' . $lbitis . '!';<br \/>\n              \/\/exit;<br \/>\n              $outideacol=substr($outideacol,0,(strlen($outideacol) - strlen(substr(($lbitis . ''),-1,1) . '.' . $rbit)));<br \/>\n              \/\/echo $outideacol;<br \/>\n              \/\/exit;<br \/>\n              $opacityis=substr(($lbitis . ''),-1,1) . '.' . str_replace('00','0',substr(($rbit . '0'),0));<br \/>\n            } else {<br \/>\n              $outideacol=substr($outideacol,0,(strlen('.' . $rbit)));<br \/>\n              $opacityis='0' . '.' . str_replace('00','0',substr(($rbit . '0'),0));<br \/>\n            }<br \/>\n           }<br \/>\n      }<br \/>\n    }<br \/>\n    return $outideacol;<br \/>\n }<br \/>\n<br \/>\n function ffcolcheck($outideacol) {<br \/>\n    global $opacityis, $fopacityis, $sopacityis;<br \/>\n\/\/              echo ' ' . $fopacityis . ' ' . $sopacityis . ' ' . $opacityis . ' ... ' . $outideacol;<br \/>\n\/\/              exit;<br \/>\n              $awso=$opacityis;<br \/>\n    $fopacityis=$opacityis;<br \/>\n    $inideacol=restcheck($outideacol);<br \/>\n    if ($fopacityis != $opacityis) {  $fopacityis=$opacityis; $opacityis=$waso;  }<br \/>\n\/\/              echo $inideacol . ' ' . $fopacityis . ' ' . $sopacityis . ' ' . $opacityis . ' ... ' . $outideacol;<br \/>\n\/\/              exit;<br \/>\n    if (strlen($inideacol) == 6) {<br \/>\n      if (str_replace('A','',str_replace('a','',str_replace('B','',str_replace('b','',str_replace('C','',str_replace('c','',str_replace('D','',str_replace('d','',str_replace('E','',str_replace('e','',str_replace('F','',str_replace('f','',   str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',      $inideacol))))))))))))))))))))))    == '') {<br \/>\n        if ($fopacityis != '1.0') {<br \/>\n\/\/              echo 'rgba(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ',' . $fopacityis . ')';<br \/>\n\/\/              exit;<br \/>\n         return 'rgba(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ',' . $fopacityis . ')';<br \/>\n        }<br \/>\n        return 'rgb(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ')';<br \/>\n      }<br \/>\n    }<br \/>\n    return $inideacol;<br \/>\n }<br \/>\n<br \/>\n function fcolcheck($outideacol) {<br \/>\n    global $opacityis, $fopacityis, $sopacityis;<br \/>\n\/\/              echo ' ' . $fopacityis . ' ' . $sopacityis . ' ' . $opacityis . ' ... ' . $outideacol;<br \/>\n\/\/              exit;<br \/>\n    $sopacityis=$opacityis;<br \/>\n    $inideacol=restcheck($outideacol);<br \/>\n    if ($sopacityis != $opacityis) {  $fopacityis=$opacityis; $opacityis=$sopacityis;  }<br \/>\n\/\/              echo $inideacol . ' ' . $fopacityis . ' ' . $sopacityis . ' ' . $opacityis . ' ... ' . $outideacol;<br \/>\n\/\/              exit;<br \/>\n    if (strlen($inideacol) == 6) {<br \/>\n      if (str_replace('A','',str_replace('a','',str_replace('B','',str_replace('b','',str_replace('C','',str_replace('c','',str_replace('D','',str_replace('d','',str_replace('E','',str_replace('e','',str_replace('F','',str_replace('f','',   str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',      $inideacol))))))))))))))))))))))    == '') {<br \/>\n        if ($fopacityis != '1.0') {<br \/>\n\/\/              echo 'rgba(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ',' . $fopacityis . ')';<br \/>\n\/\/              exit;<br \/>\n         return 'rgba(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ',' . $fopacityis . ')';<br \/>\n        }<br \/>\n        return 'rgb(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ')';<br \/>\n      }<br \/>\n    }<br \/>\n    return $inideacol;<br \/>\n }<br \/>\n<br \/>\n function colcheck($outideacol) {<br \/>\n    global $opacityis, $fopacityis, $sopacityis;<br \/>\n    if ($opacityis != '1.0' && $sopacityis != $opacityis) { $sopacityis=$opacityis;   }<br \/>\n    $wasop=$opacityis;<br \/>\n    $inideacol=restcheck($outideacol);<br \/>\n    if ($wasop != $opacityis) {  $sopacityis=$opacityis;  }<br \/>\n    if (strlen($inideacol) == 6) {<br \/>\n      if (str_replace('A','',str_replace('a','',str_replace('B','',str_replace('b','',str_replace('C','',str_replace('c','',str_replace('D','',str_replace('d','',str_replace('E','',str_replace('e','',str_replace('F','',str_replace('f','',   str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',      $inideacol))))))))))))))))))))))    == '') {<br \/>\n        if ($sopacityis != '1.0') {<br \/>\n\/\/              echo 'rgba(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ',' . $sopacityis . ')';<br \/>\n\/\/              exit;<br \/>\n         return 'rgba(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ',' . $sopacityis . ')';<br \/>\n        }<br \/>\n        return 'rgb(' . hexdec(substr($inideacol,0,2)) . ',' . hexdec(substr($inideacol,2,2)) . ',' . hexdec(substr($inideacol,4,2)) . ')';<br \/>\n      }<br \/>\n    }<br \/>\n    return $inideacol;<br \/>\n }<br \/>\n <br \/>\nfunction createScaledImage($newWidth,$newHeight,$path,$datauri) { \/\/ thanks to https:\/\/stackoverflow.com\/questions\/16774521\/scale-image-using-php-and-maintaining-aspect-ratio<br \/>\n    global $ptitle, $reltopic, $filterstuff, $randstr, $opacityis, $linemode;<br \/>\n    $image_name=explode(DIRECTORY_SEPARATOR, $path)[-1 + sizeof(explode(DIRECTORY_SEPARATOR, $path))];<br \/>\n    $theextis='';<br \/>\n    <br \/>\n    if (($newWidth == 32 && $newHeight == 32) || strpos(('?' . $_SERVER['QUERY_STRING']), '?svg') !== false) {<br \/>\n       $fillc=\"red\";<br \/>\n       $strokec=\"black\";<br \/>\n       if (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false || strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $fillc=\"none\";<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('arc=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('semicircle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;path d=\"M ' . ($newWidth \/ 2) . ' 0 A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 0, ' . ($newWidth \/ 2) . ' ' . $newHeight . ' \" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n        <br \/> <br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'pie=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('pie=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            $thehome=' L ' . ($newWidth \/ 2) . ' ' . ($newHeight \/ 2) . ' Z';<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;circle cx=\"' . ($newWidth \/ 2) . '\" cy=\"' . ($newHeight \/ 2) . '\" r=\"' . (($newWidth + $newHeight) \/ 4) . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;path d=\"M ' . ($newWidth \/ 2) . ' 0 A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 1, ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 2) . ' ' . $thehome . '\" stroke=\"white\" stroke-width=\"3\" fill=\"white\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n            <br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'circle=') !== false) {<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('circle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=fcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;circle cx=\"' . ($newWidth \/ 2) . '\" cy=\"' . ($newHeight \/ 2) . '\" r=\"' . (($newWidth + $newHeight) \/ 4) . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'ellipse=') !== false) {<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('ellipse=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;ellipse cx=\"' . ($newWidth \/ 2) . '\" cy=\"' . ($newHeight \/ 2) . '\" rx=\"' . (($newWidth + $newWidth) \/ 4) . '\"  ry=\"' . (($newHeight + $newHeight) \/ 4) . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'square=') !== false || strpos($_SERVER['QUERY_STRING'], 'rectangle=') !== false) {<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'square=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('square=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'rectangle=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('rectangle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=fcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;rect x=\"0\" y=\"0\" width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'rhombus=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('rhombus=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;rect x=\"-' . ($newWidth \/ 2) . '\" y=\"-' . ($newHeight \/ 2) . '\" width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" transform=\"translate(' . ($sbone \/ 2) . ', ' . ($sbone \/ 2) . ') rotate(45)\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'octagon=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('octagon=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=fcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;rect x=\"-' . ($newWidth \/ 2) . '\" y=\"-' . ($newHeight \/ 2) . '\" width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" transform=\"translate(' . ($newWidth \/ 2) . ', ' . ($newHeight \/ 2) . ') rotate(45)\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'triangle=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('triangle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n  &lt;polygon points=\"' . $newWidth . ',' . $newHeight . ' ' . ($newWidth \/ 2) . ',0 0,' . $newHeight . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'line=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('line=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=fcolcheck($inbw[0]);<br \/>\n                  $strokec=$fillc;<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n  &lt;line x1=\"' . $newWidth . '\" y1=\"' . $newHeight . '\" x2=\"0\" y2=\"0\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'bezier=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('bezier=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            $fillc=\"none\";<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n  &lt;path d=\"M 0 ' . $newHeight . ' q ' . (($newWidth \/ 2) - 0) . ' ' . (0 - $newHeight) . ' ' . ($newWidth - 0) . ' ' . ($newHeight - $newHeight) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n<br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false || strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $fillc=\"none\";<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('arc=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('semicircle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=fcolcheck($inbw[0]);  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;path d=\"M ' . ($newWidth \/ 2) . ' 0 A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 0, ' . ($newWidth \/ 2) . ' ' . $newHeight . ' \" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n            <br \/> <br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false || strpos($_SERVER['QUERY_STRING'], 'crescent=') !== false) {<br \/>\n            $fillc=\"none\";<br \/>\n            $thehome='';<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('quadrant=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'crescent=') !== false) {<br \/>\n            $inbetween=restcheck(str_replace(':',' ',str_replace('`',' ',str_replace(';',' ',str_replace('+',' ',urldecode(explode('crescent=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0]))))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbetween=trim($inbetween);  $inbw=explode(' ', str_replace('  ',' ',str_replace('   ',' ',str_replace('    ',' ',str_replace('    ',' ',$inbetween)))));<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=ffcolcheck($inbw[0]);<br \/>\n                  if (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false) {<br \/>\n                    $thehome=' L ' . ($newWidth \/ 2) . ' ' . ($newHeight \/ 2) . ' Z';<br \/>\n                  }<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') {<br \/>\n                    $fillc=fcolcheck($inbw[0]);<br \/>\n                    if (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false) {<br \/>\n                      $thehome=' L ' . ($newWidth \/ 2) . ' ' . ($newHeight \/ 2) . ' Z';<br \/>\n                    }<br \/>\n                  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=colcheck($inbw[1]);  }<br \/>\n               }<br \/>\n            }<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;path d=\"M 0 ' . ($newHeight \/ 2) . ' A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 1, ' . ($newWidth \/ 2) . ' 0 ' . $thehome . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       }<br \/>\n    }<br \/>\n    <br \/>\n    if (!$datauri) {<br \/>\n      if (isset($_GET['random'])) {<br \/>\n       if (substr(($_GET['random'] . ' '),0,1) == '0') {<br \/>\n        $thist=' ' . time();<br \/>\n        $thistminustwo=substr($thist,0,(strlen($thist) - 2));<br \/>\n        if (!file_exists('.\/rjmlist.htm')) {<br \/>\n          file_put_contents('.\/rjmlist.htm', '&lt;body&gt;&lt;pre&gt;' . \"\\n\" . $thist . '|' . $_GET['random'] . '|' . $ptitle . \"\\n&lt;\/pre&gt;&lt;\/body&gt;\");<br \/>\n        } else {<br \/>\n          $sofarc=file_get_contents('.\/rjmlist.htm');<br \/>\n          $newones=explode($thistminustwo, $sofarc);<br \/>\n          $lastiis=0;<br \/>\n          if (strpos($sofarc, ' ') !== false) { $lastiis=explode('|',explode(' ', $sofarc)[1])[0];  }<br \/>\n          if (sizeof($newones) == 1 && (time() - $lastiis) &gt; 100) {<br \/>\n          file_put_contents('.\/rjmlist.htm', '&lt;body&gt;&lt;pre&gt;' . \"\\n\" . $thist . '|' . $_GET['random'] . '|' . $ptitle . \"\\n&lt;\/pre&gt;&lt;\/body&gt;\");<br \/>\n          } else {<br \/>\n          $sofarcs=explode('|' . $_GET['random'] . '|', $sofarc);<br \/>\n          if (sizeof($sofarcs) &gt; 1) {<br \/>\n            $sofarpref=' ' . explode(' ', $sofarcs[0])[-1 + sizeof(explode(' ', $sofarcs[0]))] . '|' . $_GET['random'] . '|' . explode(\"\\n\", $sofarcs[1])[0] . \"\\n\";<br \/>\n            $sofarc=str_replace($sofarpref, \"\", $sofarc);<br \/>\n          }<br \/>\n          file_put_contents('.\/rjmlist.htm', '&lt;body&gt;&lt;pre&gt;' . \"\\n\" . $thist . '|' . $_GET['random'] . '|' . $ptitle . \"\\n\" . str_replace('&lt;body&gt;&lt;pre&gt;' . \"\\n\", '', $sofarc));<br \/>\n          }<br \/>\n        }<br \/>\n       }<br \/>\n      }<br \/>\n    }<br \/>\n    <br \/>\n    $mime = getimagesize($path);<br \/>\n<br \/>\n    if ($mime['mime']=='image\/png') {<br \/>\n        if ($filterstuff != '') {<br \/>\n            header('Content-Type: image\/png');<br \/>\n            echo ourimagecreatefromcontent(file_get_contents($path), 'png');<br \/>\n      exit;<br \/>\n        }<br \/>\n        $src_img = imagecreatefrompng($path);<br \/>\n    }<br \/>\n    if ($mime['mime']=='image\/jpg' || $mime['mime']=='image\/jpeg' || $mime['mime']=='image\/pjpeg') {<br \/>\n        if ($filterstuff != '') {<br \/>\n            header('Content-Type: image\/jpeg');<br \/>\n            echo ourimagecreatefromcontent(file_get_contents($path), 'jpeg');<br \/>\n      exit;<br \/>\n        }<br \/>\n        $src_img = imagecreatefromjpeg($path);<br \/>\n    }<br \/>\n    if ($mime['mime']=='image\/gif') {<br \/>\n      \/\/echo 'data:image\/gif;base64,' . base64_encode(file_get_contents($path));<br \/>\n            header('Content-Type: image\/gif');<br \/>\n            echo ourimagecreatefromcontent(file_get_contents($path), 'gif');<br \/>\n      exit;<br \/>\n        $src_img = imagecreatefromgif($path);<br \/>\n    }<br \/>\n<br \/>\n    $old_x          =   imageSX($src_img);<br \/>\n    $old_y          =   imageSY($src_img);<br \/>\n<br \/>\n    if ($old_x &gt; $old_y) {<br \/>\n        $thumb_w    =   $newWidth;<br \/>\n        $thumb_h    =   $old_y\/$old_x*$newWidth;<br \/>\n    }<br \/>\n<br \/>\n    if ($old_x &lt; $old_y) {<br \/>\n        $thumb_w    =   $old_x\/$old_y*$newHeight;<br \/>\n        $thumb_h    =   $newHeight;<br \/>\n    }<br \/>\n<br \/>\n    if ($old_x == $old_y) {<br \/>\n        $thumb_w    =   $newWidth;<br \/>\n        $thumb_h    =   $newHeight;<br \/>\n    }<br \/>\n    <br \/>\n    $dst_img        =   imagecreatetruecolor($thumb_w,$thumb_h);<br \/>\n<br \/>\n    imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);<br \/>\n<br \/>\n    \/\/ New save location<br \/>\n    $new_thumb_loc = '\/tmp\/' . $image_name;<br \/>\n<br \/>\n    if (!$datauri) {<br \/>\n    if($mime['mime']=='image\/png') {<br \/>\n        $theextis='png';<br \/>\n      header('Content-Type: image\/png');<br \/>\n      imagepng($dst_img); \/\/,$new_thumb_loc,8);<br \/>\n    if (file_exists($new_thumb_loc)) {<br \/>\n    unlink($new_thumb_loc);<br \/>\n    }<br \/>\n    imagedestroy($dst_img);<br \/>\n    imagedestroy($src_img);<br \/>\n      exit;<br \/>\n    } else if ($mime['mime']=='image\/jpg' || $mime['mime']=='image\/jpeg' || $mime['mime']=='image\/pjpeg') {<br \/>\n        $theextis='jpeg';<br \/>\n      header('Content-Type: image\/jpeg');<br \/>\n      imagejpeg($dst_img); \/\/,$new_thumb_loc,80);<br \/>\n    if (file_exists($new_thumb_loc)) {<br \/>\n    unlink($new_thumb_loc);<br \/>\n    }<br \/>\n    imagedestroy($dst_img);<br \/>\n    imagedestroy($src_img);<br \/>\n      exit;<br \/>\n    } else if ($mime['mime']=='image\/gif') {<br \/>\n        $theextis='gif';<br \/>\n      header('Content-Type: image\/gif');<br \/>\n      imagegif($dst_img); \/\/,$new_thumb_loc,80);<br \/>\n    if (file_exists($new_thumb_loc)) {<br \/>\n    unlink($new_thumb_loc);<br \/>\n    }<br \/>\n    imagedestroy($dst_img);<br \/>\n    imagedestroy($src_img);<br \/>\n      exit;<br \/>\n    }<br \/>\n    exit;<br \/>\n    }<br \/>\n<br \/>\n    $result=\"\";<br \/>\n    if ($mime['mime']=='image\/png') {<br \/>\n        $theextis='png';<br \/>\n        imagepng($dst_img,$new_thumb_loc,8);<br \/>\n        $result = file_get_contents($new_thumb_loc);<br \/>\n    }<br \/>\n    if ($mime['mime']=='image\/jpg' || $mime['mime']=='image\/jpeg' || $mime['mime']=='image\/pjpeg') {<br \/>\n        $theextis='jpeg';<br \/>\n        imagejpeg($dst_img,$new_thumb_loc,80);<br \/>\n        $result = file_get_contents($new_thumb_loc);<br \/>\n    }<br \/>\n    if ($mime['mime']=='image\/gif') {<br \/>\n        $theextis='gif';<br \/>\n        imagegif($dst_img,$new_thumb_loc);<br \/>\n        $result = file_get_contents($new_thumb_loc);<br \/>\n    }<br \/>\n<br \/>\n    imagedestroy($dst_img);<br \/>\n    imagedestroy($src_img);<br \/>\n    <br \/>\n    if (file_exists($new_thumb_loc)) {<br \/>\n    unlink($new_thumb_loc);<br \/>\n    }<br \/>\n<br \/>\n    return ourimagecreatefromcontent($result, $theextis);<br \/>\n}<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-dimensions-and-colour-tutorial\/'>SVG Shapes Dimensions and Colour Tutorial<\/a>.<\/p-->\n<hr>\n<p id='svgsgpt'>Previous relevant <a target=_blank title='SVG Shapes Game Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-game-primer-tutorial\/'>SVG Shapes Game Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"SVG Shapes Game Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.jpg\" title=\"SVG Shapes Game Primer Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">SVG Shapes Game Primer Tutorial<\/p><\/div>\n<p>Although we do not mention it in today&#8217;s blog posting title, today&#8217;s work primarily hinges on some changes we made to our <a target=_blank title='WordPress blog' href='\/\/wordpress.org'>WordPress<\/a> Blog <font size=1>(you are reading)<\/font> <i>404.php<\/i> logic, further to the last foray into WordPress TwentyTen theme&#8217;s 404.php means by which unsuccessful <i>ht<font color=black>tp<\/font>:\/\/www.rjmprogramming.com.au\/ITblog\/<\/i> prefixing URLs get processed, as we talked about with <a title='Interactively Change WordPress Blog Background Image on Scroll Tutorial' href='#icwpbbist'>Interactively Change WordPress Blog Background Image on Scroll Tutorial<\/a>.<\/p>\n<p>We&#8217;ve opened up a new segment of functionality here, allowing the user to receive SVG (via svg+xml protocol) image based data for a URL such as &#8230;<\/p>\n<p><code id=codesa title='00'><br \/>\n<a id=mysa target=_blank onmouseover=\"document.getElementById('mysimif').style.display='block';\" onclick=\"document.getElementById('mysimif').style.display='block';\" href='\/\/www.rjmprogramming.com.au\/ITblog\/620\/350\/?svgbluerectangle=y'><font color=black>ht<\/font><font color=black>tp<\/font>:\/\/www.rjmprogramming.com.au\/ITblog\/620\/350\/?svgbluerectangle=y<\/a><br \/>\n<\/code><\/p>\n<p><iframe id=mysimif onload=\"if (document.getElementById('codesa').title == '00') { document.getElementById('codesa').title='0'; setInterval(function(){ var bcols=['bluerectangle','darkorangeellipse','greenline','purplequadrant','magentatriangle','cyanrectangle','oliveellipse','grayline','silversemicircle','pinktriangle','browncircle','cyanarc']; var wasn=eval('' + document.getElementById('codesa').title.split(' ')[0]); var isn=eval(eval(1 + wasn) % eval('' + bcols.length)); document.getElementById('codesa').title='' + isn; document.getElementById('mysimif').src=document.getElementById('mysimif').src.replace('' + bcols[wasn],'' + bcols[isn]);  document.getElementById('mysa').href=document.getElementById('mysa').href.replace('' + bcols[wasn],'' + bcols[isn]); document.getElementById('mysa').innerHTML=document.getElementById('mysa').innerHTML.replace('' + bcols[wasn],'' + bcols[isn]);  },13000); }\" style='display:none;width:620px;height:350px;' id=mysimif src='\/\/www.rjmprogramming.com.au\/ITblog\/620\/350\/?svgbluerectangle=y'><\/iframe><\/p>\n<p>As you probably know, SVG is a boon to people trying to explain geometry or shapes, as with today&#8217;s <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html_GETME\">&#8220;proof of concept&#8221;<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\">Show Some Shapes<\/a> web application you can also try below &#8230;<\/p>\n<p><iframe id=ifss style=\"width:100%;height:800px;\" src=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/show_some_shapes.html\"><\/iframe><\/p>\n<p> &#8230; which beggars the question &#8230;<\/p>\n<blockquote><p>\nWhat does the changed 404.php PHP code look like?\n<\/p><\/blockquote>\n<p>Glad you asked!<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n    if (($newWidth == 32 && $newHeight == 32) || strpos(('?' . $_SERVER['QUERY_STRING']), '?svg') !== false) {<br \/>\n       $fillc=\"red\";<br \/>\n       $strokec=\"black\";<br \/>\n       if (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false || strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $fillc=\"none\";<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('arc=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('semicircle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;path d=\"M ' . ($newWidth \/ 2) . ' 0 A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 0, ' . ($newWidth \/ 2) . ' ' . $newHeight . ' \" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n<br \/> <br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'pie=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('pie=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            $thehome=' L ' . ($newWidth \/ 2) . ' ' . ($newHeight \/ 2) . ' Z';<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;circle cx=\"' . ($newWidth \/ 2) . '\" cy=\"' . ($newHeight \/ 2) . '\" r=\"' . (($newWidth + $newHeight) \/ 4) . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;path d=\"M ' . ($newWidth \/ 2) . ' 0 A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 1, ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 2) . ' ' . $thehome . '\" stroke=\"white\" stroke-width=\"3\" fill=\"white\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n    <br \/> <br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'circle=') !== false) {<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('circle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;circle cx=\"' . ($newWidth \/ 2) . '\" cy=\"' . ($newHeight \/ 2) . '\" r=\"' . (($newWidth + $newHeight) \/ 4) . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'ellipse=') !== false) {<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('ellipse=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;ellipse cx=\"' . ($newWidth \/ 2) . '\" cy=\"' . ($newHeight \/ 2) . '\" rx=\"' . (($newWidth + $newWidth) \/ 4) . '\"  ry=\"' . (($newHeight + $newHeight) \/ 4) . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'square=') !== false || strpos($_SERVER['QUERY_STRING'], 'rectangle=') !== false) {<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'square=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('square=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'rectangle=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('rectangle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;rect x=\"0\" y=\"0\" width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'rhombus=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('rhombus=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;rect x=\"-' . ($newWidth \/ 2) . '\" y=\"-' . ($newHeight \/ 2) . '\" width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" transform=\"translate(' . ($sbone \/ 2) . ', ' . ($sbone \/ 2) . ') rotate(45)\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'octagon=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('octagon=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;rect x=\"-' . ($newWidth \/ 2) . '\" y=\"-' . ($newHeight \/ 2) . '\" width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" transform=\"translate(' . ($newWidth \/ 2) . ', ' . ($newHeight \/ 2) . ') rotate(45)\"\/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'triangle=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('triangle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n  &lt;polygon points=\"' . $newWidth . ',' . $newHeight . ' ' . ($newWidth \/ 2) . ',0 0,' . $newHeight . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'line=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('line=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n  &lt;line x1=\"' . $newWidth . '\" y1=\"' . $newHeight . '\" x2=\"0\" y2=\"0\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       } else if  (strpos($_SERVER['QUERY_STRING'], 'bezier=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('bezier=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            $fillc=\"none\";<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            $bone=$newWidth;<br \/>\n            if ($newHeight &gt; $bone) { $bone=$newHeight; }<br \/>\n            $sbone=sqrt($bone * $bone * 2);<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" viewbox=\"0 0 ' . ($newWidth \/ 1) . ' ' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n  &lt;path d=\"M 0 ' . $newHeight . ' q ' . (($newWidth \/ 2) - 0) . ' ' . (0 - $newHeight) . ' ' . ($newWidth - 0) . ' ' . ($newHeight - $newHeight) . '\" stroke-width=\"2\" stroke=\"' . $strokec . '\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n<br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false || strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $fillc=\"none\";<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'arc=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('arc=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'semicircle=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('semicircle=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') { $fillc=$inbw[0];  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;path d=\"M ' . ($newWidth \/ 2) . ' 0 A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 0, ' . ($newWidth \/ 2) . ' ' . $newHeight . ' \" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n            <br \/> <br \/>\n       } else if (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false || strpos($_SERVER['QUERY_STRING'], 'crescent=') !== false) {<br \/>\n            $fillc=\"none\";<br \/>\n            $thehome='';<br \/>\n            if  (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('quadrant=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            } else if  (strpos($_SERVER['QUERY_STRING'], 'crescent=') !== false) {<br \/>\n            $inbetween=str_replace(':',',',str_replace('.',',',str_replace(' ',',',str_replace('+',',',urldecode(explode('crescent=', str_replace('?svg','',str_replace('??svg','',('?' . $_SERVER['QUERY_STRING']))))[0])))));<br \/>\n            }<br \/>\n            if ($inbetween != '') {<br \/>\n               $inbw=explode(',', $inbetween);<br \/>\n               if (sizeof($inbw) == 1) {<br \/>\n                  $fillc=$inbw[0];<br \/>\n                  if (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false) {<br \/>\n                    $thehome=' L ' . ($newWidth \/ 2) . ' ' . ($newHeight \/ 2) . ' Z';<br \/>\n                  }<br \/>\n               } else if (sizeof($inbw) &gt;= 2) {<br \/>\n                  if (trim($inbw[0]) != '') {<br \/>\n                    $fillc=$inbw[0];<br \/>\n                    if (strpos($_SERVER['QUERY_STRING'], 'quadrant=') !== false) {<br \/>\n                      $thehome=' L ' . ($newWidth \/ 2) . ' ' . ($newHeight \/ 2) . ' Z';<br \/>\n                    }<br \/>\n                  }<br \/>\n                  if (trim($inbw[1]) != '') { $strokec=$inbw[1];  }<br \/>\n               }<br \/>\n            }<br \/>\n            header('Content-Type: image\/svg+xml');<br \/>\n            echo '&lt;?xml version=\"1.0\" standalone=\"no\"?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC \"-\/\/W3C\/\/DTD SVG 1.1\/\/EN\"<br \/>\n\"ht<font color=black>tp<\/font>:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd\"&gt;<br \/>\n&lt;svg width=\"' . ($newWidth \/ 1) . '\" height=\"' . ($newHeight \/ 1) . '\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;<br \/>\n&lt;path d=\"M 0 ' . ($newHeight \/ 2) . ' A ' . (($newWidth + $newWidth) \/ 4) . ' ' . (($newHeight + $newHeight) \/ 4) . ', 0, 0, 1, ' . ($newWidth \/ 2) . ' 0 ' . $thehome . '\" stroke=\"' . $strokec . '\" stroke-width=\"2\" fill=\"' . $fillc . '\" \/&gt;<br \/>\n&lt;\/svg&gt;';<br \/>\n            exit;<br \/>\n       }<br \/>\n    }<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-game-primer-tutorial\/'>SVG Shapes Game Primer Tutorial<\/a>.<\/p-->\n<hr>\n<p id='icwpbbist'>Previous relevant <a target=_blank title='Interactively Change WordPress Blog Background Image on Scroll Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/interactively-change-wordpress-blog-background-image-on-scroll-tutorial\/'>Interactively Change WordPress Blog Background Image on Scroll Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Interactively Change WordPress Blog Background Image on Scroll Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll_wp.jpg\" title=\"Interactively Change WordPress Blog Background Image on Scroll Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Interactively Change WordPress Blog Background Image on Scroll Tutorial<\/p><\/div>\n<p>With yesterday&#8217;s <a title='Interactively Change Background Image on Scroll User Settings Tutorial' href='#icbisust'>Interactively Change Background Image on Scroll User Settings Tutorial<\/a>&#8216;s offering were you &#8220;an intrepid&#8221;, typing &#8230;<\/p>\n<blockquote><p>\n<a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/600\/400\/\">\/\/www.rjmprogramming.com.au\/ITblog\/600\/400\/<\/a>\n<\/p><\/blockquote>\n<p> &#8230; into that newly minted Javascript prompt window designed for user interaction purposes? This populates the background images in our new Image Scrolling with Fixed Text web application with a random selection from the WordPress Blog you are reading.  Because we have some control here, we researched whether our WordPress <a target=_blank title='WordPress Blogs tagged 404.php' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/404.php'>404.php<\/a> logic could be tweaked to help out more in this scenario.  The way the PHP works here, detecting this situation, at the end of its workings, is to use an image header (exemplified by the GIF one below) &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n            header('Content-Type: image\/gif');<br \/>\n            echo file_get_contents($path);<br \/>\n            exit;<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; where $path would point at a GIF image file residing on the RJM Programming domain web server.   This design restricts us from any <i>echo<\/i> functionality before this, so what can we achieve?  <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=uhiCFdWeQfA'>Anyone? Anyone?<\/a> Yes, <a target=_blank title='?' href='https:\/\/en.wikipedia.org\/wiki\/Rasmus_Lerdorf'>Rasmus<\/a>, we can write to other web server files that could be like middle-people between the server (supplier of image data) and client (the webpage that called the server).   After the server work &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n      if (strpos(('' . str_replace(');%20}','',$_SERVER['QUERY_STRING']) . '~'), '591734~') !== false) {<br \/>\n          \/\/file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'p.p','here');<br \/>\n          $prevcontis='';<br \/>\n          $ptfileis=$_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'ptitledata.html';<br \/>\n          if (file_exists($ptfileis)) { \/\/ thanks to https:\/\/stackoverflow.com\/questions\/67707029\/how-do-i-get-how-long-the-file-was-created-in-seconds-in-php<br \/>\n            $modifdate = filemtime($ptfileis);<br \/>\n            $secondsago = time() - $modifdate;<br \/>\n            if ($secondsago &gt; 5) {<br \/>\n              unlink($ptfileis);<br \/>\n            } else {<br \/>\n              $prevcontis=file_get_contents($ptfileis);<br \/>\n            }<br \/>\n          }<br \/>\n          file_put_contents($ptfileis, $prevcontis . \"\\n\" . $ptitle . '?' . str_replace(');%20}','',$_SERVER['QUERY_STRING']));<br \/>\n          \/\/file_put_contents($ptfileis . \"huh\", $prevcontis . \"\\n\" . $ptitle . '?' . str_replace(');%20}','',$_SERVER['QUERY_STRING']));<br \/>\n      \/\/} else {<br \/>\n      \/\/    file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'p.q',('' . str_replace(');%20}','',$_SERVER['QUERY_STRING']) . '~'));<br \/>\n      }<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; back at that client (which called the server with that appended &#8220;591734&#8221; placed onto the URL to indicate the intention to want to examine this return data), we have Ajax based Javascript logic &#8230;<\/p>\n<p><code><br \/>\n  var ptc='#';<br \/>\n  var iptc=0;<br \/>\n  var btlist=[];<br \/>\n  var vsbtlist=[];<br \/>\n  var omo='';<br \/>\n<br \/>\n  var zhr=null;<br \/>\n  var zform=null;<br \/>\n  var rawhtml='';<br \/>\n  <br \/>\n  function defmaybe(inu) {<br \/>\n    var retomo=omo;<br \/>\n    if (omo != '') {<br \/>\n      omo='';<br \/>\n      return retomo;<br \/>\n    }<br \/>\n    return inu;<br \/>\n  }<br \/>\n<br \/>\n  function stateChanged() {<br \/>\n   var inm=1, jnm=1, thebtitle='';<br \/>\n   if (zhr.readyState == 4) {<br \/>\n   if (zhr.status == 200) {<br \/>\n   rawhtml = zhr.response;<br \/>\n   console.log('rawhtml=' + rawhtml);<br \/>\n   if (rawhtml.indexOf('random=') != -1 && vsbtlist.length &gt; 0) {<br \/>\n     var rawrs=rawhtml.split('random=');<br \/>\n     for (inm=1; inm&lt;rawrs.length; inm++) {<br \/>\n      for (jnm=0; jnm&lt;vsbtlist.length; jnm++) {<br \/>\n        if (vsbtlist[jnm].indexOf('?random=' + rawrs[inm].split(String.fromCharCode(10))[0]) != -1) {<br \/>\n          console.log('found ...');<br \/>\n          thebtitle=rawhtml.split('?random=' + rawrs[inm].split(String.fromCharCode(10))[0])[0].split(String.fromCharCode(10))[eval(-1 + rawhtml.split('?random=' + rawrs[inm].split(String.fromCharCode(10))[0])[0].split(String.fromCharCode(10)).length)];<br \/>\n          console.log(thebtitle);<br \/>\n          document.getElementById(vsbtlist[jnm].split('?')[0]).title=thebtitle + ' ... you can right click to navigate there';<br \/>\n          document.getElementById(vsbtlist[jnm].split('?')[0]).onmouseout=function(){ omo=''; };<br \/>\n          document.getElementById(vsbtlist[jnm].split('?')[0]).onmouseover=function(){ omo='\/\/www.rjmprogramming.com.au\/ITblog\/' + thebtitle.split(' (')[0].toLowerCase().replace(\/\\ \/g,'-'); };<br \/>\n          document.getElementById(vsbtlist[jnm].split('?')[0]).oncontextmenu=function(){ window.open(defmaybe('\/\/www.rjmprogramming.com.au\/ITblog\/' + thebtitle.split(' (')[0].toLowerCase().replace(\/\\ \/g,'-')),'_blank','top=50,left=50,width=800,height=800'); };<br \/>\n        }<br \/>\n      }<br \/>\n     }<br \/>\n   }<br \/>\n   }<br \/>\n   }<br \/>\n  }<br \/>\n<br \/>\n  function ajaxit() {<br \/>\n   zhr = new XMLHttpRequest();<br \/>\n   zhr.onreadystatechange=stateChanged;<br \/>\n   zhr.open('get', '\/\/www.rjmprogramming.com.au\/ptitledata.html?random=' + Math.floor(Math.random() * 196756453), true);<br \/>\n   zhr.send(null);<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; adding <i>oncontextmenu<\/i> (ie. right click) functionality to the background images, so as a popup window can open to show the associated WordPress Blog posting linked to the image data.<\/p>\n<p> &#8230; in <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html--GETME\">today&#8217;s changed<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html--GETME\">interactively_change_background_image_on_scroll.html<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\">web application<\/a> you can <a href='#myicbios'>also try way below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/interactively-change-wordpress-blog-background-image-on-scroll-tutorial\/'>Interactively Change WordPress Blog Background Image on Scroll Tutorial<\/a>.<\/p-->\n<hr>\n<p id='icbisust'>Previous relevant <a target=_blank title='Interactively Change Background Image on Scroll User Settings Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/interactively-change-background-image-on-scroll-user-settings-tutorial\/'>Interactively Change Background Image on Scroll User Settings Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Interactively Change Background Image on Scroll User Settings Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll_more.jpg\" title=\"Interactively Change Background Image on Scroll User Settings Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Interactively Change Background Image on Scroll User Settings Tutorial<\/p><\/div>\n<p>If you are a regular reader, you&#8217;ll know with the web applications presented here, we usually try to allow the user to control &#8230;<\/p>\n<ul>\n<li>how they function &#8230; and\/or sometimes &#8230;<\/li>\n<li>how they look<\/li>\n<\/ul>\n<p> &#8230; in the ephemeral &#8220;this session&#8221; sense, and sometimes follow that up, depending, with recallable settings often calling on window.localStorage or HTTP Cookies, associated with the web browser being used.<\/p>\n<p>Regarding that <i>ephemeral &#8220;this session&#8221; sense<\/i> above, building on the work of yesterday&#8217;s <a title='Interactively Change Background Image on Scroll Tutorial' href='#icbist'>Interactively Change Background Image on Scroll Tutorial<\/a>, we now allow the user control over defining any\/all &#8230;<\/p>\n<ul>\n<li>Background Image source URL<\/li>\n<li>Refresh delay (in seconds)<\/li>\n<li>Text Wording<\/li>\n<li>Text Background Image source URL<\/li>\n<\/ul>\n<p> &#8230; and regarding the use of that last one, we&#8217;ve decided, somewhat, to take over with the CSS regarding the Text Wording showing through amongst so many &#8220;image interests&#8221; with various opacities &#8230;<\/p>\n<p><code><br \/>\n  var mode='dw';<br \/>\n  <br \/>\n  function preask() {<br \/>\n   if (backimg.trim() != '') {<br \/>\n    if (backimg.toLowerCase().replace(\/\\ \/g,'') == 'lorempicsum') {<br \/>\n       backimg='\/\/picsum.photos\/600\/400' + suffix + '?random=' + Math.floor(Math.random() * 198765643);<br \/>\n       if (mode == 'dw') {<br \/>\n       mode='';<br \/>\n       document.write('&lt;style&gt; .bg-text { background: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),URL(\"' + backimg + '\"); background-size: contain; background-repeat: repeat;  text-shadow:-2px 2px 2px #ff2d95; opacity: 0.9;  } &lt;\/style&gt;');<br \/>\n       } else {<br \/>\n       document.getElementById('dstyle').innerHTML+='&lt;style&gt; .bg-text { background: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),URL(\"' + backimg + '\"); background-size: contain; background-repeat: repeat;  text-shadow:-2px 2px 2px #ff2d95; opacity: 0.9;  } &lt;\/style&gt;';<br \/>\n       }<br \/>\n       backimg='lorempicsum';<br \/>\n    } else {<br \/>\n       if (mode == 'dw') {<br \/>\n       mode='';<br \/>\n       document.write('&lt;style&gt; .bg-text { background: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),URL(\"' + backimg + '\"); background-size: contain; background-repeat: repeat;  text-shadow:-2px 2px 2px #ff2d95; opacity: 0.9;  } &lt;\/style&gt;');<br \/>\n       } else {<br \/>\n       document.getElementById('dstyle').innerHTML+='&lt;style&gt; .bg-text { background: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),URL(\"' + backimg + '\"); background-size: contain; background-repeat: repeat;  text-shadow:-2px 2px 2px #ff2d95; opacity: 0.9;  } &lt;\/style&gt;';<br \/>\n       }<br \/>\n    }<br \/>\n   }<br \/>\n  }<br \/>\n<\/code><\/p>\n<p>Which beggars the observation &#8230;<\/p>\n<blockquote><p>\nIsn&#8217;t the CSS <a target=_blank title='CSS text-shadow information from W3schools' href='https:\/\/www.w3schools.com\/cssref\/css3_pr_text-shadow.php'>text-shadow<\/a> property just great?!\n<\/p><\/blockquote>\n<p>We use it more and more often to help out foreground text presented with a lot of &#8220;overlay imagery&#8221; going on behind it.<\/p>\n<p>Here is the Javascript prompt window &#8220;blurb&#8221; presented to the user should they want to delve into this woooooorrrrrlllllldddd just by clicking or touching in the non-text part of the webpage &#8230;<\/p>\n<blockquote><p>\n      <font size=1>var ansis=prompt(&#8216;<\/font>Optionally enter in background source URL prefix [&#8216; + prefix + midbit + suffix + &#8216;] ( or type Lorem Picsum or for blog posting images you could try \/\/www.rjmprogramming.com.au\/ITblog\/&#8217; + sixhundred + &#8216;\/&#8217; + fourhundred + &#8216;\/ ), hashtag delimited from an optional imagery refresh rate in seconds [&#8216; + ten + &#8216;], hashtag delimited from an optional Text element background image (or type Lorem Picsum), hashtag delimited from optional Text wording [&#8216; + tcont + &#8216;] we will assume involves a space.<font size=1>&#8216;, &#8221;);<\/font>\n<\/p><\/blockquote>\n<p> &#8230; in <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html-GETME\">the changed<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html-GETME\">interactively_change_background_image_on_scroll.html<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\">web application<\/a> you can <a href='#myicbios'>also try below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/interactively-change-background-image-on-scroll-user-settings-tutorial\/'>Interactively Change Background Image on Scroll User Settings Tutorial<\/a>.<\/p-->\n<hr>\n<p id='icbist'>Previous relevant <a target=_blank title='Interactively Change Background Image on Scroll Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/interactively-change-background-image-on-scroll-tutorial\/'>Interactively Change Background Image on Scroll Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Interactively Change Background Image on Scroll Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.gif\" title=\"Interactively Change Background Image on Scroll Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Interactively Change Background Image on Scroll Tutorial<\/p><\/div>\n<p>Regarding today&#8217;s &#8220;Interactively Change Background Image on Scroll&#8221; topic, we&#8217;d like to thank, profusely, two sources &#8230;<\/p>\n<ul>\n<li>Ideas and Initial Code &#8230; <a target=_blank href='https:\/\/www.w3schools.com\/'>W3School<\/a>&#8216;s <a target=_blank href='https:\/\/www.w3schools.com\/howto\/howto_css_bg_change_scroll.asp' title='How TO - Change Background on Scroll'>How TO &#8211; Change Background on Scroll<\/a><\/li>\n<li>Background Image Content &#8230; <a target=_blank href='https:\/\/picsum.photos\/'>Lorem Picsum<\/a><\/li>\n<\/ul>\n<p>Queue &#8230; <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=yTapoA5RQyo'>Lulu<\/a> <font size=1>(no, not <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/Android\/NalaLuna.jpg'>the dog<\/a>, this time)<\/font>!<\/p>\n<p>Yes, we&#8217;ve just added &#8220;Interactively&#8221;, we hear you say <font size=1>(just maybe, perhaps, a tad sarcastically, shall we say &#8230; huh?!!!!)<\/font>.  But, it&#8217;s the &#8230;<\/p>\n<ul>\n<li><i><a target=_blank title='Global contenteditable attribute information from W3schools' href='https:\/\/www.w3schools.com\/tags\/att_global_contenteditable.asp'>contenteditable=true<\/a><\/i> HTML div <font size=1>(not new by itself &#8230; but combined with)<\/font> &#8230;<\/li>\n<li>text length calculator logic (using an HTML canvas element&#8217;s <a target=_blank title='Canvas measureText information from W3Schools' href='https:\/\/www.w3schools.com\/jsref\/canvas_measuretext.asp'>measureText<\/a> functionality), thanks to <a target=_blank href='https:\/\/stackoverflow.com\/questions\/31305071\/measuring-text-width-height-without-rendering' title='https:\/\/stackoverflow.com\/questions\/31305071\/measuring-text-width-height-without-rendering'>https:\/\/stackoverflow.com\/questions\/31305071\/measuring-text-width-height-without-rendering<\/a> &#8230; calling on &#8230;<\/li>\n<li><a target=_blank title='HTML onkeydown event information from W3Schools' href='https:\/\/www.w3schools.com\/jsref\/event_onkeydown.asp'><i>onkeydown<\/i><\/a> logic &#8230; to be a bit savvy regarding the text element width (along with use of <a target=_blank title='Javascropt DOM innerText information from W3Schools' href='https:\/\/www.w3schools.com\/jsref\/prop_node_innertext.asp'>innerText<\/a> and the <a target=_blank title='HTML onblur event information from W3Schools' href='https:\/\/www.w3schools.com\/jsref\/event_onblur.asp'><i>onblur<\/i><\/a> event logic backup)<\/li>\n<\/ul>\n<p> &#8230; that is all a bit new, at least to us, today, continuing on the recent wonder regarding <i>contenteditable=true<\/i>, mentioned in the recent <a target=_blank title='Animated GIF SVG Quiz Automation Interaction Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/animated-gif-svg-quiz-automation-interaction-tutorial\/'>Animated GIF SVG Quiz Automation Interaction Tutorial<\/a> &#8230;<\/p>\n<blockquote cite='https:\/\/www.rjmprogramming.com.au\/ITblog\/animated-gif-svg-quiz-automation-interaction-tutorial\/'><p>\nAnd did you know, at least for non-mobile platforms, you can set the focus (on non-mobile platforms only, as there are the \u201ckeyboard getting in the way\u201d issues we\u2019re thankful for with mobile platforms which preclude any thoughts of a programmed [element].focus() operation) to one of these \u201ccontenteditable=true style elements\u201d? We\u2019d never been sure, only focussing to HTML input textboxes and textareas up to now, we believe.\n<\/p><\/blockquote>\n<p> &#8230; whereby non-mobile focus to a contenteditable=true HTML div type (innerHTML style) element is possible, adding to the original W3School&#8217;s content ideas swirling around &#8230;<\/p>\n<ul>\n<li>CSS position: fixed; &#8230; for foreground text, in relation to &#8230;<\/li>\n<li>scrolling &#8230; with &#8230;<\/li>\n<li>background image<sub>ry<\/sub><\/li>\n<\/ul>\n<p> &#8230; for topics we hope you find as interesting as we did, in our new <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html_GETME\">&#8220;proof of concept&#8221;<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\">web application<\/a> you can also try below &#8230;<\/p>\n<p><iframe id=myicbios style=\"width:100%;height:900px;\" src=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/interactively_change_background_image_on_scroll.html\"><\/iframe> <\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d60859' onclick='var dv=document.getElementById(\"d60859\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/fixed\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d60859' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d60876' onclick='var dv=document.getElementById(\"d60876\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/text-shadow\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d60876' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d60879' onclick='var dv=document.getElementById(\"d60879\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/wordpress\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d60879' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d61171' onclick='var dv=document.getElementById(\"d61171\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/svg\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d61171' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d61198' onclick='var dv=document.getElementById(\"d61198\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/input\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d61198' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d61203' onclick='var dv=document.getElementById(\"d61203\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/overlay\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d61203' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d61221' onclick='var dv=document.getElementById(\"d61221\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/annotation\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d61221' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Our &#8220;Show Some Shapes&#8221; web application of SVG Shapes Overlay Tutorial was well set up for &#8230; linear annotation &#8230; especially considering &#8230; lines use the stroke colour the user defines and the other shape types mainly show the fill &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/svg-shapes-line-annotation-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[3849,2824,3456,1832,3286,151,4486,224,228,4508,367,3039,1929,4077,3330,484,2258,576,609,652,2598,4509,752,3004,876,894,932,1988,997,1866,1586,3331,2615,1226,3889,1675,2167,2996,1319,2257,1456,3276,1480,1496],"class_list":["post-61221","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-404-php","tag-absolute","tag-annotate","tag-annotation","tag-attrribute-selector","tag-blog","tag-color-picker","tag-colour","tag-colour-picker","tag-depth","tag-dropdown","tag-elevation","tag-error","tag-error-404","tag-fill","tag-geometry","tag-height","tag-html","tag-input","tag-javascript","tag-line","tag-linear","tag-mathematics","tag-maths","tag-opacity","tag-overlay","tag-php","tag-position","tag-programming","tag-select","tag-shape","tag-stroke","tag-superimposition","tag-svg","tag-svgxml","tag-textbox","tag-title","tag-transparent","tag-tutorial","tag-width","tag-wordpress","tag-wordpress-blog","tag-xml","tag-z-index"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/61221"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=61221"}],"version-history":[{"count":16,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/61221\/revisions"}],"predecessor-version":[{"id":61237,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/61221\/revisions\/61237"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=61221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=61221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=61221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}