Emoji Name Search Fairy Story Creation Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
โ˜ž
๐Ÿ“–

Emoji Name Search Fairy Story Creation Tutorial

Emoji Name Search Fairy Story Creation Tutorial

Itโ€™s time to discuss another โ€œbespokeโ€ web application user of the same underlying Emoji Name Searching functionality (based on the brilliant Emoji CSS, thanks) we last talked about with the recent Emoji Name Search Geo Chart WorldBank Tutorial.

Todayโ€™s โ€œbespokeโ€ usage stands alone as this new Fairyโœ‚Story Assistant web application encouraging the user to create their own fairy story โ€ฆ

  • in an HTML div element set to contenteditable=โ€trueโ€ to be able to add underlying HTML and/or Emoji entity information into your Fairy Story, as you see fit โ€ฆ being helped out by โ€ฆ
  • a bank of HTML iframe elements point at incarnations of the โ€œEmoji Name Searchโ€ engine for Emoji categories (that we think may assist you with your story) of โ€ฆ
    1. Fairy Story Characters
    2. Fairy Story People
    3. Fairy Story Times
    4. Fairy Story Transport

Any difficulties here? Glad you asked. Found that the HTML div cursor needed consideration after appending a โ€œskullโ€ as per the HTML appended into the HTML div innerHTML โ€ฆ



<i class="em em-skull"></i>

โ€ฆ leaving it hard to keep adding more to the story. We needed to actually add โ€ฆ



<i class="em em-skull"></i>&nbsp;

โ€ฆ to append a hard blank that resets out of the italics and the display:block realm of the emojis, โ€œwe thinksโ€, now, on reflection. On adding an Emoji via the helper HTML iframe a links supplied, also, we wait a few seconds, then set the HTML div element cursor to its end, and for the code of this we would like to thank this excellent linkโ€˜s code, thanks.

Another thing that held us up for some time was our initial wrong placement of the document.write() document.body creation into the head (document.head) section. This caused the link element call of the CSS of the excellent Emoji CSS (Emoji Name Search engine underpinning) to be ignored, until it finally tweaked with us that document.write() coding sections often work best with the body (document.body) section, and so it came to pass with todayโ€™s work, as well.

That leaves us with code considerations.



Previous relevant Emoji Name Search Geo Chart WorldBank Tutorial is shown below.

Emoji Name Search Geo Chart WorldBank Tutorial

Emoji Name Search Geo Chart WorldBank Tutorial

A major issue when designing โ€œwhereโ€ of life web applications is โ€œperspectiveโ€. One userโ€™s view of the world can be entirely different to another. To gather โ€œperspectivesโ€ into a common frame, it is often good to โ€œzoom outโ€. That is what the Google Charts Geo Chart specializes in. While it is great that the Map Chart is zoomable, it is often hard to judge, first up, what is ideal as that zoom level. Forget that with the Geo Chart in the sense we use it as a whole world display, with the country of interest, only, highlighted. Mind you, if you read the blurb about it, you will discover it can also display regional areas of countries. Cute, huh?!

What about more country statistics from that world view perspective? Well, we turn to the excellent resources of the WorldBank for links to their excellent website, regarding this, adding onto yesterdayโ€™s progress with Emoji Name Search Map Chart Weather Tutorial.

This WorldBank website HTML a link exemplified yet another reveal nuance we canโ€™t remember using before, perhaps because we thought it kludgy, or that the search engines wouldnโ€™t be happy. Bear that in mind as we describe yet another way to โ€ฆ

  1. start with an invisible HTML a link as per (and weโ€™ll include a line feed and an HTML h4 element (its initial contents irrelevant to our discussion just now) after) โ€ฆ


    <a target=_blank id=wba href= title=></a><br><h4 id=hmailto> ... </h4>


    โ€ฆ see how an a link can be invisible just by having a blank innerHTML
  2. so later the user clicks/touches the Emoji Flag of a country, say, Eritrea, as per todayโ€™s tutorial picture, leading to โ€ฆ
  3. that HTML h4 elementโ€™s innerHTML is populated with the HTML iframes that show the Map Chart and Geo Chart, and the parentโ€˜s โ€ฆ

    โ€ฆ document.body onload event (from a PHP perspective) is made to โ€ฆ


    echo "<!doctype html><html><body onload=\" if (parent.document.getElementById('wba')) { parent.document.getElementById('wba').title='WorldBank'; parent.document.getElementById('wba').innerHTML='WorldBank'; parent.document.getElementById('wba').href='//www.worldbank.org/en/country/" . str_replace(" ","%20",strtolower(trim($ctyis))) . "'; } else if (parent.document.getElementById('hmailto')) { parent.document.getElementById('hmailto').innerHTML+='<br><a id=wba target=_blank title=WorldBank href=//www.worldbank.org/en/country/" . str_replace(" ","%20",strtolower(trim($ctyis))) . ">WorldBank</a>'; } \"><table style='width:100%;height:550px;'><tr><td><iframe style='width:100%;height:550px;' src=\"" . $urlis . "\"></iframe></td><td style='width:320px;'><iframe style='width:100%;height:550px;' src='" . $alturlis . "'></iframe></td></tr></table></body></html>";


    โ€ฆ populate that HTML (WorldBank website pointing) a linkโ€™s innerHTML and title

  4. to โ€œrevealโ€ it โ€ฆ cute, huh?! โ€ฆ doh, I grant you โ€ฆ but cute, huh!? โ€ฆ grant doh I you โ€ฆ cute huh but?!

Bear in mind, above, that originally we had the a link sitting inside the h4 element, courtesy of Javascript DOM (creating the a link from scratch), but this method caused the iframe elements to lose their content, perhaps because of that <br> line feed?

Think, perhaps, in web application work, there may be more than a hundred ways to make an HTML element invisible! On this topic, have you ever used an HTML input type=text element position:absolute; โ€œoff the screenโ€ to get around that problem where the web browser is looking for the next textbox to tab to, and annoyingly picks the web browserโ€™s address bar? Think width=0% or width=0px? Think maybe now why search engines may get annoyed at some of the ease with which this can all happen. Javascript DOM has a labyrinthine feel to it, which can fascinate and annoy all at once, and depending on who you talk to. Talk to me, and Iโ€™ll say that I really like Javascript DOM work, though.


Previous relevant Emoji Name Search Map Chart Weather Tutorial is shown below.

Emoji Name Search Map Chart Weather Tutorial

Emoji Name Search Map Chart Weather Tutorial

If youโ€™ve been studying the code of our hierarchy for our Emoji Flags of the World web application โ€ฆ

โ€ฆ am sure youโ€™ll have noticed how bottom heavy it is on the โ€œchildโ€ as far as functionality goes. What we like to call โ€œthe hard working duck syndromeโ€. Partly, that is because we see the Google Charts Map Chart interface we have as being a very useful โ€œmeeting pointโ€ with interfacing web applications tending towards the โ€œwhereโ€ of life.

Todayโ€™s job, extending yesterdayโ€™s Emoji Name Search Map Chart Tutorial is to add Map Chart interfacing to the great Weather Underground and its great API service for autocomplete name searches for weather (and hurricane) information โ€ฆ thanks.

The changes are again just to that โ€œhard working duckโ€ Map Chart interface โ€œchildโ€ web application, as for yesterdayโ€™s work. We were very keen to do this, especially because โ€ฆ

  • Weather Underground database works most succinctly with Placename, Country identification pairs, better than for the โ€ฆ
  • Continent/Placename setup of (PHP) Timezones

โ€ฆ 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.


Previous relevant Emoji Name Search Map Chart Tutorial is shown below.

Emoji Name Search Map Chart Tutorial

Emoji Name Search Map Chart Tutorial

We now have a three tier functionality hierarchy for our Emoji Flags of the World web application โ€ฆ

โ€ฆ all made so very possible when web applications sit in the same domain and you utilize the HTML iframe element.

We wanted to enhance its integration by โ€ฆ

  • adding in โ€œlocality pinsโ€ for all PHP Timezone places in the country of interest
  • 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)

To work the latter of these we called on recent experience with the โ€œFifth Beatleโ€ discussion in Emoji Name Search Primer Tutorial โ€ฆ

We got quite excited recently with Rainbow Games PHP Emoji Tutorial when we added a (fourth Beatle) emoji helper, called Emoji Terra, into the mix of tools to gather emoji information. Today, weโ€™ve got a new Emoji Search web application that introduces a new (fifth Beatle(?)) emoji helper tool to add into the โ€œhow we see itโ€ mix โ€ฆ

We found that Emoji Terra 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 โ€ฆ



HTTP://www.emojiterra.com/flag-for-[CountryNameSpacesMakeMinusSignsLowerCase]

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.

As far as the former goes, we again called on the PHP DateTimeZone 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 โ€œwhereโ€ and โ€œwhenโ€ aspects of our Google Chart Map Chart interfacing.


Previous relevant Emoji Name Search Timezone Tutorial is shown below.

Emoji Name Search Timezone Tutorial

Emoji Name Search Timezone Tutorial

Yesterdayโ€™s Emoji Name Search Map Tutorial was a step in the direction of โ€œwhereโ€ functionality, but because PHP teams up with the supervisory HTML โ€œEmoji World Flagsโ€ web application, to make all this happen, there is the opportunity to add interest by adding a โ€œwhenโ€ aspect to how it works.

As weโ€™ve said many times now, should you have access to PHP, you also have access to its DateTimeZone 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โ€™s (supervisory) liveโœ‚runโ€˜s world_flagsโšซhtml HTML and Javascript code.

But it is not HTML code that changes today. It is its PHP partner emoticon_keyboard_shortcutsโšซphp changed in thisway, that arranges that its call of Google Charts Map Chart passes across a new URL โ€ฆ



&ccode=[ISO 2 letter Country Code]

โ€ฆ argument that uses a new PHP function as below (arrays shortened for practicality purposes) โ€ฆ



<?php

function inctycodecheck($incd, $sofar) {

$nearname=["Africa/Abidjan","Africa/Accra", ... ]; // array of Timezone names

$retv="";

$retd="";

$otz = new DateTimeZone("UTC");

$jj=0;

$origin_dt = new DateTime("now", $otz);

for ($best1=0; $best1<sizeof($nearname); $best1++) {

try {

$tz = new DateTimeZone($nearname[$best1]);

$cloc = $tz->getLocation();

$ctrycode = $cloc['country_code'];

if (strtoupper($incd) == strtoupper($ctrycode)) {

$remote_dt = new DateTime("now", $tz);

$offset = ($tz->getOffset($remote_dt) - $otz->getOffset($origin_dt)) / 3600;

$newp=$retd . $nearname[$best1] . "/" . $remote_dt->format('Y-m-d_H:i:s') . " (GMT" . $offset . ")";

$huhs=explode(" (GMT" . $offset . ")", $retv);

if (sizeof($huhs) == 2) {

if (explode("/", $newp)[0] != explode("/", explode(",", $huhs[0])[-1 + sizeof(explode(",", $huhs[0]))])[0]) {

$huhs=explode("youwillneverfindthis", $retv);

}

}

if (($sofar + strlen(urlencode(($retv . $newp)))) < 950 && $jj < 10 && sizeof($huhs) == 1) {

$retv.=$newp;

$retd=",";

$jj++;

}

}

} catch (Exception $exc) { }

}

return $retv;

}

?>

โ€ฆ called later in the code with the new block of code as per โ€ฆ



<?php

$urlis=urldecode($_GET['gmc']); // URL to point at template Google Chart Map Chart call for Country of interest

if (strpos($urlis, ',,') !== false) {

$urlis=str_replace(",,", urlencode($latis . "," . $longis . ","), $urlis);

} else {

$urlis=str_replace(urlencode(",,"), urlencode($latis . "," . $longis . ","), $urlis);

}

if (isset($_GET['ccode'])) {

$urlis=str_replace("&onclick=", "%20" . urlencode(inctycodecheck(urldecode($_GET['ccode']), (strlen($urlis) + 3))) . "&onclick=", $urlis); // appends to the title argument

}


if (isset($_SERVER['HTTPS'])) {

if ($_SERVER['HTTPS'] == "on") {

header("Location: https:" . $urlis);

} else {

header("Location: http:" . $urlis);

}

} else {

header("Location: http:" . $urlis);

}

exit;

?>


Previous relevant Emoji Name Search Map Tutorial is shown below.

Emoji Name Search Map Tutorial

Emoji Name Search Map Tutorial

Yesterdayโ€™s posted data Emoji Name Search Posting Tutorial functionality opened the door to โ€œwhereโ€ web application (software) integration, because the wonderful Wikipedia has compiled Latitude,Longitude co-ordinate pairs for those countries, and that is our foot in the door to place an HTML a link under the Emoji flags, that points to our favourite โ€œwhereโ€ interfacing tool, the Google Charts Map Chart.

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 โ€ฆ

  • HTML iframe element name=gcmi id=gcmi initially invisible โ€ฆ โ€œpopulated byโ€ โ€ฆ
  • HTML a element target=gcmi href=[URL to Map Chart for Country of Interest] onclick=aoc(); โ€ฆ


    function aoc() {

    document.getElementById('gmci').style.width='450px';

    document.getElementById('gmci').style.height='450px';

    document.getElementById('gmci').style.display='inline-block';

    }

Another way to zoom around the world online!

You can try the Emojiโœ‚Flags live run (with underlying world_flagsโšซhtml changed thisway) or the other Emoji functionalities that have this liveโœ‚run and/or its PHP source code emoticon_keyboard_shortcutsโšซphp changed in thisway to extend its software integration capabilities.


Previous relevant Emoji Name Search Posting Tutorial is shown below.

Emoji Name Search Posting Tutorial

Emoji Name Search Posting Tutorial

Yesterdayโ€™s Emoji Name Search Tailoring Tutorial 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โ€™s $_GET[] array URL ? and & delimited URLs? We, having PHP serverside code at our disposal, can turn to $_POST[] (HTML) method=POST form action=[hereโ€™sLookingAtYouKid] scenarios, to get around this issue. The unfortunate side effect of this is that the HTML mailto: a link (email client) method of sharing your Emoji web application relies on that $_GET[] approach, that is, unless you wrote a whole โ€œbespokeโ€ web application to help out, like we do today for our new Emoji โ€œWorld Flagsโ€ web application with this liveโœ‚run, with this HTML and Javascript world_flagsโšซhtml source code.

That new โ€œsupervisorโ€ being a guinea pig idea into the $_POST[] thinking, we add some HTML form element input type=text additions to allow for, out of โ€ฆ

  • Emoji look class โ€ฆ and โ€ฆ
  • Wording next to Emoji โ€ฆ and โ€ฆ
  • URL of Wordingโ€™s link, be that substituted or appended

โ€ฆ mapped values, optionally, off a newly offered HTML form element input type=text for this mapped comma or blank separated word list.

Perhaps, now, you โ€œlong data set thinkersโ€ want to try the liveโœ‚run and/or its PHP source code emoticon_keyboard_shortcutsโšซphp changed in thisway to extend its data set size capabilities.


Previous relevant Emoji Name Search Tailoring Tutorial is shown below.

Emoji Name Search Tailoring Tutorial

Emoji Name Search Tailoring Tutorial

Information Technology is full of โ€œbuzz wordsโ€, and am sure you wince at some to all of them yourselves. Thatโ€™s a bit why am using โ€œTailoringโ€ rather than โ€ฆ

  • sharing
  • personalization

โ€ฆ to give you a slumberrest from having to look under struck throughdeleted wording to look for hidden โ€œbuzz wordsโ€terminology that makes your harehair sit upstand watchingon Bugs Bunnyend.

We think, perhaps, that emojis can be important for young โ€œwould beโ€ programmers to launch into. Personally wonder how many โ€œwould beโ€ programmers give the game up far too soon just because they donโ€™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.

In todayโ€™s extension to the functionality started with yesterdayโ€™s Emoji Name Search Primer Tutorial we separate the Emoji Terra aspects to how it works and allow the user to โ€ฆ

  • supply an Emoji Word List of interest
  • perhaps supply a heading and subheading to describe the โ€œconceptโ€ of that list
  • supply either a โ€ฆ
    1. URL prefix โ€ฆ or โ€ฆ
    2. URL with the ~ (tilde) character where you want, substituted, your emoji name

    โ€ฆ to be a navigation destination in that similar new window navigation we used to access Emoji Terra โ€ฆ

  • presenting all this in an HTML form action=[hereโ€™sLookingAtYouKid] method=GET โ€ฆ
  • that method=GET opening the door to be able to offer an email client engine method to โ€œshareโ€email somebody the link to a screen that looks like the one youโ€™re seeing

Of course, weโ€™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 โ€ฆ

  • Fruit and Vegetables via Wikipedia at https://en.wikipedia.org/wiki/ as a prefix โ€ฆ and โ€ฆ
  • Astrology via Cafe Astrology at https://cafeastrology.com/~dailyhoroscope.html via ~ (tilde) character substitution

โ€ฆ each of which (and any you make will also) feature a link to the HTML mailto: a link out through the email client and to your recipient who can click the email link to โ€œshareโ€compare notes.

Perhaps, now, you want to try the liveโœ‚run and/or its PHP source code emoticon_keyboard_shortcutsโšซphp changed in thisway to extend its functionality, involving a reveal favourite of ours, the use of HTML(5)โ€™s details (and summary) element.

You can also see this play out at WordPress 4.1.1โ€™s Emoji Name Search Tailoring Tutorial.


Previous relevant Emoji Name Search Primer Tutorial is shown below.

Emoji Name Search Primer Tutorial

Emoji Name Search Primer Tutorial

We got quite excited recently with Rainbow Games PHP Emoji Tutorial when we added a (fourth Beatle) emoji helper, called Emoji Terra, into the mix of tools to gather emoji information. Today, weโ€™ve got a new Emoji Search web application that introduces a new (fifth Beatle(?)) emoji helper tool to add into the โ€œhow we see itโ€ mix below โ€ฆ

  • Emojipedia is good for looking up Emoji names or concepts in words
  • FileFormat Information is great for HTML Entity determinations for your less complex Emojis
  • Iemoji is great for HTML Entity determinations for Emojis of all complexities
  • Emoji Terra performs similar functionality as Iemoji but has a permalink organization more friendly to an โ€œemoji search via emoji titleโ€ query, and that has suited our purposes today, and before, so, thanks a lot
  • Emoji CSS performs similar functionality to Emojipedia, but has a pictorial view of Emoji names as well, right from the word go, thanks

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 โ€ฆ

  • the Emoji (match) list look (as an Emoji โ€œdisplayโ€) โ€ฆ and โ€ฆ
  • an HTML a link which is that Emojiโ€™s short name โ€ฆ linking to โ€ฆ
  • an Emoji Terra webpage with more detail, including HTML Entity information if โ€œshort nameโ€ is unique, or one extra click away, if not

Maybe you need to try the liveโœ‚run and/or its PHP source code emoticon_keyboard_shortcutsโšซphp to download, perhaps?


Previous relevant Rainbow Games PHP Emoji Tutorial is shown below.

Rainbow Games PHP Emoji Tutorial

Rainbow Games PHP Emoji Tutorial

In order to take that further genericization step onto the achievements of yesterdayโ€™s Rainbow Games Genericization Tutorial to get onto (the mathematics Induction principle inspired) โ€ฆ

  • prove for the first case
  • prove for the second case
  • prove for the nth case

โ€ฆ we had a choice of โ€ฆ

  • continue on (with) the HTML code creation of new โ€œhardcodedโ€ arrays (managed by Javascript eval abstractional approach) โ€ฆ or โ€œbite the bulletโ€ and โ€ฆ
  • try to work out a generic โ€œemoji lookerer uppererโ€ arrangement

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 โ€ฆ

  1. Emojipedia
  2. FileFormat Information
  3. Iemoji

โ€ฆ and were a bit surprised that we could not quite swing a generic method to glean the information, so donโ€™t know whether our new โ€œplayerโ€ is โ€œRingo Starrโ€ or not, but can tell you this, โ€œits beat is much better than its biteโ€ โ€ฆ chortle, chortle โ€ฆ

Emoji Terra performs similar functionality as Iemoji but has a permalink organization more friendly to an โ€œemoji search via emoji titleโ€ query, and that suits our purposes today, so, thanks a lot. Without this query by โ€œemoji titleโ€ possibility weโ€™d have been forced to adopt more of those โ€œhardcodedโ€ arrays, which would have been alright, but this second approach opens the door to โ€œsportโ€ events in โ€œThe Rainbow Gamesโ€ web application using emojis of the future (ie. they havenโ€™t been invented yet).

How to work the interfacing to Emoji Terra?

This new PHP emoji_lookupโšซphp treats the โ€œprove for the nth caseโ€ sports as ones to โ€ฆ

The more detailed specifics of the file_get_contents of Emoji Terra lookup above are โ€ฆ

  • build up a URL starting with HTTP://emojiterra.com/ โ€ฆ then โ€ฆ
  • in emojiland arrangements there are two genders (as our prefixes if you will) โ€ฆ woman- and man-
  • then add on a โ€œmiddleโ€ sport descriptor (eg. biking)
  • in emojiland emoticonland arrangements there are five descriptors (as our suffixes if you will) โ€ฆ -dark-skin-tone, -medium-dark-skin-tone, -medium-skin-tone, -medium-light-skin-tone, -light-skin-tone
  • for that set of 2x1x5=10 URLs glean what โ€œHTML decโ€ (HTML Entity) information you can glean via the file_get_contents call of the Emoji Terra URLs described above (eg. Emoji: Woman Biking: Dark Skin Tone) โ€ฆ built into a Javascript array string to โ€œplug intoโ€ the previously read HTML partner source code, and amended to output as the web page the user sees

Sports of the future in emojiland? Just ask for the equivalent of biking (above) off the user via a Javascript prompt window (on the proviso you read Conditional Alternative to Javascript Popup Windows in iOS Tutorial first please).


Previous relevant Rainbow Games Genericization Tutorial is shown below.

Rainbow Games Genericization Tutorial

Rainbow Games Genericization Tutorial

What would help genericize the recent Rainbow Games Double Transformation Tutorial โ€œRainbow Gamesโ€ web application? How about introducing another sport?

Again, in honour of โ€œonions of the 4th dimensionโ€ approaches, we mainly, turn to the power of Javascriptโ€™s eval methodology to achieve this abstracted feeling to our web application. Today, with this, we go two thirds of the way along the โ€œMathematical Inductionโ€ approach โ€ฆ

  • prove for the first case
  • prove for the second case
  • prove for the nth case

How does this use of Javascript eval manifest itself in this way?

  • there are two arrays that work with the โ€œcontentโ€ of our โ€œRainbow Gamesโ€ sport(s) (well, at least, the first โ€œsprint runningโ€ sport) called emoticons[] and choices[]
  • wherever we find references in the code to either of these two arrays we start to involve the global variable verbsuffix โ€ฆ


    var verb='Sprint';

    var verbs=['Sprint','Row'];

    var anotherverb='run';

    var verbsuffix='';


    โ€ฆ in altered ways like โ€ฆ


    function plus(ih,ihep) {

    var outihep=ihep;

    if (eval("emoticons" + verbsuffix + "[" + ih + "]").indexOf('<p>') != -1) {

    outihep += ' (' + eval("emoticons" + verbsuffix + "[" + ih + "]").split('<p>')[1].split('<')[0] + ')';

    }

    return outihep;

    }


    โ€ฆ in that abstracted way โ€ฆ noting that sometimes you donโ€™t need the โ€œeval()โ€ encasings โ€ฆ
  • 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 โ€œrowingโ€ today), some of those new arrays (like for rowing are emoticonsrowing[] and choicesrowing[]) to involve โ€ฆ
  • looking up emoji definitions from โ€ฆ
    1. Emojipedia
    2. FileFormat Information
    3. Iemoji

    โ€ฆ not forgetting to โ€ฆ

  • make sure the event logics work for multiple sport scenarios โ€ฆ but mostly they do by sticking to the principles above โ€ฆ especially for the โ€ฆ
  • new HTML select (dropdown) element allows the user to pick a sport

Remaining a work in progress, you can try out our liveโœ‚run link that has underlying HTML and Javascript and CSS emoji_walk_animationโšซhtm, and which changed in thisway regarding todayโ€™s genericization work. We hope it gives you food for thought.


Previous relevant Rainbow Games Double Transformation Tutorial is shown below.

Rainbow Games Double Transformation Tutorial

Rainbow Games Double Transformation Tutorial

We were on the โ€œroad to personalizationโ€ for the web application game we started with yesterdayโ€™s Rainbow Games Primer Tutorial when โ€œan old chestnutโ€ came up again. Itโ€™s happened before, the desire to โ€œdouble transformโ€ in CSS came about from our emoji โ€ฆ

๐Ÿƒ๐Ÿพโ€โ™€๏ธ

โ€ฆ table cell mirroring styling as per โ€ฆ



<style>

* { overflow-x: visible; }



select { font-size: 36px; }



td.runner { width: 50px; word-wrap: break-word; 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);

} //







๐Ÿƒ๐Ÿพโ€โ™€๏ธ

tr { max-height: 40px; }

</style>

โ€ฆ necessary to make our running emojis run from left to right (that, alas, also transformed any accompanying โ€ฆ

๐Ÿƒ๐Ÿพโ€โ™€๏ธ

Florence

โ€ฆ name), was added to in this double transformational clause to prove what this wonderful web page advice had to say. In other words, a โ€œdouble transformโ€ CSS styling scenario like the one below โ€ฆ



<style>

* { overflow-x: visible; }



select { font-size: 36px; }



td.runner { width: 50px; word-wrap: break-word; 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);

}

tr { max-height: 40px; }



p {

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



</style>

โ€ฆ works as a โ€œdouble transformโ€ to first โ€ฆ

  • mirror (image) flip the table cell (td) emoji data โ€ฆ but us appending some โ€œRunner Nameโ€ textual data underneath also, annoyingly, got flipped until โ€ฆ
  • within that (same) table cell (td) element and after the emoji data we append an HTML p(aragraph) element to both โ€ฆ
    1. introduce a new HTML element type into the (CSS styling) mix โ€ฆ and to โ€ฆ
    2. introduce a new CSS transformation type, the matrix โ€ฆ perhaps either or both new parts to the problem critical to its success when, believe me, lots of other approaches donโ€™t work

โ€ฆ to personalize the โ€œrunnersโ€ and โ€œusersโ€, optionally, โ€œinto the gameโ€, by allowing the โ€œuserโ€ to name their โ€œrunnersโ€ and allow for a โ€œrunner energyโ€ setting be a bit randomized, to add for some other interest โ€œvarietyโ€ to the gameโ€™s workings. So, still a work in progress that you can try out at our liveโœ‚run link that has underlying HTML and Javascript and CSS emoji_walk_animationโšซhtml, and which changed in thisway regarding todayโ€™s work.


Previous relevant Rainbow Games Primer Tutorial is shown below.

Interesting Places Primer Tutorial

Rainbow Games Primer Tutorial

Itโ€™s been a while since weโ€™ve written any conventional HTML and Javascript and CSS game. Todayโ€™s game uses the โ€œemoticonโ€ section of the Emoji character set, defaulting so far, to the โ€œrunning womanโ€ emoji featuring in Compound Emoji WordPress Usage Tutorial.

Itโ€™s the early days of our โ€œRainbow Gamesโ€ web application, and weโ€™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โ€™ve looked at โ€œsplitsโ€ and a finish line.

You can try out our burgeoning liveโœ‚run game concept link that has underlying HTML and Javascript and CSS emoji_walk_animationโšซhtml.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Games, Tutorials and tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *