Tag Archives: flipcard

Wikipedia Flipcard Quiz Emoji Tutorial

We wanted to do more integration on top of yesterday’s Wikipedia Flipcard Quiz Google Charts Tutorial integration with our Flipcards beginnings to our “Wikipedia Based Placename Flipcard Quiz” web application. Our two integration extension thoughts were to start involving … Google Maps YouTube videos … into our “Colour Wheel” child arrangements (and so, also to it standing alone, that you can read about with Colour Wheel Canvas Analogue Clock Background Tutorial) that gave us (“when”) TimeZone place information yesterday. But we realize, with integration like this, space can be at a premium, and we’ve decided with both these integrations above, that their “shopfronts” will just be two single emojis, eventually linking to (optionally used) window.open popup windows (that you may or may not allow on the web browser you are using) … as per … Google Maps 🗺 YouTube videos 📹 … the former a very easy “a” (within a “div” element) change, but the latter far more interesting in that it involves reducing down a whole inhouse interfacing web application (to the YouTube video via its Embedded Iframe API) to a single Emoji from having been a screen full of web application. So, for this, which components changed in which ways … the changed “parent” flip_card.html‘s live run link merely involves crediting our helperer outerers, thanks … whereas … the changed “child” colour_wheel.html‘s live run link … needed to … // Global variables var ytidea=’//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=++++San+Francisco&minimize=y&youtube_duration=&email=&emoji=on’; var gmidea=’//www.google.com/maps/place/Kaliningrad,+Kaliningrad+Oblast,+Russia/@54.7115288,20.324448,11z/’; //data=!3m1!4b1!4m5!3m4!1s0x46e33d8d4b7c21a9:0x5050960016126ed3!8m2!3d54.7104264!4d20.4522144′; // // New Javascript function // function lookforstz() { var gmi=gmidea; if (document.getElementById(‘stz’).innerHTML != ”) { document.getElementById(‘divideo’).innerHTML=”<iframe title=\”YouTube videos about ” + (document.getElementById(‘stz’).innerText || document.getElementById(‘stz’).contentWindow || document.getElementById(‘stz’).contentDocument) + “\” id=ivideo style=’display:inline-block;width:40px;height:30px;overflow:hidden;’ src='” + ytidea.replace(‘San+Francisco’,encodeURIComponent(” + (document.getElementById(‘stz’).innerText || document.getElementById(‘stz’).contentWindow || document.getElementById(‘stz’).contentDocument))) + ‘&ir=’ + Math.floor(Math.random() * 198765342) + “‘></iframe>”; gmi=gmi.replace(“Kaliningrad,+Kaliningrad+Oblast,+Russia”, (” + (document.getElementById(‘stz’).innerText || document.getElementById(‘stz’).contentWindow || document.getElementById(‘stz’).contentDocument)).replace(/\ /g, ‘+’)); if (xlongis < -900) { document.getElementById(‘divmap’).innerHTML=”<a onclick=\”window.open(‘” + gmi.split(‘@’)[0] + “‘,’_blank’,’top=20,left=20,width=700,height=500′);\” style=\”cursor:pointer;\” title=\”Google Maps\”>&#128506;</a>”; } else { gmi=gmi.replace(“54.7115288”, ylatis); gmi=gmi.replace(“20.324448″, xlongis); document.getElementById(‘divmap’).innerHTML=”<a onclick=\”” + gmi + “\” title=\”Google Maps\”>&#128506;</a>”; } } else { setTimeout(lookforstz, 1000); } } // // Onload logic Javascript function change // function onl() { var atend=false; document.getElementById(‘sele’).value=(location.search.split(‘mode=’)[1] ? decodeURIComponent(location.search.split(‘mode=’)[1].split(‘&’)[0]) : ”); if (bcol != ‘white’ && bcol.toLowerCase() == ‘transparent’) { document.getElementById(‘ourcanvas’).style.border=’1px solid ‘ + bcol.toLowerCase(); } if (done == 0) { if (document.URL.indexOf(‘mode=’) != -1) { if (document.getElementById(‘addthis’).value == ‘-0.0’) { document.getElementById(‘addthis’).value == ‘0.0’; setTimeout(lookforstz, 1000); // document.getElementById(‘divideo’).innerHTML=”<iframe id=ivideo style=’display:inline-block;width:30px;height:30px’ src='” + ytidea.replace(‘San+Francisco’,”) + “‘></iframe>”; } atend=true; } done

Posted in eLearning, Event-Driven Programming, GUI, Tutorials | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Wikipedia Flipcard Quiz Google Charts Tutorial

Another big player for us with our web applications, especially those of the “where” (or geographical) variety, we thank, is … Google Chart’s Geo Chart … whereby we can “map” a place onto a world map to show context additional to existant functionality for yesterday’s Wikipedia Flipcard Quiz Primer Tutorial. And then to get even more context for our places, we make use of the fact that the list of places is actually a TimeZone list of places that means we can interface to … PHP TimeZone functionality … to incorporate a “when” factor into the mix for this work. This integration involves code from rjmprogramming.com.au domain interfaces to the useful public interfacings above, and so can integrate this via parent/child webpage supervisor/child iframe element arrangements. As you might surmise, you want to make all these new possibilities optional, pending an “OK” button press of a Javascript popup window confirm window to replace yesterday’s alert window. See how the changed flip_card.html‘s live run link now works these “where” and “when” functionality extensions. Previous relevant Wikipedia Flipcard Quiz Primer Tutorial is shown below. Two big “W” contributors for us in our research of the WWW Internet world are … W3schools … for HTML and Javascript and CSS and even PHP and SVG research, today, specifically, Flipcards (that contain place images on “heads” and hints for the user on “tails”) … and … Wikipedia … an online encyclopaedia for lots of research about anything, today our interest honed in on placename information Today, these two giants help us out with a quiz akin to that of the previous Overlay Iframe Remembering Textarea Client Quiz Wikipedia Tutorial in its Wikipedia “smarts”, but implementing W3schools flipcard “smarts”, to construct a quiz where the questions are visual clues, only, and the user can score points for correct answers via either a … select (dropdown) element containing an alphabetically sorted list of possibilities … or … textbox where the user can type their guess Sometimes the simple concepts are the best. We hope you think so too, as you try flip_card.html‘s live run link. Previous relevant Overlay Iframe Remembering Textarea Client Quiz Wikipedia Tutorial is shown below. With the Teletext Country Capital Quiz section of the functionality of the web application of Overlay Iframe Remembering Textarea Client Wikipedia Tutorial we wanted a different style of Wikipedia integration. We wanted to help out the user with their

Posted in eLearning, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Wikipedia Flipcard Quiz Primer Tutorial

Two big “W” contributors for us in our research of the WWW Internet world are … W3schools … for HTML and Javascript and CSS and even PHP and SVG research, today, specifically, Flipcards (that contain place images on “heads” and hints for the user on “tails”) … and … Wikipedia … an online encyclopaedia for lots of research about anything, today our interest honed in on placename information Today, these two giants help us out with a quiz akin to that of the previous Overlay Iframe Remembering Textarea Client Quiz Wikipedia Tutorial in its Wikipedia “smarts”, but implementing W3schools flipcard “smarts”, to construct a quiz where the questions are visual clues, only, and the user can score points for correct answers via either a … select (dropdown) element containing an alphabetically sorted list of possibilities … or … textbox where the user can type their guess Sometimes the simple concepts are the best. We hope you think so too, as you try flip_card.html‘s live run link. Previous relevant Overlay Iframe Remembering Textarea Client Quiz Wikipedia Tutorial is shown below. With the Teletext Country Capital Quiz section of the functionality of the web application of Overlay Iframe Remembering Textarea Client Wikipedia Tutorial we wanted a different style of Wikipedia integration. We wanted to help out the user with their wrong answers providing Wikipedia image data to the background of the right hand cells as a background image. At least two methods of providing this background image occurred to us … use multiple background images, which is possible … but we decided, instead, to … use a “two image phase” animation of background images …controlled by a setTimeout timer The user can click on this right hand cell when such Wikipedia images are displayed in its background to navigate to Wikipedia pages, as an alternative to “a” links up the top of the webpage linking to Google (search engine) in a similar (but non-graphical) vein. What Javascript DOM makes this happen? More or less (though there are several more “layers” to work this for (eg. “document.” or “aconto.” or “parent.document.”)) … top.document.getElementById(‘tdrhs’).style.background=”URL(” + zhr.responseText.replace(/\>/g,’ ‘).split(‘ src=’)[1].split(‘ ‘)[0] + “)”; top.document.getElementById(‘tdrhs’).style.backgroundPosition=”0px 120px”; top.document.getElementById(‘tdrhs’).style.backgroundRepeat=”no-repeat”; top.document.getElementById(‘tdrhs’).title=’Click for Wikipedia pages for ‘ + decodeURIComponent(urlsare[0].split(‘#’)[0].split(‘/wiki/’)[1]) + ‘, ‘ + decodeURIComponent(urlsare[1].split(‘/wiki/’)[1].split(‘#’)[0]); … where that “var urlsare=[];” initialized global variable gets populated in a rearranged … function ajaxit(urltosend) { if (urltosend.indexOf(‘wikipedia.org’) != -1) { if (jurls == 0) {

Posted in eLearning, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , , , , , | Leave a comment