{"id":38250,"date":"2018-05-18T03:01:06","date_gmt":"2018-05-17T17:01:06","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=38250"},"modified":"2018-05-18T12:54:38","modified_gmt":"2018-05-18T02:54:38","slug":"google-calendar-chart-difference-report-planning-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-calendar-chart-difference-report-planning-tutorial\/","title":{"rendered":"Google Calendar Chart Difference Report Planning Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/calendar_chart.php\"><img decoding=\"async\" style=\"border: 15px solid pink;float:left;\" alt=\"Google Calendar Chart Difference Report Planning Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/cline.jpg\" title=\"Google Calendar Chart Difference Report Planning Tutorial\" \/><\/a><p class=\"wp-caption-text\">Google Calendar Chart Difference Report Planning Tutorial<\/p><\/div>\n<p>Yesterday, with <a title='Google Timeline Chart Clipboard Tutorial' href='#gtcct'>Google Timeline Chart Clipboard Tutorial<\/a>, we had another (&#8220;when&#8221;) sub-guinea pig situation like the Area Chart was a &#8220;where&#8221; sub-guinea pig.   Now, you may be sick of our &#8220;guinea pig&#8221; business <font size=2>&#8230; nga, nga, nga nga, ngaaaaa<font size=1>ir keeps legs smooth and hairfree &#8230; but we digress<\/font> &#8230; you didn&#8217;t get to read this sophisticated riposte! &#8230;<\/font> but there is &#8220;a method&#8221; (as my Dad used to say) <strike>in the madness<\/strike>.  And today is a good day to show you the benefits of the &#8220;guinea pig&#8221; or sub-guinea pig.  Do you remember the &#8220;<i>(<a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/timeline_chart.php-------GETME\" title=\"timeline_chart.php\">changes<\/a>)<\/i>&#8221; link from yesterday?  To us, as a snapshot in time, it is &#8220;a gem&#8221; (my Dad would have said, &#8220;a peach&#8221;).  Why?  It sums up progress, and banishes chaos from the manyfold Google Chart related changes &#8230;<\/p>\n<ul>\n<li>Background Multimedia (to Google Chart interfacings)<\/li>\n<li>Email as Attachment<\/li>\n<li>Big Data Length Management<\/li>\n<li>Clipboard and\/or URL based data inputs<\/li>\n<li>Code for differentiation of web browser versus mobile UIWebView &#8220;hosted&#8221; environment &#8220;logics&#8221; &#8230; more on this later<\/li>\n<\/ul>\n<p> &#8230; we want to propagate through all our interfacings &#8230; <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=YxBSUA5pUgg'>even-tu-al-ly<\/a> &#8230; and so, this &#8220;differences&#8221; report is worth hiving off for future reference as a <a target=_blank title='Things to do' href='http:\/\/www.rjmprogramming.com.au\/PHP\/thingstodo.txt'>&#8220;things to do&#8221; link<\/a> and as shown below &#8230;<\/p>\n<p>&#8216;<\/p>\n<p><iframe style='width:100%;height:600px;' title='Things to do' src='http:\/\/www.rjmprogramming.com.au\/PHP\/thingstodo.txt'><\/iframe><\/p>\n<p> &#8230; serving as a dampener of chaos and a &#8220;line in the sand&#8221;, things you need on big projects as far as organization goes.<\/p>\n<p>So what do we apply these &#8220;planning via difference reporting&#8221; ideas to today?  We apply it to a &#8220;when&#8221; Google Chart interfacing to the Timeline Chart, the Calendar Chart.  Its data form is just &#8220;[date,number]&#8221; (array within an array), so is easier to slide into the <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php--------------GETME\" target=\"_blank\">csv.php<\/a> <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php-------------GETME\" target=\"_blank\">&#8220;changed logic&#8221;<\/a>, that is supervised by Calendar Chart <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/calendar_chart.php\" title=\"Click picture\">live run<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/calendar_chart.php-----GETME\" title=\"calendar_chart.php\">calendar_chart.php<\/a>&#8216;s functionality (<a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/calendar_chart.php-----GETME\" title=\"calendar_chart.php\">changes<\/a>) can, again, work large amounts of data as shown in today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/cline.jpg\" title=\"Tutorial picture\">tutorial picture<\/a>, and which you can simulate yourself <a target=_blank title='simulation'  href='https:\/\/www.rjmprogramming.com.au\/PHP\/CalendarChart\/calendar_chart.php?title=Sydney%20Observatory%20Hill%20March%202018%20Minimum%20Celcius%20Temperatures&#038;onclick=y&#038;emailto=rmetcalfe15@gmail.com&#038;emailsubject=Sydney%20Observatory%20Hill%20March%202018%20Minimum%20Celcius%20Temperatures&#038;desc=Sydney%20Observatory%20Hill%20March%202018%20Minimum%20Celcius%20Temperatures&#038;onclick=y&#038;emailto=rmetcalfe15@gmail.com&#038;emailsubject=Sydney%20Observatory%20Hill%20March%202018%20Minimum%20Celcius%20Temperatures&#038;data=http%3A%2F%2Fwww.rjmprogramming.com.au%2FPHP%2FCalendarChart%2Fsydney_observatory_hill_march_2018_min_max.csv'>at this Sydney Observatory Hill March 2018 Minimum Celcius Temperature Calendar Chart link<\/a>, thanks to <a target=_blank title='useful link'  href='http:\/\/www.bom.gov.au\/climate\/dwo\/201803\/html\/IDCJDW2124.201803.shtml'>this great Australian Bureau of Meteorology link<\/a>.<\/p>\n<p>.  Because it is only demanding (Javascript) Date object data and numeric data &#8220;sets&#8221;, we scan for all data items delimited that satisfy being a Date, and work the &#8220;numeric&#8221; around that, which had already been started on with yesterday&#8217;s work.<\/p>\n<p>Along the way, we <i>again<\/i> make the line feed  &#8230; in Javascript thoughts &#8230;<\/p>\n<p><code><br \/>\nString.fromCharCode(10)<br \/>\n<\/code><\/p>\n<p>&#8230;  delimiter a &#8220;friend&#8221; for data such as is required by a Timeline Chart by treating each &#8220;record&#8221; as a separate &#8220;entity&#8221; to &#8220;Date scan&#8221; within.  We&#8217;ll see further down the track, this will, no doubt, be advantageous when we get to some of the more complex &#8220;when&#8221; Date object Google Chart interfacings we have not talked about yet.<\/p>\n<p>The result of these &#8220;planning via difference reporting&#8221; is that you can &#8230;<\/p>\n<ul>\n<li>work quicker<\/li>\n<li>work with more surety<\/li>\n<li>tick off &#8220;tasks&#8221; (you can start with a difference report, and &#8220;Cut&#8221; away at it, if you like)<\/li>\n<li>unit test in a more savvy fashion<\/li>\n<li>isolate problems easier<\/li>\n<\/ul>\n<p>Aaaaaaaarrrrh!  Here, &#8220;sub-guinea pig two&#8221;, time for sub-dinner!<\/p>\n<hr>\n<p id='gtcct'>Previous relevant <a target=_blank title='Google Timeline Chart Clipboard Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/google-timeline-chart-clipboard-tutorial\/'>Google Timeline Chart Clipboard Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/timeline_chart.php\"><img decoding=\"async\" style=\"border: 15px solid pink;float:left;\" alt=\"Google Timeline Chart Clipboard Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/tline.jpg\" title=\"Google Timeline Chart Clipboard Tutorial\" \/><\/a><p class=\"wp-caption-text\">Google Timeline Chart Clipboard Tutorial<\/p><\/div>\n<p>Today&#8217;s <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Charts<\/a> <a title=\"Google Chart Timeline Chart\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/timeline\" target=\"_blank\">Timeline Chart<\/a> interface changes bring into play for the first time thoughts regarding (the Javascript) &#8230;<\/p>\n<p><code><br \/>\n<a target=_blank title='Javascript Date object information from w3schools' href='https:\/\/www.w3schools.com\/jsref\/jsref_obj_date.asp'>Date<\/a><br \/>\n<\/code><\/p>\n<p> &#8230; (object and) data type.  We wanted to start down this &#8220;road&#8221; so that our &#8220;when&#8221; Google Charts such as the Timeline Chart, can be improved to allow for either of &#8230;<\/p>\n<ul>\n<li>data off a web URL<\/li>\n<li>data from the computer (or device&#8217;s) clipboard<\/li>\n<\/ul>\n<p> &#8230; to eventually suit the &#8220;[label,dateFrom,dateTo]&#8221; (array within an array) data requirements of the Google Chart Timeline Chart.  This work may sound familiar, and that would be because you have been following our recent progress with work of this ilk we last talked about with the recent <a title='Google Geo Intensity Map Chart Multimedia Background Tutorial' href='#ggimcmbt'>Google Geo Intensity Map Chart Multimedia Background Tutorial<\/a>.<\/p>\n<p>What is different (but &#8220;modelable&#8221;), and requiring new PHP functions in our <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php-------------GETME\" target=\"_blank\">csv.php<\/a> generic helper is that a Date (as an &#8220;object&#8221; or concept) is comprised of a &#8230;<\/p>\n<ol>\n<li>Year<\/li>\n<li>Month<\/li>\n<li>Date<\/li>\n<\/ol>\n<p> &#8230; which, as you can probably imagine, could be represented in the &#8220;big wide world of data&#8221; in a huge variety of formats.  We try allowing for the more popular Date formats.<\/p>\n<p>What are we on about with &#8220;modelable&#8221; above?  Well, if you&#8217;ve been following closely, you&#8217;d have seen us grapple with URL and clipboard issues with two other charts with 3 data items, namely &#8230;<\/p>\n<ol>\n<li>Intensity Chart uses &#8220;CountryCode,number1,number2&#8221;<\/li>\n<li>Map Chart uses &#8220;latitude,longitude,Place&#8221;<\/li>\n<\/ol>\n<p> &#8230; and we like to follow &#8220;glimpses&#8221; of synergies rather than starting again.  After all, we spent some time working the PHP functions for this, and the column ordering and delimitation logic of the Map Chart represent a great start to what we need to achieve, so that what is most of the work today becomes how we &#8230;<\/p>\n<ul>\n<li>change the references to PHP function <i>latlongmassage<\/i> &#8230; and write a new &#8230;<\/li>\n<li><i>datemassage<\/i> &#8230; as the place to worry about all that Date representation thoughts we referred to above<\/li>\n<\/ul>\n<p> &#8230; so that the calling <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/timeline_chart.php\" title=\"Click picture\">live run<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/timeline_chart.php-------GETME\" title=\"timeline_chart.php\">timeline_chart.php<\/a>&#8216;s functionality (<a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/timeline_chart.php-------GETME\" title=\"timeline_chart.php\">changes<\/a>) can work large amounts of data as shown in today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/tline.jpg\" title=\"Tutorial picture\">tutorial picture<\/a>, and which you can simulate yourself <a target=_blank title='simulation'  href='https:\/\/www.rjmprogramming.com.au\/PHP\/TimelineChart\/timeline_chart.php?title=US%20President&#038;desc=US%20President&#038;data=http%3A%2F%2Fwww.rjmprogramming.com.au%2FPHP%2FTimelineChart%2Fusp.txt'>at this link<\/a>, thanks to <a target=_blank title='useful link'  href='https:\/\/gist.github.com\/namuol\/2657233'>this great link<\/a>.<\/p>\n<hr>\n<p id='ggimcmbt'>Previous relevant <a target=_blank title='Google Geo Intensity Map Chart Multimedia Background Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/google-geo-intensity-map-chart-multimedia-background-tutorial\/'>Google Geo Intensity Map Chart Multimedia Background Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\"><img decoding=\"async\" style=\"border: 15px solid pink; float: left;\" title=\"Google Geo Intensity Chart Map Multimedia Background Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map_multimedia.jpg\" alt=\"Google Geo Intensity Map Chart Multimedia Background Tutorial\" \/><\/a><p class=\"wp-caption-text\">Google Geo Intensity Map Chart Multimedia Background Tutorial<\/p><\/div>\n<p>To ease the burden of our usual <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> &#8220;guinea pig&#8221; Pie Chart interfacing web application, we&#8217;ve introduced today our <i>interim<\/i> &#8220;sub guinea pig&#8221; candidate, the Area Chart, who wants to grow up to be &#8230; you guessed it &#8230; <span style=\"font-size: 300%;\"><a title=\"?\" href=\"https:\/\/www.youtube.com\/watch?v=ZBKk3idJUjE\" target=\"_blank\">a very big guinea pig, indeed!<\/a><\/span><\/p>\n<p>The recent <a title=\"Google Line Area Bar Column Chart Multimedia Background Tutorial\" href=\"#glabccmbt\">Google Line Area Bar Column Chart Multimedia Background Tutorial<\/a> had us adding code to analyze semicolon delimited title prompt multimedia entries, similar code in a couple of places depending on whether the HTML form navigation is method=GET or method=POST. This is where a call of a shared PHP function would be good, and we did that by adding &#8230;<\/p>\n<p><code><br \/>\nfunction titlebits(&amp;$burl, &amp;$GETtitle, &amp;$cdivc, &amp;$bdivstart, &amp;$bdivend, &amp;$nondefs) {<\/p>\n<p>$gtypes = [\"audio\/wav\",\"audio\/x-wav\",\"audio\/x-pn-realaudio\",\"audio\/x-mpegurl\",\"audio\/x-aiff\",\"audio\/x-aifc\",\"audio\/mpeg\",\"audio\/mid\",<br \/>\n\"audio\/basic\",\"audio\/ogg\",\"video\/x-sgi-movie\",\"video\/x-msvideo\",\"video\/quicktime\",\"audio\/mp3\",\"video\/mp4\",\"video\/mpeg\",<br \/>\n\"video\/x-la-asf\",\"video\/ogg\",\"video\/webm\",\"audio\/mp4\", \"image\/jpeg\", \"image\/jpeg\", \"image\/png\", \"image\/gif\", \"image\/bmp\", \"image\/tif\",<br \/>\n\"text\/html\", \"text\/html\", \"text\/html\", \"text\/javascript\", \"text\/css\", \"text\/plain\", \"text\/xml\", \"text\/csv\",<br \/>\n\"application\/vnd.ms-word\", \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\", \"application\/x-php\", \"application\/pdf\",<br \/>\n\"application\/vnd.openxmlformats-officedocument.presentationml.presentation\", \"application\/vnd.ms-powerpoint\",<br \/>\n\"application\/vnd.ms-excel\", \"application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"];<br \/>\n$gexts = [\".wav\",\".wav\",\".ram\",\".m3u\",\".aiff\",\".aifc\",\".mp3\",\".rmi\",<br \/>\n\".snd\",\".ogg\",\".movie\",\".avi\",\".mov\",\".mp3\",\".m4v\",\".mpeg\",<br \/>\n\".lsx\",\".ogv\",\".webm\",\".m4a\", \".jpg\", \".jpeg\", \".png\", \".gif\", \".bmp\", \".tif\",<br \/>\n\".htm\", \".html\", \".htmls\", \".js\", \".css\", \".txt\", \".xml\", \".csv\",<br \/>\n\".doc\", \".docx\", \".php\", \".pdf\",<br \/>\n\".pptx\", \".ppt\",<br \/>\n\".xls\", \".xlsx\"];<\/p>\n<p>$ourtitles=explode(\";\", str_replace(\";base64\",\"|base64\",urldecode($GETtitle)));<br \/>\nfor ($ipa=0; $ipa&lt;sizeof($ourtitles); $ipa++) {<br \/>\n$ourtitles[$ipa]=str_replace(\"|base64\",\";base64\",$ourtitles[$ipa]);<br \/>\n}<br \/>\n$GETtitle = str_replace(\"\\\\'\", \"'\", $ourtitles[sizeof($ourtitles) - 1]);<br \/>\nif (sizeof($ourtitles) &gt; 1 &amp;&amp; strlen($ourtitles[0]) &gt; 3 &amp;&amp; (strpos(strtolower($ourtitles[0]), \"\/\/\") !== false || strpos(strtolower($ourtitles[0]), \"data:\") !== false)) {<br \/>\nwhile (sizeof($ourtitles) &gt; 1 &amp;&amp; strlen($ourtitles[0]) &gt; 3 &amp;&amp; (strpos(strtolower($ourtitles[0]), \"\/\/\") !== false || strpos(strtolower($ourtitles[0]), \"data:\") !== false)) {<br \/>\n$burl=\"\";<br \/>\n\/\/ Thanks to https:\/\/stackoverflow.com\/questions\/8828076\/how-can-i-hack-a-background-image-into-google-chart-tools-dynamic-javascript-s<br \/>\nif (strpos($ourtitles[0], \"data:\") !== false) {<br \/>\n$burl=str_replace(\"%2b\",\"+\",\"data:\" . explode(\" \", explode(\"data:\", substr($ourtitles[0],0,20) . explode(\";\",substr($ourtitles[0],20))[0] . \" \" )[1])[0]);<br \/>\n} else if (strpos($ourtitles[0], \"DATA:\") !== false) {<br \/>\n$burl=str_replace(\"%2b\",\"+\",\"data:\" . explode(\" \", explode(\"DATA:\", substr($ourtitles[0],0,20) . explode(\";\",substr($ourtitles[0],20))[0] . \" \" )[1])[0]);<br \/>\n} else if (strpos($ourtitles[0], \"Data:\") !== false) {<br \/>\n$burl=str_replace(\"%2b\",\"+\",\"data:\" . explode(\" \", explode(\"Data:\", substr($ourtitles[0],0,20) . explode(\";\",substr($ourtitles[0],20))[0] . \" \" )[1])[0]);<br \/>\n} else if (strpos($ourtitles[0], \"https:\/\/\") !== false) {<br \/>\n$burl=\"https:\/\/\" . explode(\" \", explode(\"https:\/\/\", $ourtitles[0])[1])[0];<br \/>\n} else if (strpos($ourtitles[0], \"Https:\/\/\") !== false) {<br \/>\n$burl=\"Https:\/\/\" . explode(\" \", explode(\"Https:\/\/\", $ourtitles[0])[1])[0];<br \/>\n} else if (strpos($ourtitles[0], \"HTTPS:\/\/\") !== false) {<br \/>\n$burl=\"HTTPS:\/\/\" . explode(\" \", explode(\"HTTPS:\/\/\", $ourtitles[0])[1])[0];<br \/>\n} else if (strpos($ourtitles[0], \"http:\/\/\") !== false) {<br \/>\n$burl=\"http:\/\/\" . explode(\" \", explode(\"http:\/\/\", $ourtitles[0])[1])[0];<br \/>\n} else if (strpos($ourtitles[0], \"Http:\/\/\") !== false) {<br \/>\n$burl=\"Http:\/\/\" . explode(\" \", explode(\"Http:\/\/\", $ourtitles[0])[1])[0];<br \/>\n} else if (strpos($ourtitles[0], \"HTTP:\/\/\") !== false) {<br \/>\n$burl=\"HTTP:\/\/\" . explode(\" \", explode(\"HTTP:\/\/\", $ourtitles[0])[1])[0];<br \/>\n} else {<br \/>\n$burl=\"\/\/\" . explode(\" \", explode(\"\/\/\", $ourtitles[0])[1])[0];<br \/>\n}<br \/>\nif ($burl != \"\") {<br \/>\n$ourmimetype=\"\";<br \/>\nif (strpos($burl, \"data:\") === false) {<br \/>\n$ourext=explode(\".\", $burl)[-1 + sizeof(explode(\".\", $burl))];<br \/>\nfor ($im=0; $im&lt;sizeof($gexts); $im++) {<br \/>\nif (strtolower(\".\" . $ourext) == strtolower($gexts[$im])) $ourmimetype=$gtypes[$im] . \";\";<br \/>\n}<br \/>\n}<br \/>\nif (strpos($burl, \"audio\/\") !== false || strpos($ourmimetype, \"audio\/\") !== false) {<br \/>\nif ($bdivstart == \"\") $bdivstart=\"&lt;div id='bkcol'&gt;\";<br \/>\nif ($bdivend == \"\") {<br \/>\n$bdivend=\"&lt;\/div&gt;&lt;audio type='audio\/\" . explode(';', explode('audio\/', $ourmimetype . $burl)[1])[0] . \"' controls autoplay&gt;&lt;source src=\" . $burl . \"&gt;&lt;\/source&gt;&lt;\/audio&gt;\";<br \/>\n} else {<br \/>\n$bdivend=str_replace(\"&lt;\/div&gt;\", \"&lt;\/div&gt;&lt;audio type='audio\/\" . explode(';', explode('audio\/', $ourmimetype . $burl)[1])[0] . \"' controls autoplay&gt;&lt;source src=\" . $burl . \"&gt;&lt;\/source&gt;&lt;\/audio&gt;\", $bdivend);<br \/>\n}<br \/>\n} else if (strpos($burl, \"video\/\") !== false || strpos($ourmimetype, \"video\/\") !== false) {<br \/>\nif ($bdivstart == \"\") $bdivstart=\"&lt;div id='bkcol'&gt;\";<br \/>\nif ($bdivend == \"\") {<br \/>\n$bdivend=\"&lt;\/div&gt;&lt;video type='video\/\" . explode(';', explode('video\/', $ourmimetype . $burl)[1])[0] . \"' controls autoplay&gt;&lt;source src=\" . $burl . \"&gt;&lt;\/source&gt;&lt;\/video&gt;\";<br \/>\n} else {<br \/>\n$bdivend=str_replace(\"&lt;\/div&gt;\", \"&lt;\/div&gt;&lt;video type='video\/\" . explode(';', explode('video\/', $ourmimetype . $burl)[1])[0] . \"' controls autoplay&gt;&lt;source src=\" . $burl . \"&gt;&lt;\/source&gt;&lt;\/video&gt;\", $bdivend);<br \/>\n}<br \/>\n} else if (strpos($burl, \"youtube.com\/embed\/\") !== false) {<br \/>\nif ($bdivstart == \"\") $bdivstart=\"&lt;div id='bkcol'&gt;\";<br \/>\nif ($bdivend == \"\") {<br \/>\n$bdivend=\"&lt;\/div&gt;&lt;iframe width='560' height='315' src='\" . $burl . \"' frameborder='0' allow='autoplay; encrypted-media' allowfullscreen&gt;&lt;\/iframe&gt;\";<br \/>\n} else {<br \/>\n$bdivend=str_replace(\"&lt;\/div&gt;\", \"&lt;\/div&gt;&lt;iframe width='560' height='315' src='\" . $burl . \"' frameborder='0' allow='autoplay; encrypted-media' allowfullscreen&gt;&lt;\/iframe&gt;\", $bdivend);<br \/>\n}<br \/>\n} else if ($burl != \"\") {<br \/>\n$bdivstart=\"&lt;div id='bkcol' style=\\\"background: linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)),url('\" . $burl . \"'); background-repeat: repeat;\\\"&gt;\";<br \/>\nif ($bdivend == \"\") $bdivend=\"&lt;\/div&gt;\";<br \/>\n}<br \/>\n}<br \/>\n$cdivc=\"background-color: none; opacity:1.0; \";<br \/>\narray_shift($ourtitles);<br \/>\n}<br \/>\nif ($burl != \"\") {<br \/>\nif (substr(trim(\"x\" . $nondefs),-1) == ',') {<br \/>\n$nondefs.=\"backgroundColor: 'none',\";<br \/>\n} else {<br \/>\n$nondefs.=\", backgroundColor: 'none' \";<br \/>\n}<br \/>\n$ourtitles=explode(\";\", urldecode($GETtitle));<br \/>\nif (sizeof($ourtitles) == 1) {<br \/>\n$GETtitle=$ourtitles[0];<br \/>\n} else if (sizeof($ourtitles) == 2 &amp;&amp; strlen($ourtitles[0]) &lt;= 3) {<br \/>\n$GETtitle=$ourtitles[0] . \";\" . $ourtitles[1];<br \/>\n}<br \/>\n} else {<br \/>\n$nondefs=$nondefs;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n<\/code><\/p>\n<p>&#8230; into <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php------------GETME\" target=\"_blank\">csv.php<\/a> changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php------------GETME\" target=\"_blank\">this way<\/a> for today&#8217;s work. You may note here how <a title=\"PHP references information\" href=\"https:\/\/stackoverflow.com\/questions\/746224\/are-there-pointers-in-php\" target=\"_blank\">PHP can use references<\/a> in its function parameters so that any value changes performed to those parameter values with the function are reflected (actually &#8220;copied&#8221;) back at the caller code. Can PHP use <span style=\"text-decoration: line-through;\"><a title=\"?\" href=\"https:\/\/www.youtube.com\/watch?v=bmx2bQDO1Vk\" target=\"_blank\">pointers<\/a><\/span><a title=\"Pointer information from Wikipedia ... thanks\" href=\"https:\/\/en.wikipedia.org\/wiki\/Pointer_(computer_programming)\" target=\"_blank\">pointers<\/a>, like C++ and C? Alas, no, but references can help, but are not as fast as pointers, given that pointers perform (operating system) kernel operations.<\/p>\n<p>You can see an example of this usage at <a style=\"word-wrap: break-word;\" title=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php?title=https:\/\/www.youtube.com\/embed\/uzmtNSKf_JQ;http:\/\/www.rjmprogramming.com.au\/frog\/Welcome_files\/shapeimage_1e.jpg;Places&amp;onclick=y&amp;emailto=rmetcalfe15@gmail.com&amp;emailsubject=M%20h&amp;label=[%27Lat%27,&amp;value=%27Lon%27,%20%27Name%27]&amp;data=%2C%20%5B-33.86667%2C151.21666%2C~Sydney~%5D%20%2C%20%5B-27.46667%2C153.07333%2C~Brisbane~%5D\" href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php?title=https:\/\/www.youtube.com\/embed\/uzmtNSKf_JQ;http:\/\/www.rjmprogramming.com.au\/frog\/Welcome_files\/shapeimage_1e.jpg;Places&amp;onclick=y&amp;emailto=rmetcalfe15@gmail.com&amp;emailsubject=M%20h&amp;label=[%27Lat%27,&amp;value=%27Lon%27,%20%27Name%27]&amp;data=%2C%20%5B-33.86667%2C151.21666%2C~Sydney~%5D%20%2C%20%5B-27.46667%2C153.07333%2C~Brisbane~%5D\" target=\"_blank\">https:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php?title=https:\/\/www.youtube.com\/embed\/uzmtNSKf_JQ;http:\/\/www.rjmprogramming.com.au\/frog\/Welcome_files\/shapeimage_1e.jpg;Places&amp;onclick=y&amp;emailto=rmetcalfe15@gmail.com&amp;emailsubject=M%20h&amp;label=[%27Lat%27,&amp;value=%27Lon%27,%20%27Name%27]&amp;data=%2C%20%5B-33.86667%2C151.21666%2C~Sydney~%5D%20%2C%20%5B-27.46667%2C153.07333%2C~Brisbane~%5D<\/a> and answer the prompts of today&#8217;s <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php' title='map.php' >live run<\/a> like below &#8230;<\/p>\n<table style=\"width: 100%; table-layout: fixed;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"word-wrap: break-word;\">https:\/\/www.youtube.com\/embed\/uzmtNSKf_JQ;HTTP:\/\/www.rjmprogramming.com.au\/frog\/Welcome_files\/shapeimage_1e.jpg;Places&#038;onclick=y&#038;emailto=rmetcalfe15@gmail.com&#038;emailsubject=M h<\/td>\n<\/tr>\n<tr>\n<td>Sydney<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Brisbane<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can see changes, today, via the report <a style=\"word-wrap: break-word;\" href=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-10&amp;dmdateb=2018-05-11\" target=\"_blank\">HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-10&amp;dmdateb=2018-05-11<\/a><\/p>\n<p><iframe loading=\"lazy\" style=\"height: 600px; width: 100%;\" src=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-10&amp;dmdateb=2018-05-11\" width=\"300\" height=\"150\"><\/iframe><\/p>\n<p><b><i>Did you know?<\/i><\/b><\/p>\n<p>The <a target=_blank title='YouTube' href='https:\/\/www.youtube.com'>YouTube<\/a> video access used in the example execution above is based on a YouTube -&gt; Share -&gt; Embed URL that the code looks for to know to embed a YouTube video &#8220;embed&#8221; URL into an HTML iframe element.<\/p>\n<hr \/>\n<p id=\"glabccmbt\">Previous relevant <a title=\"Google Line Area Bar Column Chart Multimedia Background Tutorial\" href=\"\/\/www.rjmprogramming.com.au\/ITblog\/google-line-area-bar-column-chart-multimedia-background-tutorial\/\" target=\"_blank\">Google Line Area Bar Column Chart Multimedia Background Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/AreaChart\/area_chart.php\" target=\"_blank\"><img decoding=\"async\" style=\"border: 15px solid pink; float: left;\" title=\"Google Line Area Bar Column Chart Multimedia Background Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/AreaChart\/seasons_via_ac.jpg\" alt=\"Google Line Area Bar Column Chart Multimedia Background Tutorial\" \/><\/a><\/p>\n<p>The recent <a title=\"Google Pie Chart Multimedia Background Tutorial\" href=\"#gpcmbt\">Google Pie Chart Multimedia Background Tutorial<\/a> &#8220;guinea pig&#8221; approach to multimedia background functionality behind our <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> interfacings not only introduced us to <a title=\"?\" href=\"https:\/\/www.youtube.com\/watch?v=ZBKk3idJUjE\" target=\"_blank\">bigger guinea pigs<\/a> but helped build up some code intervention points for <span style=\"text-decoration: line-through;\"><a title=\"?\" href=\"https:\/\/www.youtube.com\/watch?v=ZBKk3idJUjE\" target=\"_blank\">those bigger guinea pigs<\/a><\/span> &#8230; down, Nala! &#8230; us, to extend that functionality to &#8220;the awesome foursome&#8221; &#8230;<\/p>\n<ul>\n<li>Line Chart<\/li>\n<li>Area Chart<\/li>\n<li>Bar Chart<\/li>\n<li>Column Chart<\/li>\n<\/ul>\n<p>As we&#8217;d have mentioned before, these four Google Chart types ask for a similar data structure that is behind their workings, and so it is reasonably easy to convert from one to another as per the Google Chart (&amp;onclick=y) select event prompt window options for all these that allow for conversions to the others. By their very nature, depending on the look of your data, that dataset may present better in one of these Google Chart types than the rest.<\/p>\n<p>We take that multimedia data from the Pie Chart case and use the wonderful data from the Australian Bureau of Meteorology (with webpages like <a title=\"Sydney in winter 2016: A warm, wet winter for Sydney\" href=\"http:\/\/www.bom.gov.au\/climate\/current\/season\/nsw\/archive\/201608.sydney.shtml\" target=\"_blank\">Sydney in winter 2016: A warm, wet winter for Sydney<\/a>) to show in today&#8217;s Area Chart <a title=\"Tutorial picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/AreaChart\/area_chart.php\" target=\"_blank\">tutorial picture<\/a> using the user prompt window entries &#8230;<\/p>\n<table style=\"width: 100%; table-layout: fixed;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"word-wrap: break-word;\">https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/qrtr.aifc;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0018.MOV;The Seasons Explained&amp;onclick=y&amp;emailto=rmetcalfe15@gmail.com&amp;emailsubject=The Seasons Explained via Area Chart<\/td>\n<\/tr>\n<tr>\n<td>Sydney Season by Year Hottest Days in C<\/td>\n<\/tr>\n<tr>\n<td>Summer,Autumn,Winter,Spring<\/td>\n<\/tr>\n<tr>\n<td>2013<\/td>\n<\/tr>\n<tr>\n<td>46.5,34.9,29.3,39.3<\/td>\n<\/tr>\n<tr>\n<td>2014<\/td>\n<\/tr>\n<tr>\n<td>41.9,31.6,25.8,45.3<\/td>\n<\/tr>\n<tr>\n<td>2015<\/td>\n<\/tr>\n<tr>\n<td>37.7,37.9,28.9,42.8<\/td>\n<\/tr>\n<tr>\n<td>2016<\/td>\n<\/tr>\n<tr>\n<td>42.2,36.6,27.0,37.4<\/td>\n<\/tr>\n<tr>\n<td>2017<\/td>\n<\/tr>\n<tr>\n<td>47.0,35.2,29.3,37.3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8230; to create a Google Chart Area Chart &#8220;Sydney Season by Year Hottest Days in C&#8221; for the years from 2013 to 2017.<\/p>\n<p>You can see changes, today, via the report <a style=\"word-wrap: break-word;\" href=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-10&amp;dmdateb=2018-05-11\" target=\"_blank\">HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-08&amp;dmdateb=2018-05-09&#8242;&gt;HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-08&amp;dmdateb=2018-05-09<\/a> below &#8230;<\/p>\n<p><iframe loading=\"lazy\" style=\"height: 600px; width: 100%;\" src=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-05-08&amp;dmdateb=2018-05-09\" width=\"300\" height=\"150\"><\/iframe><\/p>\n<hr \/>\n<p id=\"gpcmbt\">Previous relevant <a title=\"Google Pie Chart Multimedia Background Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-pie-chart-multimedia-background-tutorial\/\" target=\"_blank\">Google Pie Chart Multimedia Background Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\"><img decoding=\"async\" style=\"border: 15px solid pink; float: left;\" title=\"Google Pie Chart Multimedia Background Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG\" alt=\"Google Pie Chart Multimedia Background Tutorial\" \/><\/a><\/p>\n<p>It&#8217;s back to &#8220;guinea pig&#8221; <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Pie Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/piechart\" target=\"_blank\">Pie Chart<\/a> web application interface work today, moving on from yesterday&#8217;s <a title=\"Google Map Chart Email Attachment Reply Tutorial\" href=\"#gmceart\">Google Map Chart Email Attachment Reply Tutorial<\/a> Map Chart specifics. Today we want to return to the background image functionality we added a little time ago with <a title=\"Google Chart Pie Chart Background Image Tutorial\" href=\"#gcpcbit\">Google Chart Pie Chart Background Image Tutorial<\/a>, so that by the end of today combinations of any\/all of &#8230;<\/p>\n<ul>\n<li>image<\/li>\n<li>video<\/li>\n<li>audio<\/li>\n<\/ul>\n<p>&#8230; will be possible as background media sources, because, after all, the HTML <a title=\"HTML audio tag information from w3schools\" href=\"http:\/\/www.w3schools.com\/html\/html5_audio.asp\" target=\"_blank\"><i>audio<\/i><\/a> and <a title=\"HTML video tag information from w3schools\" href=\"http:\/\/www.w3schools.com\/html\/html5_video.asp\" target=\"_blank\"><i>video<\/i><\/a> are totally flexible &#8220;helperer outerers&#8221; here given either &#8230;<\/p>\n<ul>\n<li>URL of a suitable audio or video (or image) media file that we map the file extension to a <a title=\"MIME information from Wikipedia ... thanks\" href=\"https:\/\/en.wikipedia.org\/wiki\/MIME\" target=\"_blank\">mime type<\/a> for &#8230; and\/or &#8230;<\/li>\n<li>data URI which will have this <a title=\"MIME information from Wikipedia ... thanks\" href=\"https:\/\/en.wikipedia.org\/wiki\/MIME\" target=\"_blank\">mime type<\/a> defined in all likelihood within its data<\/li>\n<\/ul>\n<p>&#8230; and we want all this to still work emailing your &#8220;Pie Chart presentation&#8221; off to a recipient.<\/p>\n<p>We made a <a title=\"YouTube\" href=\"https:\/\/youtube.com\" target=\"_blank\">YouTube<\/a> video of some QuickTime Player Screen Presentation we did explaining this work &#8230;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/p_A3RsP4xDI\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&#8230; which involved, device wise &#8230;<\/p>\n<ul>\n<li>iPad (Camera app in Video mode) videoing a sheet of paper mostly showing the &#8220;Seasons Explained&#8221; (moral of the story is <b><i><span style=\"color: red; font-size: x-large;\">1\/4 is same as 25%<\/span><\/i><\/b>) presentation &#8230; <a title=\"Video we captured\" href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0018.MOV\" target=\"_blank\">video<\/a> (s)ftp&#8217;ed to rjmprogramming.com.au (and you might want to read <a title=\"Email iPad Image Conduit Tutorial \" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/email-ipad-image-conduit-tutorial\/\" target=\"_blank\">Email iPad Image Conduit Tutorial <\/a> with respect to this, as email cannot &#8220;cut the mustard&#8221; with anything but the smallest of videos) &#8230; we just also &#8230;<\/li>\n<li>take an overall photo of the setup with an iPhone (Camera app in Photo mode) &#8230; <a title=\"Background image we captured\" href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG\" target=\"_blank\">image<\/a> (s)ftp&#8217;ed to rjmprogramming.com.au &#8230; and is today&#8217;s <a title=\"Tutorial picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG\" target=\"_blank\">tutorial picture<\/a> &#8230; while &#8230;<\/li>\n<li><a title=\"QuickTime information from Apple\" href=\"https:\/\/support.apple.com\/downloads\/quicktime\" target=\"_blank\">QuickTime Player<\/a> Audio Capture on MacBook Pro &#8230; <a title=\"Audio we captured\" href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/qrtr.aifc\" target=\"_blank\">audio<\/a> (s)ftp&#8217;ed to rjmprogramming.com.au &#8230; and &#8230;<\/li>\n<li>QuickTime Player Screen Capture on MacBook Pro &#8230; helped make the YouTube video upload above<\/li>\n<\/ul>\n<p>The PHP <a title=\"pie_chart.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php---------------GETME\" target=\"_blank\">code changes<\/a> to <a title=\"pie_chart.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php---------------GETME\" target=\"_blank\">pie_chart.php<\/a> &#8230; can be <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\">tried here<\/a>, in a generic sense, or to simulate what you see up above today, the prompt window entries required after clicking that last link, are, respectively &#8230;<\/p>\n<table style=\"width: 100%; table-layout: fixed;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"word-wrap: break-word;\">https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/qrtr.aifc;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0018.MOV;The Seasons Explained&amp;onclick=y&amp;emailto=rmetcalfe15@gmail.com&amp;emailsubject=The Seasons Explained via a Pie Chart<\/td>\n<\/tr>\n<tr>\n<td>Season<\/td>\n<\/tr>\n<tr>\n<td>Percentage<\/td>\n<\/tr>\n<tr>\n<td>Summer<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>Autumn<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>Winter<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>Spring<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p id=\"gmceart\">Previous relevant <a title=\"Google Map Chart Email Attachment Reply Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-map-chart-email-attachment-reply-tutorial\/\" target=\"_blank\">Google Map Chart Email Attachment Reply Tutorial<\/a> is shown below<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Map Chart Email Attachment Reply Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/mapmre.jpg\" alt=\"Google Map Chart Email Attachment Reply Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s <a title=\"Google Chart Email Attachment Reply Tutorial\" href=\"#gceart\">Google Chart Email Attachment Reply Tutorial<\/a> helped in some ways with today&#8217;s parallel email attachment reply logic we apply to the <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Map Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/map\" target=\"_blank\">Map Chart<\/a> interface today.<\/p>\n<p>This Map Chart interface is a whole independent story, because we cannot use the external Javascript we normally use.<\/p>\n<p>Along the way we realized that it could be good not to restrict the user to only appending &#8230;<\/p>\n<ul>\n<li>&amp;emailto=[emailee] &#8230; as well as &#8230;<\/li>\n<li>&amp;emailsubject=[EmailSubject]<\/li>\n<li>&amp;emailcc=[EmailCC]<\/li>\n<li>&amp;emailbcc=[EmailBCC]<\/li>\n<\/ul>\n<p>&#8230; when replying to emails, but also allow then to add this between data set array members. Why is that? Well, our experience with the Dams of the USA web application for example, it will be too hard to reach the end of the data easily within the prompt window textbox.<\/p>\n<p>We also tee up &#8220;latitude,longitude&#8221; fillins when the user chooses to follow the prompt advice and enter something like &#8230;<\/p>\n<p><code><br \/>\nSydney|Australia\/Sydney|+11|12:32<br \/>\n<\/code><\/p>\n<p>It already fills in for an entry such as &#8230;<\/p>\n<p><code><br \/>\nSydney<br \/>\n<\/code><\/p>\n<p>&#8230; for instance, teeing up with a place found within the <a title=\"PHP timezone_identifiers_list method information\" href=\"http:\/\/php.net\/manual\/en\/function.timezone-identifiers-list.php\" target=\"_blank\">PHP TimeZone information<\/a> list.<\/p>\n<p>Feel free to take a look at the PHP <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php---------------------------GETME\" target=\"_blank\">map.php<\/a>&#8216;s <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php---------------------------GETME\" target=\"_blank\">changes today<\/a>, and compare to the <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">live run<\/a> experience of establishing an emailee to communicate with, and to see what their download experience is.<\/p>\n<hr \/>\n<p id=\"gceart\">Previous relevant <a title=\"Google Chart Email Attachment Reply Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-chart-email-attachment-reply-tutorial\/\" target=\"_blank\">Google Chart Email Attachment Reply Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Chart Email Attachment Reply Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart_email_reply.jpg\" alt=\"Google Chart Email Attachment Reply Tutorial\" \/><\/a><\/p>\n<p>Today&#8217;s work did not pan out as planned, but that can almost be par for the course, when you &#8220;go interfacing&#8221;. You spend time nutting things out, then they interest, and that could be you for the day. The more gifted of us, half the day, perhaps. So today started in thought as a <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Map Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/map\" target=\"_blank\">Map Chart<\/a> interface day, but that is for the future, as we ended up (on the same theme as yesterday&#8217;s <a title=\"Google Chart Email Attachment Mobile Tutorial\" href=\"#gceamt\">Google Chart Email Attachment Mobile Tutorial<\/a>) picking on our &#8220;guinea pig&#8221; <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Pie Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/piechart\" target=\"_blank\">Pie Chart<\/a> interface because we started the day testing this scenario &#8230;<\/p>\n<p><code><br \/>\nPie Chart &amp;onclick=y &amp;emailto=rmetcalfe15@gmail.com method=POST to <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = file: scenario email attachment Pie Chart <a title=\"Google Charts select event help ... from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/events?hl=en\" target=\"_blank\"><i>select<\/i> event<\/a> (click) menu \"what shows as the prompt window default answer\" test<br \/>\n<\/code><\/p>\n<p>&#8230; hoping, and expecting to see the &amp;data= data &#8230; sad to say &#8220;no&#8221; though &#8230; earlier in the day that is &#8230; now you can &#8230; but actually, what the test showed was worse than that, it showed no &amp;data= data even for the <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = http: and https: scenarios &#8230; we hadn&#8217;t nailed that down yet, even on the &#8220;guinea pig&#8221; <span style=\"font-size: xx-small;\">&#8230; no &#8220;guinea pigs&#8221; nor &#8220;guinea fowl&#8221; were injured in the making of this blog post &#8230;<\/span>. In our defence, this is in no way trivial. Huh?! You might say <span style=\"font-size: xx-small;\">&#8230; you don&#8217;t say?<\/span>. Well, even for the <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = http: and https: scenarios what you are asking for here is &#8230;<\/p>\n<ul>\n<li>user selects &amp;onclick=y &amp;emailto=rmetcalfe15@gmail.com within answer to their Pie Chart title &#8230; no problems &#8230; can do &#8230; but &#8230;<\/li>\n<li>should they supply a huge &amp;data= data set answer (and we cheat with unit testing today setting the limit small) that our Javascript (function) &#8220;toolong&#8221; needs to <b>wrap around<\/b> any &#8230;<br \/>\n<code><br \/>\nlocation<span style=\"text-decoration: line-through;\" title=\"See more below\">.<\/span>href=<b>toolong(<\/b>[PieChartURL]<b>)<\/b>;<br \/>\n<\/code><br \/>\n&#8230; checking for [PieChartURL] lengths over this limit we talk about above (which when live reflects a URL length limit for the rjmprogramming.com.au web server (to avoid <a title=\"Errors\" href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes#4xx_Client_errors\" target=\"_blank\">error 414<\/a>)) and switching to the non-default method=POST HTML form navigation Javascript DOM&#8217;ed &#8220;on the fly&#8221; &#8230; which &#8230;<\/li>\n<li>sends email with (<i><a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = file: scenario version of<\/i>) HTML attachment in an email to rmetcalfe15@gmail.com (ie. moi) &#8230; the emailee (ie. moooiii) &#8230;<\/li>\n<li>opens the email in a web browser webmail URL access way to access emails for that emailee (on whatever device we are considering, which is just straight MacBook Pro today) &#8230; clicks the attachment to &#8230;<\/li>\n<li>open email attachment HTML to be presented with a very similar Pie Chart look as left off in <i><a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = http: or https: scenario &#8220;land&#8221;<\/i> &#8230; then &#8230;<\/li>\n<li>click a Pie Chart sector calling on our inhouse <a title=\"Google Charts select event help ... from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/events?hl=en\" target=\"_blank\"><i>select<\/i> event<\/a> (click) menu logic &#8230; closing eyes because &#8230;<\/li>\n<li>damn! &#8230; the default Javascript prompt window answer is not the &amp;data= data (ie. if it was we could just alter this default answer and shoot off another Pie Chart with that altered &amp;data= data set)<\/li>\n<\/ul>\n<p>So why wouldn&#8217;t that default prompt window answer not show? We knew. We&#8217;d forgotten to cater for the method=POST way of navigation, which in basic terms consists of &#8230;<\/p>\n<ol>\n<li>URL in web browser address bar (just like at the beginning of a session, and like <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = file: email attachment download and open scenarios) that has no ? nor &amp; arguments &#8230; the difference from a beginning URL being &#8230;<\/li>\n<li>behind the scenes, invisible to a client-only &#8220;solution&#8221; like for HTML\/Javascript\/CSS (and invisible to <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = file: email attachment download and open scenarios, also), where (server side) PHP (can see the) $_POST array filled in with data (that normally is too long to be suited to the PHP $_GET[] array equivalent of the client side use of URLs with ? and &amp; arguments)<\/li>\n<\/ol>\n<p>Where can these two worlds meet? In Javascript client side &#8220;land&#8221; they can meet, with no length issues, in a Javascript (global) var<span style=\"font-size: xx-small;\">iable<\/span> &#8230; that&#8217;s where. PHP &#8230;<\/p>\n<p><code><br \/>\nvar documentURL = document.URL , locationhref='', etodi='emailee', etodicc='EmailCC', etodibcc='EmailBCC', etodisubject='EmailSubject';<br \/>\ndocumentURL=documentURL.split('#')[0];<\/code><\/p>\n<p>&lt;?php<br \/>\nif (isset($_POST[&#8216;data&#8217;])) {<br \/>\n$appval=&#8221;&#8221;;<br \/>\n$appvald=&#8221;?&#8221;;<br \/>\nif (strlen($_SERVER[&#8216;QUERY_STRING&#8217;]) &gt; 1) $appvald=&#8221;&amp;&#8221;;<br \/>\nforeach ($_POST as $name =&gt; $val) {<br \/>\n$appval.=$appvald . htmlspecialchars($name) . &#8220;=&#8221; . str_replace(&#8220;+&#8221;,&#8221;%20&#8243;,urlencode(htmlspecialchars($val)));<br \/>\n$appvald=&#8221;&amp;&#8221;;<br \/>\n}<br \/>\necho &#8220;\\n documentURL=document.URL.split(&#8216;#&#8217;)[0] + \\&#8221;&#8221; . $appval . &#8220;\\&#8221;; \\n&#8221;;<br \/>\n}<\/p>\n<p>&#8230; can help derive this (global) var<span style=\"font-size: xx-small;\">iable<\/span> &#8220;documentURL&#8221; and &#8220;locationhref&#8221; useful in the <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = http: or https: scenarios but needing more to do within the realms of <i><a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = file: scenario version of<\/i> the logics, just before the email attachment HTML is formed, that HTML&#8217;s document.body.outerHTML is now wrapped as per <b>makeright(<\/b>document.body.outerHTML<b>)<\/b> &#8230;<\/p>\n<p><code><br \/>\nfunction makeright(inbo) {<br \/>\nif (typeof documentURL === \"undefined\") {<br \/>\ninbo=inbo;<br \/>\n} else {<br \/>\nif (documentURL.indexOf('&amp;') != -1 &amp;&amp; inbo.indexOf('&lt;bo' + 'dy') != -1) {<br \/>\nif (inbo.indexOf('&lt;\/bo' + 'dy&gt;') != -1) {<br \/>\ninbo=inbo.replace('&lt;\/bo' + 'dy&gt;', + '&lt;scr' + 'ipt type=\"text\/javascript\"&gt; function dub() { ' + \" documentURL=\\\"\" + documentURL + \"\\\"; if (documentURL.indexOf(\\\"&amp;data=\\\") != -1) { paramdata=(documentURL + \\\"&amp;\\\").split(\\\"&amp;data=\\\")[1].split(\\\"&amp;\\\")[0]; pardata=encodeURIComponent(paramdata); } } \" + ' &lt;\/scr' + 'ipt&gt;&lt;\/bo' + 'dy&gt;');<br \/>\n} else {<br \/>\ninbo+='&lt;scr' + 'ipt type=\"text\/javascript\"&gt; function dub() { ' + \" documentURL=\\\"\" + documentURL + \"\\\"; if (documentURL.indexOf(\\\"&amp;data=\\\") != -1) { paramdata=(documentURL + \\\"&amp;\\\").split(\\\"&amp;data=\\\")[1].split(\\\"&amp;\\\")[0]; pardata=encodeURIComponent(paramdata); } } \" + ' &lt;\/scr' + 'ipt&gt;';<br \/>\n}<br \/>\nif (inbo.split('&lt;bo' + 'dy')[1].split('&gt;')[0].indexOf(' onload=') == -1) {<br \/>\nreturn inbo.replace('&lt;bo' + 'dy', '&lt;bo' + 'dy onl' + \"oad=' setTimeout(dub,300); ' \");<br \/>\n} else if (inbo.indexOf('&lt;bo' + 'dy onl' + 'oad=\"') != -1) {<br \/>\nreturn inbo.replace('&lt;bo' + 'dy onl' + 'oad=\"', '&lt;bo' + 'dy onl' + 'oad=\" setTimeout(dub,300); ');<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nreturn inbo;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>&#8230; so that as the emailee downloads and opens their email attachment HTML it populates that same (global) var<span style=\"font-size: xx-small;\">iable<\/span> &#8220;documentURL&#8221; which is used in a new fashion in new Javascript prompt window answer analysis Javascript code as per (that used to use &#8220;document.URL&#8221; and &#8220;location.href&#8221; and we used not to have &#8220;toolong() wrapping&#8221;) &#8230;<\/p>\n<p><code><br \/>\nif (documentURL.indexOf(pardata) != -1 &amp;&amp; ans.indexOf('&amp;') == -1) {<br \/>\nlocationhref=toolong(documentURL.replace(pardata, ourencodeURIComponent(ans)));<br \/>\nif (locationhref != '#') { location.href=locationhref; } locationhref='';<br \/>\n} else if (documentURL.indexOf('data=') != -1 &amp;&amp; ans.indexOf('&amp;') != -1) {<br \/>\nvar vbn=documentURL.split('&amp;data=')[0] + ans.replace(ans.split('&amp;')[0],'').replace(\/\\'\/g,'`') + '&amp;data=' + documentURL.split('&amp;data=')[1];<br \/>\nlocationhref=toolong(vbn.replace(vbn.split('data=')[1].split('&amp;')[0], ourencodeURIComponent(('' + ans.split('&amp;')[0]))));<br \/>\nif (locationhref != '#') { location.href=locationhref; } locationhref='';<br \/>\n} else if (documentURL.indexOf(pardata) != -1) {<br \/>\nlocationhref=toolong(documentURL.replace(pardata, ourencodeURIComponent(ans)));<br \/>\nif (locationhref != '#') { location.href=locationhref; } locationhref='';<br \/>\n} else if (documentURL.indexOf('data=') != -1) {<br \/>\nlocationhref=toolong(documentURL.replace(documentURL.split('data=')[1].split('&amp;')[0], ourencodeURIComponent(('' + ans))));<br \/>\nif (locationhref != '#') { location.href=locationhref; } locationhref='';<br \/>\n}<br \/>\n<\/code><\/p>\n<p>&#8230; we hope ensuring that var<span style=\"font-size: xx-small;\">iable<\/span> &#8220;paramdata&#8221; is populated by the &amp;data= data ready to be the default <a title=\"Google Charts select event help ... from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/events?hl=en\" target=\"_blank\"><i>select<\/i> event<\/a> (click) menu logic&#8217;s prompt window&#8217;s default answer. But it is not just that &#8220;getting back to square one&#8221; for our &#8220;guinea pig&#8221;. Moving forward, the implication of having this in place is very good, because we can now go forward allowing the user to append their own &#8230;<\/p>\n<ul>\n<li>&amp;emailto=[emailee] &#8230; as well as &#8230;<\/li>\n<li>&amp;emailsubject=[EmailSubject]<\/li>\n<li>&amp;emailcc=[EmailCC]<\/li>\n<li>&amp;emailbcc=[EmailBCC]<\/li>\n<\/ul>\n<p>&#8230; to user answers (as we show you a bit of with today&#8217;s <a title=\"tutorial picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart_email_reply.jpg\" target=\"_blank\">tutorial picture<\/a>), meaning that the emailee could reply to the emailer with a new email subject and a new emailto (more than likely), perhaps with an adjusted Pie Chart data set as well, back to the emailer (or someone else) in a conversational web application capability (for any of <a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> file: or http: or https: scenarios).<\/p>\n<p>PHP and Javascript code wise &#8230;<\/p>\n<ul>\n<li>The <a title=\"pie_chart.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php--------------GETME\" target=\"_blank\">code changes<\/a> to <a title=\"pie_chart.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php--------------GETME\" target=\"_blank\">pie_chart.php<\/a> &#8230; can be <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\">tried here<\/a> &#8230; calls on &#8230;<\/li>\n<li>generic external Javascript <a title=\"gchartgen.js\" href=\"http:\/\/www.rjmprogramming.com.au\/gchartgen.js-----------GETME\" target=\"_blank\">gchartgen.js<\/a> which changed for this work, in <a title=\"gchartgen.js\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/gchartgen.js-----------GETME\" target=\"_blank\">this way<\/a> &#8230; for those PHP web applications that don&#8217;t call gchartgen.js they make their own parallel coding arrangements<\/li>\n<\/ul>\n<p>From little guinea pigs, <a title=\"?\" href=\"https:\/\/www.youtube.com\/watch?v=ZBKk3idJUjE\" target=\"_blank\">bigger guinea pigs<\/a> grow?!<\/p>\n<hr \/>\n<p id=\"gceamt\">Previous relevant <a title=\"Google Chart Email Attachment Mobile Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-chart-email-attachment-mobile-tutorial\/\" target=\"_blank\">Google Chart Email Attachment Mobile Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Chart Email Attachment Mobile Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map_file_protocol_issue_ipad.jpg\" alt=\"Google Chart Email Attachment Mobile Tutorial\" \/><\/a><\/p>\n<p>We&#8217;re working towards trying to make the HTML coming off an email attachment (of a mobile device&#8217;s web browser&#8217;s webmail URL such as https:\/\/gmail.com on Safari on an iPad) be of some comparability in terms of its functionality as the original webpage, continuing on from yesterday&#8217;s <a title=\"Google Chart Email Attachment Post Tutorial\" href=\"#gceapt\">Google Chart Email Attachment Post Tutorial<\/a>. There are issues. Things to consider are &#8230;<\/p>\n<ul>\n<li>iOS devices do not regard an HTML form target=_blank (and it seems, other target values) &#8230; when in a &#8230;<\/li>\n<li><a title=\"location.protocol information from w3schools\" href=\"https:\/\/www.w3schools.com\/jsref\/prop_loc_protocol.asp\" target=\"_blank\">location.protocol<\/a> = file: (ie. a local file system access) scenario to be wise, shall we say &#8230; and &#8230;<\/li>\n<li>the &#8220;pins&#8221; of our <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Map Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/map\" target=\"_blank\">Map Chart<\/a> interface don&#8217;t show in this scenario either<\/li>\n<\/ul>\n<p>For this goal we have, we needed to break large data sets up into subsets whose URL length would be alright with the limits up at the rjmprogramming.com.au domain web server.<\/p>\n<p>Funnily enough, using Google Chrome web browser on an iPad did not change the issues above.<\/p>\n<p>Take a look at the PHP <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php--------------------------GETME\" target=\"_blank\">map.php<\/a>&#8216;s <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php--------------------------GETME\" target=\"_blank\">changes today<\/a>, and compare to the <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">live run<\/a> experience of establishing an emailee to communicate with, and to see what their download experience is.<\/p>\n<hr \/>\n<p id=\"gceapt\">Previous relevant <a title=\"Google Chart Email Attachment Post Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-chart-email-attachment-post-tutorial\/\" target=\"_blank\">Google Chart Email Attachment Post Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/other_side_of_the_world.htm\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Chart Email Attachment Post Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/pie_chart_email_attachment_post.jpg\" alt=\"Google Chart Email Attachment Post Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s <a title=\"Google Chart Email Attachment Tutorial\" href=\"#gceat\">Google Chart Email Attachment Tutorial<\/a> intimated &#8230;<\/p>\n<blockquote cite=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-chart-email-attachment-tutorial\/\"><p>For the $_POST[] scenario, we&#8217;ll need to chip away at each parent Google Chart interface PHP web application code. Home and hosed?! Not yet, still fixing the leaks!<\/p><\/blockquote>\n<p>&#8230; and so that was a lot of today&#8217;s work for <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> interfacings, here &#8230;<\/p>\n<ul>\n<li>Pie Chart<\/li>\n<li>Line Chart<\/li>\n<li>Area Chart<\/li>\n<li>Bar Chart<\/li>\n<li>Column Chart<\/li>\n<li>Geo Chart<\/li>\n<li>Intensity Chart<\/li>\n<li>Map Chart<\/li>\n<\/ul>\n<p>&#8230; in general terms revolving around the addition of the following Javascript (via PHP as well) code placed before a &lt;\/script&gt; tag &#8230;<\/p>\n<p><code><br \/>\nfunction preclickforemail() {<br \/>\n&lt;?php<br \/>\nif (isset($_POST['emailto'])) {<br \/>\nif (strpos(urldecode($_POST['emailto']), '@') !== false) {<br \/>\nif (isset($_POST['emailto'])) echo \"\\n if (document.getElementById('theto') &amp;&amp; yesgo) { document.getElementById('theto').value='\" . urldecode($_POST['emailto']) . \"'; } \\n\";<br \/>\nif (isset($_POST['emailsubject'])) echo \"\\n if (document.getElementById('thesubject') &amp;&amp; yesgo) { document.getElementById('thesubject').innerHTML=\\\"\" . urldecode($_POST['emailsubject']) . \"\\\"; } \\n\";<br \/>\nif (isset($_POST['emailcc'])) echo \"\\n if (document.getElementById('thecc') &amp;&amp; yesgo) { document.getElementById('thecc').value='\" . urldecode($_POST['emailcc']) . \"'; } \\n\";<br \/>\nif (isset($_POST['emailbcc'])) echo \"\\n if (document.getElementById('thebcc') &amp;&amp; yesgo) { document.getElementById('thebcc').value='\" . urldecode($_POST['emailbcc']) . \"'; } \\n\";<br \/>\necho \"\\n<br \/>\nif (yesgo) {<br \/>\nyesgo3='MAILTO:\" . urldecode($_POST['emailto']) . \"';<br \/>\nnogo3='MAILTO:fillin.email@address';<br \/>\nyesgo2='\\\"' + document.URL.split('#')[0].split('?')[0].substring(0,10) + document.URL.split('#')[0].split('?')[0].substring(10).split('\/')[0] + '\/PHP\/butsel.php';<br \/>\nnogo2='\\\"\/\/www.rjmprogramming.com.au\/PHP\/butsel.php';<br \/>\nif (document.getElementById('another')) {<br \/>\nyesgo=document.getElementById('another').href=document.URL.split('#')[0].split('?')[0];<br \/>\nnogo='.\/' + document.URL.split('#')[0].split('?')[0].split('\/')[eval(-1 + document.URL.split('#')[0].split('?')[0].split('\/').length)];<br \/>\n}<br \/>\n}<br \/>\n\\n \";<br \/>\necho \"\\n if (clickforemail) { clickforemail(); } else if (document.getElementById('thesemail')) { document.getElementById('thesemail').click(); } \\n\";<br \/>\n}<br \/>\n}<br \/>\n?&gt;<br \/>\n}<\/code><\/p>\n<p>&lt;?php<br \/>\nif (isset($_POST[&#8217;emailto&#8217;])) {<br \/>\nif (strpos(urldecode($_POST[&#8217;emailto&#8217;]), &#8216;@&#8217;) !== false) {<br \/>\necho &#8220;\\n setTimeout(preclickforemail,4000); \\n&#8221;;<br \/>\n}<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>You can see changes for via the report <a style=\"word-wrap: break-word;\" href=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29\" target=\"_blank\">HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29&#8242;&gt;HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29<\/a> below &#8230;<\/p>\n<p><iframe loading=\"lazy\" style=\"height: 600px; width: 100%;\" src=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=PHP\/*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29\" width=\"300\" height=\"150\"><\/iframe><\/p>\n<p>&#8230; and it was with the last of these that the implications for additional &#8220;sharing email&#8221; possibilities opens up, so we not only changed the PHP &#8220;parent&#8221; of the interfacings above but quite a few applications using that Map Chart, above, for lots of posted data. Think (the web applications of) &#8230;<\/p>\n<ul>\n<li><a title=\"PHP Wikipedia Australian List Integration Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/php-wikipedia-australian-list-integration-tutorial\/\" target=\"_blank\">PHP Wikipedia Australian List Integration Tutorial<\/a><\/li>\n<li><a title=\"Dams in the United States Timeline Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/dams-in-the-united-states-timeline-tutorial\/\" target=\"_blank\">Dams in the United States Timeline Tutorial<\/a><\/li>\n<li><a title=\"Daylight Saving Time TimeZone Emoji Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/daylight-saving-time-timezone-emoji-tutorial\/\" target=\"_blank\">Daylight Saving Time TimeZone Emoji Tutorial<\/a><\/li>\n<li><a title=\"Other Side of the World Google Chart Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/other-side-of-the-world-google-chart-tutorial\/\" target=\"_blank\">Other Side of the World Google Chart Tutorial <\/a><\/li>\n<li><\/li>\n<\/ul>\n<p>&#8230; where a combination of HTML select element new options and new HTML input type=button elements helps with the email (via HTML attachment) interfacing. The real practical use, though, we would contend, is to use these tools to aid with map presentations and explanations via a series of emails to and from<br \/>\nyour emailee.<\/p>\n<p>You can see changes for via the report <a style=\"word-wrap: break-word;\" href=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=[HP][TH][MP]*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29\" target=\"_blank\">HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=[HP][TH][MP]*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29<\/a> below &#8230;<\/p>\n<p><iframe loading=\"lazy\" style=\"height: 600px; width: 100%;\" src=\"HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&amp;dfilespec=[HP][TH][MP]*\/*.*GETME&amp;dmdates=2018-04-28&amp;dmdateb=2018-04-29\" width=\"300\" height=\"150\"><\/iframe><\/p>\n<hr \/>\n<p id=\"gceat\">Previous relevant <a title=\"Google Chart Email Attachment Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-chart-email-attachment-tutorial\/\" target=\"_blank\">Google Chart Email Attachment Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Chart Email Attachment Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart_email_attachment.jpg\" alt=\"Google Chart Email Attachment Tutorial\" \/><\/a><\/p>\n<p><a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> chart data is worth sharing, and we share with email using our interfacing PHP web applications. There are a few reasons for today&#8217;s additional email &#8220;attachment&#8221; design functionality today (augmenting yesterday&#8217;s <a title=\"Google Chart Pie Chart Background Image Tutorial\" href=\"#gcpcbit\">Google Chart Pie Chart Background Image Tutorial<\/a>), that we think are improvements to the existing &#8220;link in an email (to the RJM Programming domain URL)&#8221; email arrangements &#8230;<\/p>\n<ul>\n<li>an attachment in an email can snapshot the scenario of the emailer in a more direct way &#8230; and &#8230;<\/li>\n<li>downloading it provides the snapshot on the emailee&#8217;s local system, and\/or on their local web browser, potentially stored locally for as long as the emailee requires &#8230;<\/li>\n<li>is a more dynamic sharing response &#8230;<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/B9UBGAOWm_I\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/li>\n<li>can be used to handle the larger data sets, coming up more often now, with clipboard and image and CSV data ideas lately<\/li>\n<\/ul>\n<p>We arrange these changes at the &#8230;<\/p>\n<ul>\n<li>generic external Javascript <a title=\"gchartgen.js\" href=\"http:\/\/www.rjmprogramming.com.au\/gchartgen.js---------GETME\" target=\"_blank\">gchartgen.js<\/a> which changed for this work, in <a title=\"gchartgen.js\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/gchartgen.js---------GETME\" target=\"_blank\">this way<\/a> &#8230; for those PHP web applications that don&#8217;t call gchartgen.js they make their own parallel coding arrangements &#8230; and &#8230;<\/li>\n<li>generic helper (for emailing) PHP <a title=\"webviewemail.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/webviewemail.php---GETME\" target=\"_blank\">webviewemail.php<\/a> which changed for this work, in <a title=\"webviewemail.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/webviewemail.php---GETME\" target=\"_blank\">this way<\/a><\/li>\n<\/ul>\n<p>In the simplest scenario, we have a very simple arrangement to make in the &#8220;parent&#8221; code of each Google Chart interfacing, that being the verification that it is ready by having exist before &lt;\/body&gt; &#8230;<\/p>\n<p><code><br \/>\n&lt;div id=\"thedivemail\"&gt;&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p>The email, with HTML attachment, navigation, as required, is placed into the <i>innerHTML<\/i> of this HTML div element &#8230;<\/p>\n<ul>\n<li>method=POST &#8230; to handle large or small data sets &#8230;<\/li>\n<li>target=theiemail &#8230; which is a reference to &#8230;<br \/>\n<code><br \/>\n&lt;iframe name=theiemail id=theiemail style='display:none;' src='..\/webviewemail.php'&gt;&lt;\/iframe&gt;<br \/>\n<\/code><\/li>\n<li>onsubmit=&#8221;<br \/>\n<code><br \/>\nif (document.getElementById('theto').value.indexOf('@') == -1) {<br \/>\nreturn false;<br \/>\n} else {<br \/>\nfixanother();<br \/>\nif (document.getElementById('thesubject').value == '' || document.getElementById('thesubject').innerHTML == '') {<br \/>\ndocument.getElementById('thesubject').value='Google Chart Interfacing via RJM Programming';<br \/>\n}<br \/>\nvar hcis='&lt;!DOCTYPE HTML PUBLIC ' + String.fromCharCode(34) + '-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN' + String.fromCharCode(34) + '&gt;&lt;html&gt;&lt;\/head&gt;' + document.head.innerHTML + document.body.outerHTML.split('&lt;div id=' + String.fromCharCode(34) + 'thedi' + 'vemail' + String.fromCharCode(34) + '&gt;')[0] + '&lt;\/body&gt;&lt;\/html&gt;';<br \/>\ndocument.getElementById('thehtml').value=hcis.replace(\/\\+\/g,'%2b').replace(nogo,yesgo).replace(emailtitle,'');<br \/>\nreturn true;<br \/>\n}<br \/>\n<\/code><br \/>\n&#8220;<\/li>\n<\/ul>\n<p>&#8230; and the timing of populating that HTML textarea &#8216;thehtml&#8217; value is after the <i>client<\/i> document.body <i>onload<\/i> event of the complete Google Chart, and this is automatic when gchartgen.js is getting URL ? and &amp; parameters in a $_GET[] scenario. For the $_POST[] scenario, we&#8217;ll need to chip away at each parent Google Chart interface PHP web application code. Home and hosed?! Not yet, still fixing the leaks!<\/p>\n<hr \/>\n<p id=\"gcpcbit\">Previous relevant <a title=\"Google Chart Pie Chart Background Image Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-chart-pie-chart-background-image-tutorial\/\" target=\"_blank\">Google Chart Pie Chart Background Image Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Chart Pie Chart Background Image Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart_bg.jpg\" alt=\"Google Chart Pie Chart Background Image Tutorial\" \/><\/a><\/p>\n<p>We have another potential use for the clipboard, adding onto the recent <a title=\"Google Pie Chart via Clipboard Co-ordinates Tutorial\" href=\"#gpccc-t\">Google Pie Chart via Clipboard Co-ordinates Tutorial<\/a> data set usage, today. We allow the user to change the default white background to the <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Pie Charts\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/piechart\" target=\"_blank\">Pie Chart<\/a> be tailored to be either &#8230;<\/p>\n<ul>\n<li>image URL &#8230; or &#8230;<\/li>\n<li>image data URI (most likely entered via the clipboard)<\/li>\n<\/ul>\n<p>&#8230; as a prefixing option when they enter in the Title of their Pie Chart.<\/p>\n<p>In order to achieve this, we were helped enormously by &#8230;<\/p>\n<ul>\n<li><a title=\"Useful link\" href=\"https:\/\/stackoverflow.com\/questions\/8828076\/how-can-i-hack-a-background-image-into-google-chart-tools-dynamic-javascript-s\" target=\"_blank\">this very useful link<\/a>, thanks &#8230; the crux of it being to get to put &#8230;<br \/>\n<code><br \/>\nbackgroundColor: 'none'<br \/>\n<\/code><br \/>\n&#8230; into the Pie Chart options &#8230; and some previous help we got when we presented &#8230;<\/li>\n<li><a title=\"Column Intelligence Primer Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/column-intelligence-primer-tutorial\/\" target=\"_blank\">Column Intelligence Primer Tutorial<\/a>&#8216;s &#8220;Did you know?&#8221; section reference to <a title=\"Useful link\" href=\"https:\/\/stackoverflow.com\/questions\/7241341\/can-i-set-an-opacity-only-to-the-background-image-of-a-div\" target=\"_blank\">incredibly useful link<\/a>&#8216;s advice on our &#8230;<br \/>\n<blockquote cite=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/column-intelligence-primer-tutorial\/\"><p>wish to apply opacity just to background image, but not the corresponding textual data (or other types) that is the primary content of that HTML element<\/p><\/blockquote>\n<\/li>\n<\/ul>\n<p>You can see a video of some of the practicalities to usage on an iPad mobile app version in the <a title=\"YouTube\" href=\"https:\/\/youtube.com\">YouTube<\/a> video below &#8230;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/6N55NeUfoBw\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Because data URIs are an option here, too, you will see in the <a title=\"pie_chart.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php------------GETME\" target=\"_blank\">code changes<\/a> to <a title=\"pie_chart.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php------------GETME\" target=\"_blank\">pie_chart.php<\/a> the need, now, to cater for the switch of HTML form navigation from &#8230;<\/p>\n<ul>\n<li>method=GET (the default) &#8230; to &#8230;<\/li>\n<li>method=POST (when the URL becomes too long)<\/li>\n<\/ul>\n<p>&#8230; and that new bit of logic is slated home to the generic external Javascript we have set aside for Google Charts work called <a title=\"gchartgen.js\" href=\"http:\/\/www.rjmprogramming.com.au\/gchartgen.js--------GETME\" target=\"_blank\">gchartgen.js<\/a> which changed for this work, in <a title=\"gchartgen.js\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/gchartgen.js--------GETME\" target=\"_blank\">this way<\/a>.<\/p>\n<p>Maybe you can see how to use this feature yourself, and if that is the case you can try this <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\">live run<\/a> link.<\/p>\n<hr \/>\n<p id=\"gpccc-t\">Previous relevant <a title=\"Google Pie Chart via Clipboard Co-ordinates Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-pie-chart-via-clipboard-co-ordinates-tutorial\/\" target=\"_blank\">Google Pie Chart via Clipboard Co-ordinates Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Pie Chart via Clipboard Co-ordinates Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart_clipboard.jpg\" alt=\"Google Pie Chart via Clipboard Co-ordinates Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s <a title=\"Google Map Chart via Clipboard Co-ordinates Tutorial\" href=\"#gmccc-t\">Google Map Chart via Clipboard Co-ordinates Tutorial<\/a> was a good precursor to today&#8217;s work interfacing this time to the <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Pie Charts\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/piechart\" target=\"_blank\">Pie Chart<\/a>.<\/p>\n<p>With this work, we&#8217;ve started refining the clipboard &#8220;smarts&#8221; by looking for linefeeds &#8230; in Javascript thoughts &#8230;<\/p>\n<p><code><br \/>\nString.fromCharCode(10)<br \/>\n<\/code><\/p>\n<p>&#8230; and as the data exits the Javascript prompt window on its way, before navigating back to the PHP itself, we can check for too many fields to the right of the data, and truncate the clipboard data, as necessary. Along the way, we may be able to reject any header records with this same approach. We can check for no numerical fields here. Business specific logic can be applied here too. With a Pie Chart, the original data, or the user, may be tempted to place &#8220;%&#8221; after the numerical data, and we can take the opportunity to weed these out. Also, with the character data, it may be delimited by a double quote (ie. within &#8220;&#8221;), and with this knowledge in mind, we may be able to weed out confusing additional commas that could confuse us with the clipboard comma separated value format of the data.<\/p>\n<p>The lesson here, is to &#8220;validate early&#8221; and it could be good to &#8220;validate often&#8221; as well. Real data can be strange indeed.<\/p>\n<p><code><br \/>\nfunction dlp(thisris) {<br \/>\nif (thisris != null) {<br \/>\nvar commacount=thisris.toLowerCase().replace(\/\\&lt;\\\/td\\&gt;\/g,' , ').indexOf(',');<br \/>\nif (thisris.toLowerCase().replace('https:','http:').indexOf('http:') == 0) {<br \/>\nfti=true;<br \/>\nallowed=true;<br \/>\ndatac=thisris;<br \/>\n} else if (commacount &gt;= 0) {<br \/>\nvar thatris=thisris.replace(\/\\ \\\"\/g,String.fromCharCode(10) + '\"').replace(\/\\&lt;tr\\&gt;\/g,'').replace(\/\\&lt;\\\/td\\&gt;\\&lt;td\\&gt;\/g,',').replace(\/\\&lt;\\\/tr\\&gt;\/g,String.fromCharCode(10)).replace(\/\\&lt;\\\/td\\&gt;\/g,',').replace(\/\\,\\,\/g,',').replace(\/\\,\\,\/g,',').replace(',' + String.fromCharCode(10),String.fromCharCode(10));<br \/>\nvar zisok=true, fldq=thatris.split(',');<br \/>\nvar pielines=thatris.split(String.fromCharCode(10));<br \/>\nif ((fldq[0].replace('\"','').trim() + ' ').substring(0,1) &lt; '0' || (fldq[0].replace('\"','').trim() + ' ').substring(0,1) &gt; '9') {<br \/>\nif ((fldq[eval(-1 + fldq.length)].replace('\"','').trim() + ' ').substring(0,1) &lt; '0' || (fldq[eval(-1 + fldq.length)].replace('\"','').trim() + ' ').substring(0,1) &gt; '9') {<br \/>\nzisok=false;<br \/>\n}<br \/>\n}<br \/>\nif (!zisok &amp;&amp; pielines.length &gt; 1) {<br \/>\nfldq=pielines[1].split(',');<br \/>\nzisok=true;<br \/>\nif ((fldq[0].replace('\"','').trim() + ' ').substring(0,1) &lt; '0' || (fldq[0].replace('\"','').trim() + ' ').substring(0,1) &gt; '9') {<br \/>\nif ((fldq[eval(-1 + fldq.length)].replace('\"','').trim() + ' ').substring(0,1) &lt; '0' || (fldq[eval(-1 + fldq.length)].replace('\"','').trim() + ' ').substring(0,1) &gt; '9') {<br \/>\nzisok=false;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nif (zisok) {<br \/>\nwhile (thatris.indexOf(String.fromCharCode(10)) != -1) {<br \/>\nvar inpies, pied='';<br \/>\nthatris='';<br \/>\nvar sthatris='';<br \/>\nfor (var ipie=0; ipie&lt;pielines.length; ipie++) {<br \/>\ninpies=pielines[ipie].split(',');<br \/>\nif (inpies.length &gt; 1) {<br \/>\nif ((inpies[0].trim() + \" \").substring(0,1) == '\"' &amp;&amp; (inpies[1].trim() + \" \").substring(0,1) == '\"') {<br \/>\nsthatris=pied + inpies[0].trim().substring(1).split('\"')[0].trim().replace('%','').replace(',','').replace(',','') + ',' + inpies[1].trim().substring(1).split('\"')[0].trim().replace('%','').replace(',','').replace(',','');<br \/>\n} else if ((inpies[0].trim() + \" \").substring(0,1) == '\"') {<br \/>\nsthatris=pied + inpies[0].trim().substring(1).split('\"')[0].trim().replace('%','').replace(',','').replace(',','') + ',' + inpies[1].trim().replace('%','').replace('\"','');<br \/>\n} else if ((inpies[1].trim() + \" \").substring(0,1) == '\"') {<br \/>\nsthatris=pied + inpies[0].trim().replace('%','') + ',' + inpies[1].trim().substring(1).split('\"')[0].trim().replace('%','').replace(',','').replace(',','');<br \/>\n} else {<br \/>\nsthatris=pied + inpies[0].trim().replace('%','') + ',' + inpies[1].trim().replace('%','').replace('\"','');<br \/>\n}<br \/>\ninpies=sthatris.replace(pied,'').split(',');<br \/>\nif (((inpies[0].trim() + \" \").substring(0,1) &gt;= '0' &amp;&amp; (inpies[0].trim() + \" \").substring(0,1) &lt;= '9') || ((inpies[1].trim() + \" \").substring(0,1) &gt;= '0' &amp;&amp; (inpies[1].trim() + \" \").substring(0,1) &lt;= '9')) {<br \/>\nthatris+=sthatris;<br \/>\npied=',';<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nthatris=thatris.replace(\/\\,\\,\/g,',');<br \/>\nfti=true;<br \/>\nallowed=true;<br \/>\ndatac='http;' + thatris;<br \/>\nthisris='http;' + thatris;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nreturn thisris;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>Our PHP Google Chart Pie Chart interface is <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php-----------GETME\" target=\"_blank\">pie_chart.php<\/a> changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php-----------GETME\" target=\"_blank\">this way<\/a> for today&#8217;s work, that you can try yourself at this <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\">live run<\/a> link.<\/p>\n<p>Our PHP helper <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php----------GETME\" target=\"_blank\">csv.php<\/a> changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php----------GETME\" target=\"_blank\">this way<\/a> for today&#8217;s work.<\/p>\n<p>If you want to recreate the conditions as shown in today&#8217;s <a title=\"Tutorial picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart_clipboard.jpg\" target=\"_blank\">tutorial picture<\/a> &#8230;<\/p>\n<ol>\n<li>copy the contents below &#8230;<br \/>\n<iframe loading=\"lazy\" style=\"width: 100%; height: 390px;\" title=\"Copy this\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/ChartEditor\/intensity_chart.csv_GETME\" width=\"300\" height=\"150\"><\/iframe><br \/>\n&#8230;<\/li>\n<li>and paste into the 4th prompt (window&#8217;s text) box of the Google Charts Pie Chart interfacing <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php\" target=\"_blank\">live run<\/a> link<\/li>\n<li>click OK button &#8230; P.S. On first prompt, appending <i>&amp;onclick=y<\/i> to what you want as a Pie Chart title will work the Pie Chart&#8217;s select event logic we harness with this interfacing<\/li>\n<li>&#8230; or, if you are feeling lazy &#8230;<br \/>\n<a style=\"word-wrap: break-word;\" title=\"https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php?title=Country%20Populations&amp;onclick=y&amp;task=Country&amp;desc=Populations&amp;data=,%20[~https;China,1347000000,India,1241000000,United%20States,312000000,Indonesia,238000000,Brazil,197000000,Pakistan,177000000,Nigeria,162000000,Bangladesh,151000000,Russia,143000000,Japan,128000000,Mexico,115000000,Philippines,96000000,Vietnam,88000000,Ethiopia,87000000,Germany,81800000,Egypt,82600000,Iran,78000000,Turkey,74000000,Thailand,69500000,Congo,67800000,France,63300000,United%20Kingdom,62700000,Italy,60800000~,100]\" href=\"https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php?title=Country%20Populations&amp;onclick=y&amp;task=Country&amp;desc=Population&amp;data=,%20[~https;China,1347000000,India,1241000000,United%20States,312000000,Indonesia,238000000,Brazil,197000000,Pakistan,177000000,Nigeria,162000000,Bangladesh,151000000,Russia,143000000,Japan,128000000,Mexico,115000000,Philippines,96000000,Vietnam,88000000,Ethiopia,87000000,Germany,81800000,Egypt,82600000,Iran,78000000,Turkey,74000000,Thailand,69500000,Congo,67800000,France,63300000,United%20Kingdom,62700000,Italy,60800000~,100]\" target=\"_blank\">https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/pie_chart.php?title=Country%20Populations&amp;onclick=y&amp;task=Country&amp;desc=Populations&amp;data=,%20[~https;China,1347000000,India,1241000000,United%20States,312000000,Indonesia,238000000,Brazil,197000000,Pakistan,177000000,Nigeria,162000000,Bangladesh,151000000,Russia,143000000,Japan,128000000,Mexico,115000000,Philippines,96000000,Vietnam,88000000,Ethiopia,87000000,Germany,81800000,Egypt,82600000,Iran,78000000,Turkey,74000000,Thailand,69500000,Congo,67800000,France,63300000,United%20Kingdom,62700000,Italy,60800000~,100]<\/a><\/li>\n<\/ol>\n<hr \/>\n<p id=\"gmccc-t\">Previous relevant <a title=\"Google Map Chart via Clipboard Co-ordinates Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-map-chart-via-clipboard-co-ordinates-tutorial\/\" target=\"_blank\">Google Map Chart via Clipboard Co-ordinates Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Map Chart via Clipboard Co-ordinates Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/mapclipboard.jpg\" alt=\"Google Map Chart via Clipboard Co-ordinates Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s <a title=\"Google Map Chart via URL Co-ordinates Tutorial\" href=\"#gmcurlc-t\">Google Map Chart via URL Co-ordinates Tutorial<\/a> added functionality directed towards a &#8230;<\/p>\n<ul>\n<li>secondary data source, that you access &#8230; but today we are going to extend that functionality to support a &#8230;<\/li>\n<li>primary data source that you enter a comma separated values list for the [place,lat,long] data sets (yourself, via the computer keyboard) &#8230; as well as a &#8230;<\/li>\n<li>&#8220;subset&#8221; of a secondary data source, that you access, more than likely, using you computer device&#8217;s <i>clipboard<\/i><\/li>\n<\/ul>\n<p>The invention of the <a title=\"Clipboard information from Wikipedia ... thanks\" href=\"http:\/\/en.wikipedia.org\/wiki\/Clipboard_%28computing%29\" target=\"_blank\"><i>clipboard<\/i><\/a> was a brilliant step. Before it, we were so beholden to programmers to get tailored work done, and though it&#8217;s sad that so many of you get on without us (cough, cough) &#8230; well &#8230; we were being overworked anyway &#8230; and there was that project to &#8220;make the morning breakfast coffee before you even know you wanted it&#8221; to get onto &#8230; finally.<\/p>\n<p>Perhaps we all forget now what the <i>clipboard<\/i> has meant, for so many of us. It is the freedom of &#8220;copy and paste&#8221;, the individualism tool of content creation.<\/p>\n<p>Yesterday&#8217;s functionality idea is a case in point. &#8220;Secondary data sources&#8221; are, by definition, out of your control, as to what the content of a web page is. Notice how, yesterday, we made some content that was (s)ftp transferred over to the rjmprogramming.com.au domain via &#8230; yes, you guessed it &#8230;<\/p>\n<ol>\n<li>me copying (off the <a title=\"Co-ordinates, thanks\" href=\"https:\/\/www.mapbox.com\/help\/troubleshoot-csv\/#example\" target=\"_blank\">mapbox.com<\/a> website, thanks, as <b>part<\/b> of the contents of a webpage) &#8230; then &#8230;<\/li>\n<li>pasting that content into a csv text file on the MacBook Pro computer we&#8217;re using (locally) &#8230; and then &#8230;<\/li>\n<li>(s)ftp transferred over to rjmprogramming.com.au domain to represent a &#8230;<\/li>\n<li>URL usable within the functionality of our <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Map Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/map\" target=\"_blank\">Map Chart<\/a> interface we host here as the PHP <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php-------------------------GETME\" target=\"_blank\">map.php<\/a>&#8216;s <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">live run<\/a> link<\/li>\n<\/ol>\n<p>But there you are, an intelligent human, able to determine for yourself the data you are interested in (quite often not the entire contents of a webpage, as yesterday&#8217;s work is ideally asking for), so that being the case, the <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php-------------------------GETME\" target=\"_blank\">map.php<\/a> modifications to PHP code we&#8217;ve made today, make it possible for (the much simpler) &#8230;<\/p>\n<ol>\n<li>me copying (off the <a title=\"Co-ordinates, thanks\" href=\"https:\/\/www.mapbox.com\/help\/troubleshoot-csv\/#example\" target=\"_blank\">mapbox.com<\/a> website, thanks, as <b>part<\/b> of the contents of a webpage) &#8230; then &#8230;<\/li>\n<li>pasting that content within the functionality of our <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Map Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/map\" target=\"_blank\">Map Chart<\/a> interface we host here as the PHP <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php-------------------------GETME\" target=\"_blank\">map.php<\/a>&#8216;s <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">live run<\/a> link<\/li>\n<\/ol>\n<p>If you have the <i>clipboard<\/i> as your friend, your time around computers becomes so much more enjoyable, and flexible, and within <i>your<\/i> control. We, as programmers, need to think, on occasions, or encourage, on occasions, how the user is likely to use the clipboard, in conjunction with our applications. As you might surmise, that can be a pretty unpredictable &#8220;artform&#8221;.<\/p>\n<p>Our PHP helper <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php---------GETME\" target=\"_blank\">csv.php<\/a> changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php---------GETME\" target=\"_blank\">this way<\/a> for today&#8217;s work.<\/p>\n<hr \/>\n<p id=\"gmcurlc-t\">Previous relevant <a title=\"Google Map Chart via URL Co-ordinates Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-map-chart-via-url-co-ordinates-tutorial\/\" target=\"_blank\">Google Map Chart via URL Co-ordinates Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Google Map Chart via URL Co-ordinates Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/mapmore.jpg\" alt=\"Google Map Chart via URL Co-ordinates Tutorial\" \/><\/a><\/p>\n<p>The last blog posting referring to the <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Chart<\/a> <a title=\"Google Chart Map Chart information from Google\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/map\" target=\"_blank\">Map Chart<\/a> interface we host here was with <a title=\"Emoji Name Search Map Chart Weather Tutorial\" href=\"#ensmcwt\">Emoji Name Search Map Chart Weather Tutorial<\/a>, but today we are presenting a major functionality addition with implications for other Google Chart interfacing PHP codesets here. We are allowing the user at the second prompt to take the data from a URL data source containing CSV (comma separated values) place,latitude,longitude data or those three fields in an HTML table element contents perhaps.<\/p>\n<p>We&#8217;ve added the ability to &#8220;map&#8221; (tee hee) &#8230;<\/p>\n<p><code><br \/>\nHTTP:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php?title=Where%20We%20Are&amp;onclick=y&amp;label=['Lat',&amp;value='Lon',%20'Name']&amp;data=<b>,%20[-33.90743410270099,151.17646964910696,~Parent1~]%20,%20[-33.907440603083124,151.1764659419197,~Parent2~]<\/b><br \/>\n<\/code><\/p>\n<p>&#8230; from a CSV data URL look with contents &#8230;<\/p>\n<p><code><br \/>\n-33.907434102700991,151.17646964910696,Parent1<br \/>\n-33.907440603083124,151.17646594191973,Parent2<br \/>\n<\/code><\/p>\n<p>&#8230; that if placed at rjmprogramming.com.au&#8217;s Document Root and called parent.csv then a URL of &#8230;<\/p>\n<p><code><br \/>\nHTTP:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php?title=Where%20We%20Are&amp;onclick=y&amp;label=['Lat',&amp;value='Lon',%20'Name']&amp;data=<b>,%20[0.00000001,0.0000000,~HTTP:\/\/rjmprogramming.com.au\/parent.csv~]<\/b><br \/>\n<\/code><\/p>\n<p>&#8230; could be a shortcut to that first URL same look. You can see another example using data from <a title=\"Co-ordinates, thanks\" href=\"https:\/\/www.mapbox.com\/help\/troubleshoot-csv\/#example\" target=\"_blank\">mapbox.com<\/a>, thanks, show the scenario our <a title=\"Tutorial picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/mapmore.jpg\" target=\"_blank\">tutorial picture<\/a> illustrates.<\/p>\n<p>The way this &#8220;mapping&#8221; (tee hee, tee hee) of URLs can happen is that the PHP supervisor <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php------------------------GETME\" target=\"_blank\">map.php<\/a> (changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php------------------------GETME\" target=\"_blank\">this way<\/a> and which you can try with this <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">live run<\/a> link) &#8220;includes&#8221; (ie. calls) &#8230;<\/p>\n<p><code><br \/>\ninclude \"..\/csv.php\";<br \/>\n<\/code><\/p>\n<p>&#8230; a (now bigger, and more functional) <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php--------GETME\" target=\"_blank\">csv.php<\/a> (changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/csv.php--------GETME\" target=\"_blank\">this way<\/a>) does its best to handle a few looks to the CSV or tabular data, with code to allow for &#8230;<\/p>\n<ul>\n<li>CSV data ordered place,latitude(decimal),longitude(decimal) or latitude(decimal),longitude(decimal),place or place,longitude(decimal),latitude(decimal) or longitude(decimal),latitude(decimal),place<\/li>\n<li>CSV data ordered place,latitude(W\/S\/E\/N_deg_min_secs),longitude(W\/S\/E\/N_deg_min_secs) or latitude(W\/S\/E\/N_deg_min_secs),longitude(W\/S\/E\/N_deg_min_secs),place or place,longitude(W\/S\/E\/N_deg_min_secs),latitude(W\/S\/E\/N_deg_min_secs) or longitude(W\/S\/E\/N_deg_min_secs),latitude(W\/S\/E\/N_deg_min_secs),place<\/li>\n<li>HTML tabular data ordered place,latitude(decimal),longitude(decimal) or latitude(decimal),longitude(decimal),place or place,longitude(decimal),latitude(decimal) or longitude(decimal),latitude(decimal),place<\/li>\n<li>HTML tabular data ordered place,latitude(W\/S\/E\/N_deg_min_secs),longitude(W\/S\/E\/N_deg_min_secs) or latitude(W\/S\/E\/N_deg_min_secs),longitude(W\/S\/E\/N_deg_min_secs),place or place,longitude(W\/S\/E\/N_deg_min_secs),latitude(W\/S\/E\/N_deg_min_secs) or longitude(W\/S\/E\/N_deg_min_secs),latitude(W\/S\/E\/N_deg_min_secs),place<\/li>\n<\/ul>\n<hr \/>\n<p id=\"ensmcwt\">Previous relevant <a title=\"Emoji Name Search Map Chart Weather Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-map-chart-weather-tutorial\/\" target=\"_blank\">Emoji Name Search Map Chart Weather Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Map Chart Weather Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/worldflagw.jpg\" alt=\"Emoji Name Search Map Chart Weather Tutorial\" \/><\/a><\/p>\n<p>If you&#8217;ve been studying the code of our hierarchy for our Emoji Flags of the World web application &#8230;<\/p>\n<ul>\n<li>grandparent <a title=\"World Flags live run\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\">Emoji Flags of the World live run<\/a>, with this HTML and Javascript <a title=\"world_flags.html\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html-GETME\" target=\"_blank\">world_flags.html<\/a> HTML and Javascript, unchanged from yesterday&#8217;s <a title=\"Emoji Name Search Timezone Tutorial\" href=\"#enstt\">Emoji Name Search Timezone Tutorial<\/a> &#8230; supervising &#8230;<\/li>\n<li>parent <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php----GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> PHP partner, also unchanged from yesterday, because, today, our focus is on what this supervises &#8230;<\/li>\n<li><b>child <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php---------------------GETME\" target=\"_blank\">map.php<\/a> PHP that changed in <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php---------------------GETME\" target=\"_blank\">this way<\/a> (and which is an independent <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">Google Chart Map Chart interfacing live run<\/a> in its own right)<\/b><\/li>\n<\/ul>\n<p>&#8230; am sure you&#8217;ll have noticed how bottom heavy it is on the &#8220;child&#8221; as far as functionality goes. What we like to call &#8220;the hard working duck syndrome&#8221;. Partly, that is because we see the <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Charts<\/a> <a title=\"Google Chart Map Chart\" href=\"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4832\" target=\"_blank\">Map Chart<\/a> interface we have as being a very useful &#8220;meeting point&#8221; with interfacing web applications tending towards the &#8220;where&#8221; of life.<\/p>\n<p>Today&#8217;s job, extending yesterday&#8217;s <a title=\"Emoji Name Search Map Chart Tutorial\" href=\"#ensmct\">Emoji Name Search Map Chart Tutorial<\/a> is to add Map Chart interfacing to the great <a title=\"Weather Underground\" href=\"http:\/\/www.wunderground.com\" target=\"_blank\">Weather Underground<\/a> and its great API service for autocomplete name searches for weather (and hurricane) information &#8230; thanks.<\/p>\n<p>The changes are again just to that &#8220;hard working duck&#8221; Map Chart interface &#8220;child&#8221; web application, as for yesterday&#8217;s work. We were very keen to do this, especially because &#8230;<\/p>\n<ul>\n<li><a title=\"Weather Underground\" href=\"http:\/\/www.wunderground.com\" target=\"_blank\">Weather Underground<\/a> database works most succinctly with <i>Placename, Country<\/i> identification pairs, better than for the &#8230;<\/li>\n<li><i>Continent\/Placename<\/i> setup of (PHP) Timezones<\/li>\n<\/ul>\n<p>&#8230; and so, while we are going to so much trouble scouring Timezone places for their associated Countries, it is a really good opportunity to slot in some Weather API interfacing to our Emoji World Flags web application, which is starting to be looking better and better as a trip planning aid.<\/p>\n<hr \/>\n<p id=\"ensmct\">Previous relevant <a title=\"Emoji Name Search Map Chart Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-map-chart-tutorial\/\" target=\"_blank\">Emoji Name Search Map Chart Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Map Chart Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/worldflagtz.jpg\" alt=\"Emoji Name Search Map Chart Tutorial\" \/><\/a><\/p>\n<p>We now have a three tier functionality hierarchy for our Emoji Flags of the World web application &#8230;<\/p>\n<ul>\n<li>grandparent <a title=\"World Flags live run\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\">Emoji Flags of the World live run<\/a>, with this HTML and Javascript <a title=\"world_flags.html\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html-GETME\" target=\"_blank\">world_flags.html<\/a> HTML and Javascript, unchanged from yesterday&#8217;s <a title=\"Emoji Name Search Timezone Tutorial\" href=\"#enstt\">Emoji Name Search Timezone Tutorial<\/a> &#8230; supervising &#8230;<\/li>\n<li>parent <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php----GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> PHP partner, also unchanged from yesterday, because, today, our focus is on what this supervises &#8230;<\/li>\n<li><b>child <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php--------------------GETME\" target=\"_blank\">map.php<\/a> PHP that changed in <a title=\"map.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php--------------------GETME\" target=\"_blank\">this way<\/a> (and which is an independent <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Map\/map.php\" target=\"_blank\">Google Chart Map Chart interfacing live run<\/a> in its own right)<\/b><\/li>\n<\/ul>\n<p>&#8230; all made so very possible when web applications sit in the same domain and you utilize the HTML <a title=\"HTML iframe element information from w3schools\" href=\"http:\/\/www.w3schools.com\/tags\/tag_iframe.asp\" target=\"_blank\">iframe<\/a> element.<\/p>\n<p>We wanted to enhance its integration by &#8230;<\/p>\n<ul>\n<li>adding in &#8220;locality pins&#8221; for all PHP Timezone places in the country of interest<\/li>\n<li>involving Emoji flags in the Map Chart title (rather than as a pin) because Emojis, after all, are like textual data, not HTML (but can use HTML Entity representations in both)<\/li>\n<\/ul>\n<p>To work the latter of these we called on recent experience with the &#8220;Fifth Beatle&#8221; discussion in <a title=\"Emoji Name Search Primer Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-primer-tutorial\/\" target=\"_blank\">Emoji Name Search Primer Tutorial<\/a> &#8230;<\/p>\n<blockquote cite=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-primer-tutorial\/\"><p>We got quite excited recently with <a title=\"Rainbow Games PHP Emoji Tutorial\" href=\"#rgphpet\">Rainbow Games PHP Emoji Tutorial<\/a> when we added a (fourth Beatle) <i>emoji helper<\/i>, called <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a>, into the mix of tools to gather emoji information. Today, we&#8217;ve got a new Emoji Search web application that introduces a new (<a title=\"Pete Best information from Wikipedia ... thanks\" href=\"https:\/\/en.wikipedia.org\/wiki\/Fifth_Beatle\" target=\"_blank\">fifth Beatle(?)<\/a>) <b>emoji helper tool<\/b> to add into the &#8220;how we see it&#8221; mix &#8230;<\/p><\/blockquote>\n<p>We found that <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a> could be used in our map Chart interfacing PHP to look up the HTML Decimal Entity for a flag of a country via the URL pattern &#8230;<\/p>\n<p><code><br \/>\nHTTP:\/\/www.emojiterra.com\/flag-for-[CountryNameSpacesMakeMinusSignsLowerCase]<br \/>\n<\/code><\/p>\n<p>So even though Google Chart Map Charts do not allow HTML in their titles there is nothing stopping you putting in an HTML Entity Emoji coding.<\/p>\n<p>As far as the former goes, we again called on the PHP <a title=\"DateTimeZone class\" href=\"http:\/\/php.net\/manual\/en\/class.datetimezone.php\" target=\"_blank\">DateTimeZone<\/a> class to scrutinize the first Timezone in the Map Chart title, derive its ISO 2 letter Country Code, and look through the array list of (PHP) Timezones to garner latitude and longitude, time now, and GMT offset information necessary to improve the &#8220;where&#8221; and &#8220;when&#8221; aspects of our Google Chart Map Chart interfacing.<\/p>\n<hr \/>\n<p id=\"enstt\">Previous relevant <a title=\"Emoji Name Search Timezone Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-timezone-tutorial\/\" target=\"_blank\">Emoji Name Search Timezone Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Timezone Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/worldflag.jpg\" alt=\"Emoji Name Search Timezone Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s <a title=\"Emoji Name Search Map Tutorial\" href=\"#ensmt\">Emoji Name Search Map Tutorial<\/a> was a step in the direction of &#8220;where&#8221; functionality, but because PHP teams up with the supervisory HTML &#8220;Emoji World Flags&#8221; web application, to make all this happen, there is the opportunity to add interest by adding a &#8220;when&#8221; aspect to how it works.<\/p>\n<p>As we&#8217;ve said many times now, should you have access to PHP, you also have access to its <a title=\"DateTimeZone class\" href=\"http:\/\/php.net\/manual\/en\/class.datetimezone.php\" target=\"_blank\">DateTimeZone<\/a> class where Timezones can be linked to ISO 2 letter Country Codes, useful as an integration point as of recent times when we introduced ISO 2 letter Country Codes to today&#8217;s (supervisory) <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\">live run<\/a>&#8216;s <a title=\"world_flags.html\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html-GETME\" target=\"_blank\">world_flags.html<\/a> HTML and Javascript code.<\/p>\n<p>But it is not HTML code that changes today. It is its PHP partner <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php----GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> changed in <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php----GETME\" target=\"_blank\">this way<\/a>, that arranges that its call of <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Charts<\/a> <a title=\"Google Chart Map Chart\" href=\"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4832\" target=\"_blank\">Map Chart<\/a> passes across a new URL &#8230;<\/p>\n<p><code><br \/>\n&amp;ccode=[ISO 2 letter Country Code]<br \/>\n<\/code><\/p>\n<p>&#8230; argument that uses a new PHP function as below (arrays shortened for practicality purposes) &#8230;<\/p>\n<p><code><br \/>\n&lt;?php<br \/>\nfunction inctycodecheck($incd, $sofar) {<br \/>\n$nearname=[\"Africa\/Abidjan\",\"Africa\/Accra\", ... ]; \/\/ array of Timezone names<br \/>\n$retv=\"\";<br \/>\n$retd=\"\";<br \/>\n$otz = new DateTimeZone(\"UTC\");<br \/>\n$jj=0;<br \/>\n$origin_dt = new DateTime(\"now\", $otz);<br \/>\nfor ($best1=0; $best1&lt;sizeof($nearname); $best1++) {<br \/>\ntry {<br \/>\n$tz = new DateTimeZone($nearname[$best1]);<br \/>\n$cloc = $tz-&gt;getLocation();<br \/>\n$ctrycode = $cloc['country_code'];<br \/>\nif (strtoupper($incd) == strtoupper($ctrycode)) {<br \/>\n$remote_dt = new DateTime(\"now\", $tz);<br \/>\n$offset = ($tz-&gt;getOffset($remote_dt) - $otz-&gt;getOffset($origin_dt)) \/ 3600;<br \/>\n$newp=$retd . $nearname[$best1] . \"\/\" . $remote_dt-&gt;format('Y-m-d_H:i:s') . \" (GMT\" . $offset . \")\";<br \/>\n$huhs=explode(\" (GMT\" . $offset . \")\", $retv);<br \/>\nif (sizeof($huhs) == 2) {<br \/>\nif (explode(\"\/\", $newp)[0] != explode(\"\/\", explode(\",\", $huhs[0])[-1 + sizeof(explode(\",\", $huhs[0]))])[0]) {<br \/>\n$huhs=explode(\"youwillneverfindthis\", $retv);<br \/>\n}<br \/>\n}<br \/>\nif (($sofar + strlen(urlencode(($retv . $newp)))) &lt; 950 &amp;&amp; $jj &lt; 10 &amp;&amp; sizeof($huhs) == 1) {<br \/>\n$retv.=$newp;<br \/>\n$retd=\",\";<br \/>\n$jj++;<br \/>\n}<br \/>\n}<br \/>\n} catch (Exception $exc) { }<br \/>\n}<br \/>\nreturn $retv;<br \/>\n}<br \/>\n?&gt;<br \/>\n<\/code><\/p>\n<p>&#8230; called later in the code with the <b>new block of code<\/b> as per &#8230;<\/p>\n<p><code><br \/>\n&lt;?php<br \/>\n$urlis=urldecode($_GET['gmc']); \/\/ URL to point at template Google Chart Map Chart call for Country of interest<br \/>\nif (strpos($urlis, ',,') !== false) {<br \/>\n$urlis=str_replace(\",,\", urlencode($latis . \",\" . $longis . \",\"), $urlis);<br \/>\n} else {<br \/>\n$urlis=str_replace(urlencode(\",,\"), urlencode($latis . \",\" . $longis . \",\"), $urlis);<br \/>\n}<br \/>\n<b>if (isset($_GET['ccode'])) {<br \/>\n$urlis=str_replace(\"&amp;onclick=\", \"%20\" . urlencode(inctycodecheck(urldecode($_GET['ccode']), (strlen($urlis) + 3))) . \"&amp;onclick=\", $urlis); \/\/ appends to the title argument<br \/>\n}<\/b><br \/>\nif (isset($_SERVER['HTTPS'])) {<br \/>\nif ($_SERVER['HTTPS'] == \"on\") {<br \/>\nheader(\"Location: https:\" . $urlis);<br \/>\n} else {<br \/>\nheader(\"Location: http:\" . $urlis);<br \/>\n}<br \/>\n} else {<br \/>\nheader(\"Location: http:\" . $urlis);<br \/>\n}<br \/>\nexit;<br \/>\n?&gt;<br \/>\n<\/code><\/p>\n<hr \/>\n<p id=\"ensmt\">Previous relevant <a title=\"Emoji Name Search Map Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-map-tutorial\/\" target=\"_blank\">Emoji Name Search Map Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Map Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/worldflags.jpg\" alt=\"Emoji Name Search Map Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s posted data <a title=\"Emoji Name Search Posting Tutorial\" href=\"#enspt\">Emoji Name Search Posting Tutorial<\/a> functionality opened the door to &#8220;where&#8221; web application (software) integration, because the wonderful <a title=\"Wikipedia\" href=\"http:\/\/www.wikipedia.org\" target=\"_blank\">Wikipedia<\/a> has compiled Latitude,Longitude co-ordinate pairs for those countries, and that is our foot in the door to place an HTML <i>a<\/i> link under the Emoji flags, that points to our favourite &#8220;where&#8221; interfacing tool, the <a title=\"Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/index\" target=\"_blank\">Google Charts<\/a> <a title=\"Google Chart Map Chart\" href=\"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4832\" target=\"_blank\">Map Chart<\/a>.<\/p>\n<p>Because the Map Chart and Emoji Flag web application share the same domain we can keep this functionality on this same Emoji Flag webpage in an &#8230;<\/p>\n<ul>\n<li>HTML iframe element <i>name=gcmi<\/i> <i>id=gcmi<\/i> initially invisible &#8230; &#8220;populated by&#8221; &#8230;<\/li>\n<li>HTML <i>a<\/i> element <i>target=gcmi<\/i> <i>href=[URL to Map Chart for Country of Interest]<\/i> <i>onclick=aoc();<\/i> &#8230;<br \/>\n<code><br \/>\nfunction aoc() {<br \/>\ndocument.getElementById('gmci').style.width='450px';<br \/>\ndocument.getElementById('gmci').style.height='450px';<br \/>\ndocument.getElementById('gmci').style.display='inline-block';<br \/>\n}<br \/>\n<\/code><\/li>\n<\/ul>\n<p>Another way to zoom around the world online!<\/p>\n<p>You can try the <a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\">Emoji Flags live run<\/a> (with underlying <a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html-GETME\" target=\"_blank\">world_flags.html<\/a> changed <a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html-GETME\" target=\"_blank\">this way<\/a>) or the other Emoji functionalities that have this <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\">live run<\/a> and\/or its PHP source code <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php---GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> changed in <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php---GETME\" target=\"_blank\">this way<\/a> to extend its software integration capabilities.<\/p>\n<hr \/>\n<p id=\"enspt\">Previous relevant <a title=\"Emoji Name Search Posting Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-posting-tutorial\/\" target=\"_blank\">Emoji Name Search Posting Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Posting Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.jpg\" alt=\"Emoji Name Search Posting Tutorial\" \/><\/a><\/p>\n<p>Yesterday&#8217;s <a title=\"Emoji Name Search Tailoring Tutorial\" href=\"#enstt\">Emoji Name Search Tailoring Tutorial<\/a> was suitable for data sets of that smaller size able to be handled by the web server limit of URL length. But what if there are too many data items in your data set to be handled by PHP&#8217;s $_GET[] array URL ? and &amp; delimited URLs? We, having PHP serverside code at our disposal, can turn to $_POST[] (HTML) method=POST form action=[here&#8217;sLookingAtYouKid] scenarios, to get around this issue. The unfortunate side effect of this is that the HTML <a title=\"mailto information from w3schools\" href=\"http:\/\/www.w3schools.com\/tags\/tryit.asp?filename=tryhtml_link_mailto\" target=\"_blank\"><i>mailto:<\/i><\/a> <i>a<\/i> link (email client) method of sharing your Emoji web application relies on that $_GET[] approach, that is, unless you wrote a whole &#8220;bespoke&#8221; web application to help out, like we do today for our new Emoji &#8220;World Flags&#8221; web application with this <a title=\"World Flags live run\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html\" target=\"_blank\">live run<\/a>, with this HTML and Javascript <a title=\"World Flags live run\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/world_flags.html_GETME\" target=\"_blank\">world_flags.html<\/a> source code.<\/p>\n<p>That new &#8220;supervisor&#8221; being a guinea pig idea into the $_POST[] thinking, we add some HTML form element input type=text <i>additions<\/i> to allow for, out of &#8230;<\/p>\n<ul>\n<li>Emoji look class &#8230; and &#8230;<\/li>\n<li><i>Wording next to Emoji<\/i> &#8230; and &#8230;<\/li>\n<li><i>URL of Wording&#8217;s link, be that substituted or appended<\/i><\/li>\n<\/ul>\n<p>&#8230; <i>mapped values<\/i>, optionally, off a newly offered HTML form element input type=text for this mapped comma or blank separated word list.<\/p>\n<p>Perhaps, now, you &#8220;long data set thinkers&#8221; want to try the <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\">live run<\/a> and\/or its PHP source code <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php--GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> changed in <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php--GETME\" target=\"_blank\">this way<\/a> to extend its data set size capabilities.<\/p>\n<hr \/>\n<p id=\"enstt\">Previous relevant <a title=\"Emoji Name Search Tailoring Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-tailoring-tutorial\/\" target=\"_blank\">Emoji Name Search Tailoring Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Tailoring Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts_more.jpg\" alt=\"Emoji Name Search Tailoring Tutorial\" \/><\/a><\/p>\n<p>Information Technology is full of &#8220;buzz words&#8221;, and am sure you wince at some to all of them yourselves. That&#8217;s a bit why am using &#8220;Tailoring&#8221; rather than &#8230;<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>sharing<\/li>\n<li>personalization<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&#8230; to give you a <span style=\"text-decoration: line-through;\">slumber<\/span>rest from having to look under <span style=\"text-decoration: line-through;\">struck through<\/span>deleted wording to look for hidden <span style=\"text-decoration: line-through;\">&#8220;buzz words&#8221;<\/span>terminology that makes your <span style=\"text-decoration: line-through;\">hare<\/span>hair <span style=\"text-decoration: line-through;\">sit up<\/span>stand <span style=\"text-decoration: line-through;\">watching<\/span>on <span style=\"text-decoration: line-through;\">Bugs Bunny<\/span>end.<\/p>\n<p>We think, perhaps, that emojis can be important for young &#8220;would be&#8221; programmers to launch into. Personally wonder how many &#8220;would be&#8221; programmers give the game up far too soon just because they don&#8217;t have those graphics skills, well, with emojis, a lot of that hard work, in miniature, has been done for you by some pretty creative people, so why not enjoy the fruits (chortle, in context, chortle) of their labour and start developing your own web applications to use them. Daily, their use is increasing, as are the sharing of access methods.<\/p>\n<p>In today&#8217;s extension to the functionality started with yesterday&#8217;s <a title=\"Emoji Name Search Primer Tutorial\" href=\"#enspt\">Emoji Name Search Primer Tutorial<\/a> we separate the <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a> aspects to how it works and allow the user to &#8230;<\/p>\n<ul>\n<li>supply an Emoji Word List of interest<\/li>\n<li>perhaps supply a heading and subheading to describe the &#8220;concept&#8221; of that list<\/li>\n<li>supply either a &#8230;\n<ol>\n<li>URL prefix &#8230; or &#8230;<\/li>\n<li>URL with the ~ (tilde) character where you want, substituted, your emoji name<\/li>\n<\/ol>\n<p>&#8230; to be a navigation destination in that similar new window navigation we used to access <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a> &#8230;<\/li>\n<li>presenting all this in an HTML form action=[here&#8217;sLookingAtYouKid] method=GET &#8230;<\/li>\n<li>that method=GET opening the door to be able to offer an email client engine method to <span style=\"text-decoration: line-through;\">&#8220;share&#8221;<\/span>email somebody the link to a screen that looks like the one you&#8217;re seeing<\/li>\n<\/ul>\n<p>Of course, we&#8217;d like you to find some of your own such Emoji Display Dynamically Created Web Applications yourself, but to encourage, we, in the web application, today, identified two ideas, namely &#8230;<\/p>\n<ul>\n<li>Fruit and Vegetables via Wikipedia at <a title=\"Wikipedia ... thanks\" href=\"https:\/\/en.wikipedia.org\/wiki\/\" target=\"_blank\">https:\/\/en.wikipedia.org\/wiki\/<\/a> as a prefix &#8230; and &#8230;<\/li>\n<li>Astrology via Cafe Astrology at <span style=\"text-decoration: underline;\">https:\/\/cafeastrology.com\/~dailyhoroscope.html<\/span> via ~ (tilde) character substitution<\/li>\n<\/ul>\n<p>&#8230; each of which (and any you make will also) feature a link to the HTML <a title=\"mailto information from w3schools\" href=\"http:\/\/www.w3schools.com\/tags\/tryit.asp?filename=tryhtml_link_mailto\" target=\"_blank\"><i>mailto:<\/i><\/a> <i>a<\/i> link out through the email client and to your recipient who can click the email link to <span style=\"text-decoration: line-through;\">&#8220;share&#8221;<\/span><a title=\"?\" href=\"https:\/\/www.youtube.com\/watch?v=civzfZ_3uVc\" target=\"_blank\">compare notes<\/a>.<\/p>\n<p>Perhaps, now, you want to try the <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\">live run<\/a> and\/or its PHP source code <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php-GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> changed in <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php-GETME\" target=\"_blank\">this way<\/a> to extend its functionality, involving a <a title=\"Reveal blog postings at this blog\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/reveal\" target=\"_blank\">reveal<\/a> favourite of ours, the use of HTML(5)&#8217;s <a title=\"HTML details tag information from w3schools\" href=\"https:\/\/www.w3schools.com\/tags\/tag_details.asp\" target=\"_blank\">details<\/a> (and summary) element.<\/p>\n<p>You can also see this play out at WordPress 4.1.1&#8217;s <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-tailoring-tutorial\/\" target=\"_blank\">Emoji Name Search Tailoring Tutorial<\/a>.<\/p>\n<hr \/>\n<p id=\"enspt\">Previous relevant <a title=\"Emoji Name Search Primer Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/emoji-name-search-primer-tutorial\/\" target=\"_blank\">Emoji Name Search Primer Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Emoji Name Search Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.jpg\" alt=\"Emoji Name Search Primer Tutorial\" \/><\/a><\/p>\n<p>We got quite excited recently with <a title=\"Rainbow Games PHP Emoji Tutorial\" href=\"#rgphpet\">Rainbow Games PHP Emoji Tutorial<\/a> when we added a (fourth Beatle) <i>emoji helper<\/i>, called <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a>, into the mix of tools to gather emoji information. Today, we&#8217;ve got a new Emoji Search web application that introduces a new (<a title=\"Pete Best information from Wikipedia ... thanks\" href=\"https:\/\/en.wikipedia.org\/wiki\/Fifth_Beatle\" target=\"_blank\">fifth Beatle(?)<\/a>) <b>emoji helper tool<\/b> to add into the &#8220;how we see it&#8221; mix below &#8230;<\/p>\n<ul>\n<li><a title=\"Emojipedia\" href=\"http:\/\/www.emojipedia.org\" target=\"_blank\">Emojipedia<\/a> is good for looking up Emoji names or concepts in words<\/li>\n<li><a title=\"FileFormation Information website\" href=\"http:\/\/www.fileformat.info\" target=\"_blank\">FileFormat Information<\/a> is great for HTML Entity determinations for your less complex Emojis<\/li>\n<li><a title=\"Iemoji website\" href=\"http:\/\/www.iemoji.com\" target=\"_blank\">Iemoji<\/a> is great for HTML Entity determinations for Emojis of all complexities<\/li>\n<li><i><a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a> performs similar functionality as Iemoji but has a permalink organization more friendly to an &#8220;emoji search via emoji title&#8221; query, and that has suited our purposes today, and before, so, thanks a lot<\/i><\/li>\n<li><b><a title=\"Iemoji website\" href=\"https:\/\/afeld.github.io\/emoji-css\/\" target=\"_blank\">Emoji CSS<\/a> performs similar functionality to Emojipedia, but has a pictorial view of Emoji names as well, right from the word go, thanks<\/b><\/li>\n<\/ul>\n<p>With these emoji tools in mind we wrote a new PHP web application combining those last two to show Emojis pictorially (with their short name) initially and allow the user to search for an Emoji (match) list via their HTML input type=text (textbox) entry, which results in &#8230;<\/p>\n<ul>\n<li>the Emoji (match) list look (as an Emoji &#8220;display&#8221;) &#8230; and &#8230;<\/li>\n<li>an HTML <i>a<\/i> link which is that Emoji&#8217;s short name &#8230; linking to &#8230;<\/li>\n<li>an <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a> webpage with more detail, including HTML Entity information if &#8220;short name&#8221; is unique, or one extra click away, if not<\/li>\n<\/ul>\n<p>Maybe you need to try the <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php\" target=\"_blank\">live run<\/a> and\/or its PHP source code <a title=\"emoticon_keyboard_shortcuts.php\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/emoticon_keyboard_shortcuts.php_GETME\" target=\"_blank\">emoticon_keyboard_shortcuts.php<\/a> to download, perhaps?<\/p>\n<hr \/>\n<p id=\"rgphpet\">Previous relevant <a title=\"Rainbow Games PHP Emoji Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/rainbow-games-php-emoji-tutorial\/\" target=\"_blank\">Rainbow Games PHP Emoji Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.htm\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Rainbow Games PHP Emoji Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation_php.jpg\" alt=\"Rainbow Games PHP Emoji Tutorial\" \/><\/a><\/p>\n<p>In order to take that further genericization step onto the achievements of yesterday&#8217;s <a title=\"Rainbow Games Genericization Tutorial\" href=\"#rggt\">Rainbow Games Genericization Tutorial<\/a> to <b>get onto<\/b> (the mathematics Induction principle inspired) &#8230;<\/p>\n<ul>\n<li>prove for the first case<\/li>\n<li>prove for the second case<\/li>\n<li><b>prove for the n<sup>th<\/sup> case<\/b><\/li>\n<\/ul>\n<p>&#8230; we had a choice of &#8230;<\/p>\n<ul>\n<li>continue on (with) the HTML code creation of new &#8220;hardcoded&#8221; arrays (managed by Javascript eval abstractional approach) &#8230; or &#8220;bite the bullet&#8221; and &#8230;<\/li>\n<li>try to work out a generic &#8220;emoji look<span style=\"font-size: xx-small;\">erer<\/span> up<span style=\"font-size: xx-small;\">perer<\/span>&#8221; arrangement<\/li>\n<\/ul>\n<p>Guess you can tell we opted for the latter, huh?! We started the investigation of this by examining our three favourite emoji informational websites, namely &#8230;<\/p>\n<ol>\n<li><a title=\"Emojipedia\" href=\"http:\/\/www.emojipedia.org\" target=\"_blank\">Emojipedia<\/a><\/li>\n<li><a title=\"FileFormation Information website\" href=\"http:\/\/www.fileformat.info\" target=\"_blank\">FileFormat Information<\/a><\/li>\n<li><a title=\"Iemoji website\" href=\"http:\/\/www.iemoji.com\" target=\"_blank\">Iemoji<\/a><\/li>\n<\/ol>\n<p>&#8230; and were a bit surprised that we could not quite swing a generic method to glean the information, so don&#8217;t know whether our new &#8220;player&#8221; is &#8220;Ringo Starr&#8221; or not, but can tell you this, &#8220;its beat is much better than its bite&#8221; &#8230; <span style=\"font-size: xx-small;\">chortle, chortle<\/span> &#8230;<\/p>\n<p><a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a> performs similar functionality as Iemoji but has a permalink organization more friendly to an &#8220;emoji search via emoji title&#8221; query, and that suits our purposes today, so, thanks a lot. Without this query by &#8220;emoji title&#8221; possibility we&#8217;d have been forced to adopt more of those &#8220;hardcoded&#8221; arrays, which would have been alright, but this second approach opens the door to &#8220;sport&#8221; events in &#8220;The Rainbow Games&#8221; web application using emojis of the future (ie. they haven&#8217;t been invented yet).<\/p>\n<p>How to work the interfacing to <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\" target=\"_blank\">Emoji Terra<\/a>?<\/p>\n<ul>\n<li>good ol&#8217; PHP serverside language<\/li>\n<li>good ol&#8217; PHP&#8217;s <a title=\"file_get_contents\" href=\"http:\/\/us1.php.net\/file_get_contents\" target=\"_blank\">file_get_contents<\/a> (supplemented by)<\/li>\n<li>good newish &#8220;PHP Source File as the Database Source&#8221; we&#8217;ve talked about in the past with <a title=\"PHP Require Database Primer Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/php-require-database-primer-tutorial\/\" target=\"_blank\">PHP Require Database Primer Tutorial<\/a> and <a title=\"Signature Signature PHP Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/signature-signature-php-tutorial\/\" target=\"_blank\">Signature Signature PHP Tutorial<\/a> whereby the PHP Source File updates itself with web application data<\/li>\n<\/ul>\n<p>This new PHP <a title=\"emoji_lookup.php\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_lookup.php_GETME\" target=\"_blank\">emoji_lookup.php<\/a> treats the &#8220;<b>prove for the n<sup>th<\/sup> case<\/b>&#8221; sports as ones to &#8230;<\/p>\n<ul>\n<li>look up the emoji information for (in the order &#8220;PHP Source File as the Database Source&#8221; then try <a title=\"file_get_contents\" href=\"http:\/\/us1.php.net\/file_get_contents\" target=\"_blank\">file_get_contents<\/a> of Emoji Terra lookup), and &#8230;<\/li>\n<li>read the HTML partner source code <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.htm\" target=\"_blank\">live run<\/a>&#8216;s underlying HTML and Javascript and CSS <a title=\"emoji_walk_animation.htm\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html---GETME\" target=\"_blank\">emoji_walk_animation.htm<\/a> (which changed in <a title=\"emoji_walk_animation.html\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html---GETME\" target=\"_blank\">this way<\/a>)<\/li>\n<li>amend that HTML source to supplant the &#8220;Sprint&#8221; default sport for this new nominated sport <span style=\"font-size: xx-small;\">&#8230; trying not to fall over laughing at some of the new sports we present (inspired by a visit to <a title=\"Emoji Terra\" href=\"http:\/\/www.emojiterra.com\/search\/woman\" target=\"_blank\">Emoji Terra search<\/a>)<\/span><\/li>\n<li>write out that amended HTML code as the web page (the beauty of a serverside language like PHP)<\/li>\n<\/ul>\n<p>The more detailed specifics of the <i><a title=\"file_get_contents\" href=\"http:\/\/us1.php.net\/file_get_contents\" target=\"_blank\">file_get_contents<\/a> of Emoji Terra lookup<\/i> above are &#8230;<\/p>\n<ul>\n<li>build up a URL starting with <i>HTTP:\/\/emojiterra.com\/<\/i> &#8230; then &#8230;<\/li>\n<li>in emoji<i>land<\/i> arrangements there are two genders (as our prefixes if you will) &#8230; <i>woman-<\/i> and <i>man-<\/i><\/li>\n<li>then add on a &#8220;middle&#8221; sport descriptor (eg. <i>biking<\/i>)<\/li>\n<li>in emoji<i>land<\/i> emoticon<i>land<\/i> arrangements there are five descriptors (as our suffixes if you will) &#8230; <i>-dark-skin-tone<\/i>, <i>-medium-dark-skin-tone<\/i>, <i>-medium-skin-tone<\/i>, <i>-medium-light-skin-tone<\/i>, <i>-light-skin-tone<\/i><\/li>\n<li>for that set of 2x1x5=10 URLs glean what &#8220;HTML dec&#8221; (HTML Entity) information you can glean via the <a title=\"file_get_contents\" href=\"http:\/\/us1.php.net\/file_get_contents\" target=\"_blank\">file_get_contents<\/a> call of the Emoji Terra URLs described above (eg. <a title=\"\" href=\"http:\/\/emojiterra.com\/woman-biking-dark-skin-tone\" target=\"_blank\">Emoji: Woman Biking: Dark Skin Tone<\/a>) &#8230; built into a <i>Javascript array<\/i> string to &#8220;plug into&#8221; the previously read HTML partner source code, and amended to output as the web page the user sees<\/li>\n<\/ul>\n<p>Sports of the future in emoji<i>land<\/i>? Just ask for the equivalent of <i>biking<\/i> (above) off the user via a Javascript prompt window (on the proviso you read <a title=\"Conditional Alternative to Javascript Popup Windows in iOS Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/conditional-alternative-to-javascript-popup-windows-in-ios-tutorial\/\" target=\"_blank\">Conditional Alternative to Javascript Popup Windows in iOS Tutorial<\/a> first please).<\/p>\n<hr \/>\n<p id=\"rggt\">Previous relevant <a title=\"Rainbow Games Genericization Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/rainbow-games-genericization-tutorial\/\" target=\"_blank\">Rainbow Games Genericization Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.htm\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Rainbow Games Genericization Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation_row.jpg\" alt=\"Rainbow Games Genericization Tutorial\" \/><\/a><\/p>\n<p>What would help genericize the recent <a title=\"Rainbow Games Double Transformation Tutorial\" href=\"#rgdtt\">Rainbow Games Double Transformation Tutorial<\/a> &#8220;Rainbow Games&#8221; web application? How about introducing another sport?<\/p>\n<p>Again, in honour of &#8220;onions of the 4th dimension&#8221; approaches, we mainly, turn to the power of Javascript&#8217;s <a title=\"Javascript eval\" href=\"http:\/\/www.w3schools.com\/jsref\/jsref_eval.asp\" target=\"_blank\">eval<\/a> methodology to achieve this <a title=\"Abstraction information from Wikipedia, thanks.\" href=\"https:\/\/en.wikipedia.org\/wiki\/Abstraction\" target=\"_blank\">abstracted<\/a> feeling to our web application. Today, with this, we go <b>two thirds<\/b> of the way along the &#8220;Mathematical Induction&#8221; approach &#8230;<\/p>\n<ul>\n<li><b>prove for the first case<\/b><\/li>\n<li><b>prove for the second case<\/b><\/li>\n<li>prove for the n<sup>th<\/sup> case<\/li>\n<\/ul>\n<p>How does this use of Javascript eval manifest itself in this way?<\/p>\n<ul>\n<li>there are two arrays that work with the &#8220;content&#8221; of our &#8220;Rainbow Games&#8221; sport(s) (<span style=\"font-size: xx-small;\">well, at least, the first &#8220;sprint running&#8221; sport<\/span>) called <i>emoticons[]<\/i> and <i>choices[]<\/i><\/li>\n<li>wherever we find references in the code to either of these two arrays we start to <b>involve<\/b> the global var<span style=\"font-size: xx-small;\">iable<\/span> <b>verbsuffix<\/b> &#8230;<br \/>\n<code><br \/>\nvar verb='Sprint';<br \/>\nvar verbs=['Sprint','Row'];<br \/>\nvar anotherverb='run';<br \/>\n<b>var verbsuffix='';<\/b><br \/>\n<\/code><br \/>\n&#8230; in <b>altered<\/b> ways like &#8230;<br \/>\n<code><br \/>\nfunction plus(ih,ihep) {<br \/>\nvar outihep=ihep;<br \/>\nif (<b>eval(\"<\/b>emoticons<b>\" + verbsuffix + \"<\/b>[<b>\" + <\/b>ih<b> + \"<\/b>]<b>\")<\/b>.indexOf('&lt;p&gt;') != -1) {<br \/>\noutihep += ' (' + <b>eval(\"<\/b>emoticons<b>\" + verbsuffix + \"<\/b>[<b>\" + <\/b>ih<b> + \"<\/b>]<b>\")<\/b>.split('&lt;p&gt;')[1].split('&lt;')[0] + ')';<br \/>\n}<br \/>\nreturn outihep;<br \/>\n}<br \/>\n<\/code><br \/>\n&#8230; in that <i>abstracted<\/i> way &#8230; noting that sometimes you don&#8217;t need the &#8220;eval()&#8221; encasings &#8230;<\/li>\n<li>and so, working through the code this way it just falls to the coder to define new members for all the arrays for all the new sports (ours is &#8220;rowing&#8221; today), some of those new arrays (like for rowing are <i>emoticonsrowing[]<\/i> and <i>choicesrowing[]<\/i>) to involve &#8230;<\/li>\n<li>looking up emoji definitions from &#8230;\n<ol>\n<li><a title=\"Emojipedia\" href=\"http:\/\/www.emojipedia.org\" target=\"_blank\">Emojipedia<\/a><\/li>\n<li><a title=\"FileFormation Information website\" href=\"http:\/\/www.fileformat.info\" target=\"_blank\">FileFormat Information<\/a><\/li>\n<li><a title=\"Iemoji website\" href=\"http:\/\/www.iemoji.com\" target=\"_blank\">Iemoji<\/a><\/li>\n<\/ol>\n<p>&#8230; not forgetting to &#8230;<\/li>\n<li>make sure the event logics work for multiple sport scenarios &#8230; but mostly they do by sticking to the principles above &#8230; especially for the &#8230;<\/li>\n<li>new HTML select (dropdown) element allows the user to pick a sport<\/li>\n<\/ul>\n<p>Remaining a work in progress, you can try out our <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.htm\" target=\"_blank\">live run<\/a> link that has underlying HTML and Javascript and CSS <a title=\"emoji_walk_animation.htm\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html--GETME\" target=\"_blank\">emoji_walk_animation.htm<\/a>, and which changed in <a title=\"emoji_walk_animation.html\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html--GETME\" target=\"_blank\">this way<\/a> regarding today&#8217;s genericization work. We hope it gives you food for thought.<\/p>\n<hr \/>\n<p id=\"rgdtt\">Previous relevant <a title=\"Rainbow Games Double Transformation Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/rainbow-games-double-transformation-tutorial\/\" target=\"_blank\">Rainbow Games Double Transformation Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Rainbow Games Double Transformation Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation_dt.jpg\" alt=\"Rainbow Games Double Transformation Tutorial\" \/><\/a><\/p>\n<p>We were on the &#8220;road to personalization&#8221; for the web application game we started with yesterday&#8217;s <a title=\"Rainbow Games Primer Tutorial\" href=\"#rgpt\">Rainbow Games Primer Tutorial<\/a> when &#8220;an old chestnut&#8221; came up again. It&#8217;s happened before, the desire to &#8220;double transform&#8221; in CSS came about from our emoji &#8230;<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"font-size: 36px;\">\u200d\u2640\ufe0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8230; table cell <i>mirroring<\/i> styling as per &#8230;<\/p>\n<p><code><br \/>\n&lt;style&gt;<br \/>\n* { overflow-x: visible; }<\/code><\/p>\n<p>select { font-size: 36px; }<\/p>\n<p>td.runner { width: 50px; word-wrap: break-word; font-size: 36px;<br \/>\n<i>transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1);<\/i><br \/>\n} \/\/<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"font-size: 36px; transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1);\">\u200d\u2640\ufe0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>tr { max-height: 40px; }<br \/>\n&lt;\/style&gt;<\/p>\n<p>&#8230; necessary to make our running emojis run from left to right (that, alas, also transformed any accompanying &#8230;<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"font-size: 36px; transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1);\">\u200d\u2640\ufe0f<\/p>\n<p style=\"display: block; font-size: 12px;\">Florence<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8230; name), was added to in <b>this double transformational clause<\/b> to prove what this <a title=\"Great link, thanks\" href=\"https:\/\/stackoverflow.com\/questions\/5406368\/can-you-use-css-to-mirror-flip-text\" target=\"_blank\">wonderful web page<\/a> advice had to say. In other words, a &#8220;double transform&#8221; CSS styling scenario like the one below &#8230;<\/p>\n<p><code><br \/>\n&lt;style&gt;<br \/>\n* { overflow-x: visible; }<\/code><\/p>\n<p>select { font-size: 36px; }<\/p>\n<p>td.runner { width: 50px; word-wrap: break-word; font-size: 36px;<br \/>\n<i>transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1);<\/i><br \/>\n}<br \/>\ntr { max-height: 40px; }<\/p>\n<p><b>p {<br \/>\ndisplay: block;<br \/>\nfont-size: 12px;<br \/>\n-webkit-transform: matrix(-1, 0, 0, 1, 0, 0);<br \/>\n-moz-transform: matrix(-1, 0, 0, 1, 0, 0);<br \/>\n-o-transform: matrix(-1, 0, 0, 1, 0, 0);<br \/>\ntransform: matrix(-1, 0, 0, 1, 0, 0);<br \/>\n} <\/b> \/\/<\/p>\n<table style=\"width: 50px;\">\n<tbody>\n<tr style=\"width: 50px;\">\n<td style=\"width: 50px; font-size: 36px; transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1);\">\u200d\u2640\ufe0f<\/p>\n<p style=\"display: block; font-size: 12px; -webkit-transform: matrix(-1, 0, 0, 1, 0, 0); -moz-transform: matrix(-1, 0, 0, 1, 0, 0); -o-transform: matrix(-1, 0, 0, 1, 0, 0); transform: matrix(-1, 0, 0, 1, 0, 0);\">Florence<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/style&gt;<\/p>\n<p>&#8230; works as a &#8220;double transform&#8221; to first &#8230;<\/p>\n<ul>\n<li>mirror (image) flip the table cell (td) emoji data &#8230; but us appending some &#8220;Runner Name&#8221; textual data underneath also, annoyingly, got flipped until &#8230;<\/li>\n<li>within that (same) table cell (td) element and after the emoji data we append an HTML <a title=\"HTML p tag information from w3schools\" href=\"https:\/\/www.w3schools.com\/tags\/tag_p.asp\" target=\"_blank\">p<\/a>(aragraph) element to both &#8230;\n<ol>\n<li>introduce a new HTML element type into the (CSS styling) mix &#8230; and to &#8230;<\/li>\n<li>introduce a new CSS transformation type, the matrix &#8230; perhaps either or both new parts to the problem critical to its success when, believe me, lots of other approaches don&#8217;t work<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>&#8230; to personalize the &#8220;runners&#8221; and &#8220;users&#8221;, optionally, &#8220;into the game&#8221;, by allowing the &#8220;user&#8221; to name their &#8220;runners&#8221; and allow for a &#8220;runner energy&#8221; setting be a bit randomized, to add for some other interest &#8220;variety&#8221; to the game&#8217;s workings. So, still a work in progress that you can try out at our <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html\" target=\"_blank\">live run<\/a> link that has underlying HTML and Javascript and CSS <a title=\"emoji_walk_animation.html\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html-GETME\" target=\"_blank\">emoji_walk_animation.html<\/a>, and which changed in <a title=\"emoji_walk_animation.html\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html-GETME\" target=\"_blank\">this way<\/a> regarding today&#8217;s work.<\/p>\n<hr \/>\n<p id=\"rgpt\">Previous relevant <a title=\"Rainbow Games Primer Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/rainbow-games-primer-tutorial\/\" target=\"_blank\">Rainbow Games Primer Tutorial<\/a> is shown below.<\/p>\n<p><a href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html\" target=\"_blank\"><img decoding=\"async\" style=\"float: left;\" title=\"Rainbow Games Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.jpg\" alt=\"Interesting Places Primer Tutorial\" \/><\/a><\/p>\n<p>It&#8217;s been a while since we&#8217;ve written any conventional HTML and Javascript and CSS game. Today&#8217;s game uses the &#8220;emoticon&#8221; section of the Emoji character set, defaulting so far, to the &#8220;running woman&#8221; emoji featuring in <a title=\"Compound Emoji WordPress Usage Tutorial\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/compound-emoji-wordpress-usage-tutorial\/\" target=\"_blank\">Compound Emoji WordPress Usage Tutorial<\/a>.<\/p>\n<p>It&#8217;s the early days of our &#8220;Rainbow Games&#8221; web application, and we&#8217;re starting with the animation featuring horizontal hashtag navigation techniques for a running race start to our game. Where it finishes? Hard to say! Today, we&#8217;ve looked at &#8220;splits&#8221; and a finish line.<\/p>\n<p>You can try out our burgeoning <a title=\"Click picture\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html\" target=\"_blank\">live run game concept<\/a> link that has underlying HTML and Javascript and CSS <a title=\"emoji_walk_animation.html\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/emoji_walk_animation.html_GETME\" target=\"_blank\">emoji_walk_animation.html<\/a>.<\/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=\"#d35745\">this<\/a> too.<\/p>\n<div id=\"d35745\" 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=\"#d35768\">this<\/a> too.<\/p>\n<div id=\"d35768\" 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=\"#d35879\">this<\/a> too.<\/p>\n<div id=\"d35879\" 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=\"#d35937\">this<\/a> too.<\/p>\n<div id=\"d35937\" 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=\"#d36261\">this<\/a> too.<\/p>\n<div id=\"d36261\" 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=\"#d36272\">this<\/a> too.<\/p>\n<div id=\"d36272\" 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=\"#d36311\">this<\/a> too.<\/p>\n<div id=\"d36311\" 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=\"#d36342\">this<\/a> too.<\/p>\n<div id=\"d36342\" 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=\"#d36381\">this<\/a> too.<\/p>\n<div id=\"d36381\" 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=\"#d36392\">this<\/a> too.<\/p>\n<div id=\"d36392\" 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=\"#d36404\">this<\/a> too.<\/p>\n<div id=\"d36404\" 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=\"#d37462\">this<\/a> too.<\/p>\n<div id=\"d37462\" 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=\"#d37486\">this<\/a> too.<\/p>\n<div id=\"d37486\" 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=\"#d37507\">this<\/a> too.<\/p>\n<div id=\"d37507\" 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=\"#d37729\">this<\/a> too.<\/p>\n<div id=\"d37729\" 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=\"#d37748\">this<\/a> too.<\/p>\n<div id=\"d37748\" 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=\"#d37769\">this<\/a> too.<\/p>\n<div id=\"d37769\" 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=\"#d37791\">this<\/a> too.<\/p>\n<div id=\"d37791\" 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=\"#d37847\">this<\/a> too.<\/p>\n<div id=\"d37847\" 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=\"#d37882\">this<\/a> too.<\/p>\n<div id=\"d37882\" 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=\"#d37894\">this<\/a> too.<\/p>\n<div id=\"d37894\" 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=\"#d38002\">this<\/a> too.<\/p>\n<div id=\"d38002\" 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=\"#d38050\">this<\/a> too.<\/p>\n<div id=\"d38050\" 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='#d38217' onclick='var dv=document.getElementById(\"d38217\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/timeline\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d38217' 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='#d38250' onclick='var dv=document.getElementById(\"d38250\"); dv.innerHTML = \"<iframe width=670 height=600 src=\" + \"\/\/www.rjmprogramming.com.au\/ITblog\/tag\/diff\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d38250' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday, with Google Timeline Chart Clipboard Tutorial, we had another (&#8220;when&#8221;) sub-guinea pig situation like the Area Chart was a &#8220;where&#8221; sub-guinea pig. Now, you may be sick of our &#8220;guinea pig&#8221; business &#8230; nga, nga, nga nga, ngaaaaair keeps &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-calendar-chart-difference-report-planning-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":[91,2543,111,113,126,127,130,174,180,183,199,214,1707,231,2531,265,283,301,327,328,380,469,1853,481,513,518,578,587,590,2532,626,630,631,699,2533,2020,734,745,2126,760,1668,795,796,876,907,932,944,970,980,997,1002,1021,1038,2538,1866,1129,1168,1729,1319,1369,1493],"class_list":["post-38250","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-apple","tag-area-chart","tag-attachment","tag-audio","tag-background","tag-background-image","tag-bar-chart","tag-button","tag-calendar","tag-camera","tag-chart","tag-clipboard","tag-co-ordinates","tag-column-chart","tag-comma-separated-values","tag-copy","tag-csv","tag-date","tag-did-you-know","tag-diff","tag-email","tag-ftp","tag-ftpmanager","tag-geographicals","tag-google","tag-google-chart","tag-html5","tag-iframe","tag-image","tag-include","tag-ios","tag-ipad","tag-iphone","tag-line-chart","tag-line-feed","tag-linear-gradient","tag-macbook-pro","tag-map","tag-map-chart","tag-media","tag-mime-type","tag-mobile","tag-mobile-app","tag-opacity","tag-paste","tag-php","tag-pie-chart","tag-post","tag-presentation","tag-programming","tag-protocol","tag-quicktime-player","tag-reference","tag-reply","tag-select","tag-sftp","tag-software-integration","tag-timeline","tag-tutorial","tag-video","tag-youtube"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/38250"}],"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=38250"}],"version-history":[{"count":2,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/38250\/revisions"}],"predecessor-version":[{"id":38259,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/38250\/revisions\/38259"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=38250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=38250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=38250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}