Numbers Guessing Game
Your Numbers Game
Get
clueYour
answerYour
ScoreClue? Score 0/0
-
Recent Posts
- PHP Exif Quiz Geographicals Tutorial
- PHP Exif Quiz Tutorial
- PHP Exif Retention off iPhone Images Tutorial
- List to Grid Layout CSS Media Query Tutorial
- List to Grid Layout Primer Tutorial
- Out and About WordPress Blog Content Tweaks Just with iPhone Tutorial
- Command Line History By Date Tutorial
- Overseas Travel Global Roaming Mobile Primer Tutorial
Categories
- Ajax
- Android
- Animation
- Anything You Like
- Code::Blocks
- Coding
- Colour Matching
- Data Integration
- Database
- Delphi
- Eclipse
- eLearning
- ESL
- Event-Driven Programming
- Games
- GIMP
- GUI
- Hardware
- Installers
- iOS
- Land Surveying
- Moodle
- Music Poll
- NetBeans
- Networking
- News
- Not Categorised
- OOP
- Operating System
- Photography
- Projects
- Signage Poll
- Software
- SpectroPhotometer
- Tiki Wiki
- Trips
- Tutorials
- Uncategorized
- Visual Studio
- Xcode
Meta
Tags
Ajax animation background button canvas command line CSS Did you know DOM dropdown email emoji event form game Google Google chart hashtag HTML IFRAME image iOS Javascript MAMP media mobile navigation onclick overlay PHP popup programming select share sharing SMS SVG table text textarea tutorial url video web browser webpageYour Background Image
OnTopList
Tag Archives: jQuery
English Translated Verb Conjugation Countdown Timer Tutorial
We had occasion to revisit our inhouse Italian/French/Spanish Verb Conjugation web application “redirector” (in that it is third parties doing the bulk of the work, thanks), further to the English Translated Verb Conjugation Emoji Tutorial‘s last mention. It struck us, that what could improve the user experience, could be a … 30 second (timed for) … automated click piece of functionality … that is flagged to the user via a … countdown timer (presented as an HTML progress … <progress id=myprog title=”Click to stop the automated countdown to clicking for conjugations screen” data-allow=”y” onclick=”this.setAttribute(‘data-allow’,”);” style=visibility:hidden; value=30 max=30 min=0></progress> … element) … that if clicked, holds off on the automation ideas regarding the Conjugation Emoji Button 📖 clicking … function backin() { if (myxhr.readyState == 4) { if (myxhr.status == 200) { if (myxhr.responseText) { var towrds=myxhr.responseText.split(‘”translatedText”:”‘); //alert(” + myxhr.responseText); if (eval(” + towrds.length) >= 2) { //if (myxhr.responseText.indexOf(‘correre’) != -1) { alert(towrds[2]); alert(towrds[1]); alert(towrds[3]); alert(towrds[4]); } document.getElementById(‘ini’).value=”; document.getElementById(‘ini’).placeholder=towrds[1].split(‘”‘)[0].split(‘.’)[0].split(‘!’)[0].split(‘?’)[0].replace(/\’/g,”); document.getElementById(’emojiconjugate’).innerHTML=’📖’; //’ <progress id=myprog title=”Click to stop the automated countdown to clicking for conjugations screen” data-allow=”y” onclick=”event.stopProgagation(); this.setAttribute(‘ + “‘data-allow’,”” + ‘); return false;” style=display:inline-block; value=30 max=30 min=0></progress>’; document.getElementById(‘myprog’).value=30; document.getElementById(‘myprog’).setAttribute(‘data-allow’,’y’); if (1 == 1) { document.getElementById(‘myprog’).style.visibility=’visible’; } else { document.getElementById(‘myprog’).style.display=’inline-block’; } setTimeout(myprogit, 1000); setTimeout(function(){ if (eval(” + (” + document.getElementById(‘myprog’).getAttribute(‘data-allow’).length)) > 0) { document.getElementById(’emojiconjugate’).click(); } }, 30000); } } } } } function myprogit() { if (document.getElementById(‘myprog’)) { if (eval(” + (” + document.getElementById(‘myprog’).getAttribute(‘data-allow’).length)) == 0) { if (1 == 1) { document.getElementById(‘myprog’).style.visibility=’hidden’; } else { document.getElementById(‘myprog’).style.display=’none’; } } if (eval(” + document.getElementById(‘myprog’).value) > 0) { document.getElementById(‘myprog’).value=eval(-1 + eval(” + document.getElementById(‘myprog’).value)); setTimeout(myprogit, 1000); } else { if (1 == 1) { document.getElementById(‘myprog’).style.visibility=’hidden’; } else { document.getElementById(‘myprog’).style.display=’none’; } } } } function twofocus(ih) { if (ih != ”) { document.getElementById(‘ini’).focus(); document.getElementById(‘ine’).focus(); document.getElementById(’emojiconjugate’).innerHTML=’ ’; document.getElementById(‘myprog’).value=30; document.getElementById(‘myprog’).setAttribute(‘data-allow’,’y’); if (1 == 1) { document.getElementById(‘myprog’).style.visibility=’hidden’; } else { document.getElementById(‘myprog’).style.display=’none’; } } } … in italian_conjugation.html‘s changed code, can be tried with this live run link, or below. This change highlights the difference between two CSS approaches to hiding a webpage element … display: none; visibility: hidden; We chose the latter methodology for today’s work because visibility: hidden; still allows for the room that element would have taken up, so by the time we do apply visibility: visible; there is less annoying jiggering around going on with the webpage look when this happens. Previous relevant English Translated Verb Conjugation Emoji Tutorial is shown below. When retrying Italian French Spanish Verb … Continue reading
Posted in eLearning, Event-Driven Programming, Tutorials
Tagged Ajax, button, countdown, CSS, dictionary, display, DOM, dropdown, emoji, eval, event, game, Google, Google Translate, grammar, HTML, Italian, Javascript, jQuery, language, onclick, onmouseover, popup, programming, progress, reveal, select, tense, Text to Speech, timer, tutorial, verb, visibility, window.open, word game
Leave a comment
English Translated Verb Conjugation Emoji Tutorial
When retrying Italian French Spanish Verb Conjugation Emoji Image Tutorial‘s web application recently it struck us that an improvement could be … if the user is entering an English verb to the top left … we could start … filling in the Italian or French or Spanish verb translation (via the textbox’s placeholder attribute, hence, faintly) over to the top right … as well as … add an emoji (button) 📖 (📖) in that top right area too … in addition to the usual … brilliant WordReference.com information presented below this top row in the table Clicking that emoji (button) 📖 (📖) in that top right area (or merely moving or tabbing in and out of focus at that top right textbox) would link up with WordReference.com verb conjugations better, we think, simulating what happens if the user starts their quest with the top right non-English verb textbox. You can try this out for yourself in italian_conjugation.html‘s changed code, can be tried with this live run link, or below … Previous relevant Italian French Spanish Verb Conjugation Emoji Image Tutorial is shown below. We used the combining of … a relook at Italian French Spanish Verb Conjugation Text to Speech Tutorial … with … the recent Emoji Image Creator or Media Paster Multiple Copy Tutorial … to find some practical improvements to some of our existent web applications regarding the use of Emoji Image (in today’s case in the form of background images). We think the existent French and Italian and Spanish flags as background images are a bit too imposing and so we intervened as per the Javascript … function emoji_images_maybe(inlineurl) { switch (inlineurl) { case “url(‘it.jpg’)”: document.getElementById(‘mybodtr’).style.height=’90px’; document.getElementById(‘englishtoitalian’).style.height=’90px’; return “linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.6)),url([italianFlagEmojiImageDataURIGoesHere]); break; case “url(‘fr.jpg’)”: document.getElementById(‘mybodtr’).style.height=’90px’; document.getElementById(‘englishtoitalian’).style.height=’90px’; return “linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.6)),url([frenchFlagEmojiImageDataURIGoesHere]); break; case “url(‘es.jpg’)”: document.getElementById(‘mybodtr’).style.height=’90px’; document.getElementById(‘englishtoitalian’).style.height=’90px’; return “linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.6)),url([spanishFlagEmojiImageDataURIGoesHere]); break; default: break; } return inlineurl; } function fixall(iti) { was=”; otv=”; document.getElementById(‘conjugationcell’).innerHTML=”; document.getElementById(‘sl’).value=iti; document.getElementById(‘sltwo’).value=iti; document.getElementById(‘slto’).value=iti; document.getElementById(‘slito’).value=iti; document.getElementById(‘slverb’).value=iti; document.getElementById(‘slconj’).value=iti; document.getElementById(‘mybodtr’).style.backgroundImage=emoji_images_maybe(“url(‘” + iti + “.jpg’)”); document.getElementById(‘englishtoitalian’).style.backgroundImage=emoji_images_maybe(“url(‘” + iti + “.jpg’)”); return iti; } Here’s a reminder of how you might derive … Flag Italian[italianFlagEmojiImageDataURIGoesHere]IT 🇮🇹 French[frenchFlagEmojiImageDataURIGoesHere]FR 🇫🇷 Spanish[spanishFlagEmojiImageDataURIGoesHere]ES 🇪🇸 Navigate to Emoji Image Creator … into textbox enter (where, regarding an ISO two character code relating to flag country A=127462 CodePoint to Z=127487 CodePoint) … 127470.127481 127467.127479 127466.127480 … Click “Create Image” button (though use of links above do this for you) … … “Copy Image” the flag at Google Pagespeed … … “Paste” back … Continue reading
Posted in Ajax, eLearning, Event-Driven Programming, Tutorials
Tagged Ajax, background, background image, button, codepoint, CSS, dictionary, DOM, dropdown, emoji, emoji button, emoji image, eval, event, game, Google, Google Translate, grammar, HTML, image, Italian, Javascript, jQuery, language, onclick, onmouseover, placeholder, popup, programming, reveal, select, tense, Text to Speech, textbox, tutorial, verb, window.open, word game
Leave a comment
CSS 3D Transformation Matrix Multiple Image Tutorial
Using yesterday’s CSS 3D Transformation Matrix Timings Tutorial web application perhaps you were like me, aware of the conundrum whereby … you browse for background image and available to you is the chance to select multiple background images … yet … the underlying code only catered for the single image file selection scenario ? Well, today, we are here to remedy that, and entered the day with the naive and optimistic view that all that might be needed is a code change like … document.getElementById(selector.replace(‘#’,”)).style.background=”URL(‘” + tv.replace(/base64\,/g,”base64!”).replace(/\,/g,”‘),URL(‘”).replace(/base64\!/g,”base64,”).trim() + “‘)”; … which is more or less true for Image URLs (delimited by a comma), but quite far away from the mark for multiple browsed for local image files using the File API to upload the image data. There, we needed to rearrange our interfacing to the client_browsing.htm iframe hosted File API helper we use, changing the interface arrangements to more resemble those used for our “Tutorial to Animated GIF Creator” interfacing methodologies (adding in) … <input id=slideshow style=’display:none;’ type=hidden value=”></input> <input id=slideshow1 style=’display:none;’ type=hidden value=”></input> <input id=slideshow2 style=’display:none;’ type=hidden value=”></input> <input id=slideshow3 style=’display:none;’ type=hidden value=”></input> <input id=slideshow4 style=’display:none;’ type=hidden value=”></input> <input id=slideshow5 style=’display:none;’ type=hidden value=”></input> <input id=slideshow6 style=’display:none;’ type=hidden value=”></input> <input id=slideshow7 style=’display:none;’ type=hidden value=”></input> <div id=fdiv0></div> … enabling us to gather multiple image data URIs, comma separated into the HTML div id=result element at a time of our choosing all at once, to rejoin any existant useful code that feeds into the Javascript functionality near the codeline above … a bit more work than anticipated, but at least not needing any changes to client_browsing.htm, gratefully. Please see our mildly and timely changed web application more_transform.html‘s live run link, regarding this. Previous relevant CSS 3D Transformation Matrix Timings Tutorial is shown below. Sometimes when you combine, within the one web application … user interactive input … and … event management involving user interaction … eg. drag … like for yesterday’s CSS 3D Transformation Matrix Antikludge Tutorial the “timing” of when you allow things for the various HTML elements involved can become … “involved”. We found that yesterday’s incarnation left little time for a mobile user to decide on their non-drag matters before the drag matters kicked in … ? And so we decided to break that up into click separated compartments of web application execution “timing” for our mobile users … and all because … ? We got sick, on behalf … Continue reading
Posted in Ajax, eLearning, Event-Driven Programming, Tutorials
Tagged aesthetics, Ajax, background colour, background image, background-position, browse, button, checkbox, click, collaborate, collaboration, contenteditable, createElement, CSS, div, email, emoji, emoji button, event, FormData, HTML, Javascript, jQuery, matrix, mobile, mousemove, multiple, programming, radio button, screenshot, sessionStorage, share, SMS, snip and sketch, timing, tool, touch, touchmove, transform, tutorial, user, user definable, user experience, user input, UX, visibility, Windows, Windows 10
Leave a comment
CSS 3D Transformation Matrix Timings Tutorial
Sometimes when you combine, within the one web application … user interactive input … and … event management involving user interaction … eg. drag … like for yesterday’s CSS 3D Transformation Matrix Antikludge Tutorial the “timing” of when you allow things for the various HTML elements involved can become … “involved”. We found that yesterday’s incarnation left little time for a mobile user to decide on their non-drag matters before the drag matters kicked in … ? And so we decided to break that up into click separated compartments of web application execution “timing” for our mobile users … and all because … ? We got sick, on behalf of mobile users, again, regarding the forced prompt window asks about sharing, and so we felt kludgy, just after feeling antikludgy when we changed the code as per … function touchHandler(event) { // thanks to https://stackoverflow.com/questions/5186441/javascript-drag-and-drop-for-touch-devices if ((” + event.target.id) == ‘mybemail’) { emailsnapshot(); } else if ((” + event.target.id) == ‘myar’) { location.href=document.URL.split(‘#’)[0].split(‘?’)[0]; } else { var touch = event.changedTouches[0]; var simulatedEvent = document.createEvent(“MouseEvent”); simulatedEvent.initMouseEvent({ touchstart: “mousedown”, touchmove: “mousemove”, touchend: “mouseup” }[event.type], true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); touch.target.dispatchEvent(simulatedEvent); event.preventDefault(); } } … opening the door to “antigenericity” … ? See our mildly and timely changed web application more_transform.html‘s live run link. Previous relevant CSS 3D Transformation Matrix Windows Snip and Sketch Tutorial is shown below. Yesterday’s CSS 3D Transformation Matrix Share Tutorial said … Up to yesterday’s CSS 3D Transformation Matrix Mobile Mousemove Tutorial sharing and/or collaboration was up to the user taking their own screenshots and perhaps communicating that information themselves. And so, today, we backtrack a little to show one of those web browser helpers, the brilliant Windows 10 desktop application called “Snip and Sketch”, the independent of your work “screenshotter” of your activity for the entire Windows screen in these modes of screenshotting … Rectangular Snip Freeform Snip Window Snip Fullscreen Snip In today’s animated GIF presentation related to some of this Windows 10 screenshotting, you can see lots of “Rectangular Snip” generic testing and a specific “Freeform Snip” example related to our recent CSS 3D Transformation Matrix web application of recent postings. Previous relevant CSS 3D Transformation Matrix Share Tutorial is shown below. Up to yesterday’s CSS 3D Transformation Matrix Mobile Mousemove Tutorial sharing and/or collaboration was up to the user taking their own screenshots and perhaps … Continue reading
Posted in Ajax, eLearning, Event-Driven Programming, Tutorials
Tagged aesthetics, Ajax, background colour, browse, button, checkbox, click, collaborate, collaboration, contenteditable, createElement, CSS, div, email, emoji, emoji button, event, FormData, HTML, Javascript, jQuery, matrix, mobile, mousemove, programming, radio button, screenshot, sessionStorage, share, SMS, snip and sketch, timing, tool, touch, touchmove, transform, tutorial, user, user definable, user experience, user input, UX, visibility, Windows, Windows 10
Leave a comment
CSS 3D Transformation Matrix Antikludge Tutorial
Yeah, you’re right, and even correct! There is no such word as “antikludge”, so let me put today’s blog posting “motive” into context. It wasn’t in yesterday’s CSS 3D Transformation Matrix Windows Snip and Sketch Tutorial, but way back at CSS 3D Transformation Matrix Browse Tutorial that we had cause to comment, regarding this current “CSS 3D Transformation Matrix” web application’s aesthetics … Kludgy, so far, but lots of scope to make it less kludgy as time goes on. Well, today, we bring ourselves round to addressing some of this. In our defence, on priorities here, we don’t mind making things cryptic at times with web applications to reward those more exploratory users. That, we have “done in spades” with this web application, “so far”. But, against that thinking, the programmer should take into account that a mobile user does not have the benefits of hovering over unknowns and getting shown back some information the programmer may have helpfully provided in that HTML element’s “title” attribute. So we add one checkbox (and the cryptic in us got the upperhand again, with this checkbox’s associated emoji label … damnation plantation!) and a four part radio button today to replace what a savvy user will have worked out how to do in that textbox presented, in a more obvious presentation, and we (the most of us, methinks) like to click/touch something to see or invoke an action, don’t we?! Yes, these “UX” (user experience) considerations pale by comparison to what the heavyweights in the industry almost demand! Oh well, each to their own, but our adages line up more with “being ashamed if the purpose of the web application is not met (at the time of creation, that is)” … it is very hard to control all the outside reasons for things breaking over time, these days, quite often. Feel free to try what we hope is the more aesthetically pleasing … 15,18d14 < < html :not(#img) { // us trying CSS :not with limited success … we needed to positively define #img’s background-color?! < background-color: #f0f0e0; < } 303d298 // we decided to go with transparent rather than #f0f0e0 below to be more in sympathy with screenshotters like Snip and Sketch < document.getElementById(‘divmore’).innerHTML='<style> html :not(#img) { background-color: transparent !important; } </style>’; 869,885d863 < < function fixiurl(invl) { // same Javascript for checkbox and radio button user interaction changes < var therest=document.getElementById(‘iurl’).value.split(document.getElementById(‘iurl’).value.trim())[1]; … Continue reading
Posted in Ajax, eLearning, Event-Driven Programming, Tutorials
Tagged aesthetics, Ajax, background colour, browse, button, checkbox, click, collaborate, collaboration, contenteditable, createElement, CSS, div, email, emoji, emoji button, FormData, HTML, Javascript, jQuery, matrix, mobile, mousemove, programming, radio button, screenshot, sessionStorage, share, SMS, snip and sketch, tool, touch, touchmove, transform, tutorial, user, user definable, user experience, user input, UX, visibility, Windows, Windows 10
Leave a comment
CSS 3D Transformation Matrix Share Tutorial
Up to yesterday’s CSS 3D Transformation Matrix Mobile Mousemove Tutorial sharing and/or collaboration was up to the user taking their own screenshots and perhaps communicating that information themselves. Today we make sharing that little bit easier with the inclusion of a new emoji 📧 “button” … <h4 id=mybemail ondblclick=”this.style.display=’none’;” title=’Email snapshot (double click makes this emoji disappear)’ style=’display:none;’ onclick=emailsnapshot();>📧</h4> … see how emoji usage can make so many HTML element types into pseudo “button” types. The two sharing “conduits” we programmatically cater for are … Conduit type “a” link clicked with long URL Attachment Inline HTML Email Yes No(alas, no clientliked the HTML) SMS Yes(but not ifbackground imagesinvolved) … using the new Javascript function code that uses a couple of “midair techniques” … Ajax/FormData document.createElement/click() … in … function emailsnapshot() { var tois=gtois.trim(), zbigstr=”, zs=”; var smssuffix=”, plussms=”; var wastitle=” + document.getElementById(‘img’).title; document.getElementById(‘img’).title=”; if (eval(” + encodeURIComponent(document.getElementById(‘img’).outerHTML.split(‘ contenteditable=’)[0] + ‘ contenteditable=”true”>’ + (document.getElementById(‘img’).innerText || document.getElementById(‘img’).contentWindow || document.getElementById(‘img’).contentDocument) + ‘</div>’).length) < 800) { smssuffix=’, and all integers will SMS’; plussms=’ or SMS’; if (tois.trim() != ” && tois.replace(/0/g,”).replace(/1/g,”).replace(/2/g,”).replace(/3/g,”).replace(/4/g,”).replace(/5/g,”).replace(/6/g,”).replace(/7/g,”).replace(/8/g,”).replace(/9/g,”) == ”) { zs=’@’; } } if ((tois + zs).indexOf(‘@’) == -1) { //gtois=prompt(‘Please enter email address to send to? (just @ will show and ask via a popup window and all uppercase will use an inline HTML technique rather than an HTML file attachment)’, ”); if (optionally) { //optionally=false; if (gtois == ”) { gtois=prompt(‘Optionally enter email address to send to? (just @ will show and ask via a popup window, and just – will not ask again’ + smssuffix + ‘)’, ”); } } else { gtois=prompt(‘Please enter email address to send to? (just @ will show and ask via a popup window, and just – will hide this emoji’ + smssuffix + ‘)’, ”); } if (gtois == null) { gtois=”; } tois=gtois; } if (tois == ‘-‘) { if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { gtois=’ ‘; } else { gtois=”; } document.getElementById(‘mybemail’).style.display=’none’; document.getElementById(‘img’).title=wastitle; return ”; } else if (tois == ‘@’) { gtois=”; document.getElementById(‘mybemail’).style.display=’none’; zbigstr='<html><head>’ + document.head.innerHTML.split(‘<scr’)[0].replace(‘</style>’, ‘ .ui-draggable { visibility:hidden; } </style>’) + ‘</head>’ + document.body.outerHTML.replace(/\"\;/g,”‘”).replace(‘</h4>’,'</h4> <input style=display:inline-block; placeholder=”Email’ + plussms + ‘ address to send to” type=text value=”” onblur=” window.opener.document.getElementById(‘ + “‘result'” + ‘).innerHTML=this.value; “></input>’) + ‘</html>’; wois=window.open(”,’_blank’,’top=30,left=30,width=500,height=500′); wois.document.write(zbigstr); document.getElementById(‘img’).title=wastitle; return ”; } else if (tois.indexOf(‘@’) == -1) { if (tois.trim() != ” && tois.replace(/0/g,”).replace(/1/g,”).replace(/2/g,”).replace(/3/g,”).replace(/4/g,”).replace(/5/g,”).replace(/6/g,”).replace(/7/g,”).replace(/8/g,”).replace(/9/g,”) == ”) { var elea=document.createElement(‘a’); elea.target=’_blank’; elea.href=’sms:’ + tois + ‘&body=’ + ourencodeURIComponent(encodeURIComponent(document.URL.split(‘?’)[0].split(‘#’)[0] + ‘?imgoh=’ … Continue reading
Posted in Ajax, eLearning, Event-Driven Programming, Tutorials
Tagged Ajax, browse, button, click, collaborate, collaboration, contenteditable, createElement, CSS, div, email, emoji, emoji button, FormData, HTML, Javascript, jQuery, matrix, mobile, mousemove, programming, sessionStorage, share, SMS, tool, touch, touchmove, transform, tutorial, user, user definable, user input, visibility
Leave a comment
CSS 3D Transformation Matrix Mobile Mousemove Tutorial
The key to getting mobile platforms take that extra step of allowing the user to drag the div contenteditable=truefalse into a 3D transformed element, on top of the progress of yesterday’s CSS 3D Transformation Matrix Mobile Tutorial centred around the following question … Can we simulate a mousemove event from a touchmove touch event on a smart device? … and the answer is “yes”, and we’d recommend you first read Javascript Drag and drop for touch devices as far as that goes, where the enacted recommendation … function touchHandler(event) { var touch = event.changedTouches[0]; var simulatedEvent = document.createEvent(“MouseEvent”); simulatedEvent.initMouseEvent({ touchstart: “mousedown”, touchmove: “mousemove”, touchend: “mouseup” }[event.type], true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); touch.target.dispatchEvent(simulatedEvent); event.preventDefault(); } … can dynamically convert all the touchstart, touchend and touchmove events into mouse event equivalents, and then feed into the existant smarts of our changed web application more_transform.html‘s live run link. That is good, leaving the touchmove event of the four draggable guides (div that we make bigger and red on mobile platforms) of interest to us to follow up and further amend, as per … divs[idivs].addEventListener(‘touchmove’, function(evt) { if (1 == 1) { alert(‘Drop now.’); } var nevent = new Event(‘mousemove’); evt.target.dispatchEvent(nevent); evt.preventDefault(); }); … us helping out the “drag” with our interrupted “drop”. Previous relevant CSS 3D Transformation Matrix Mobile Tutorial is shown below. Yesterday’s CSS 3D Transformation Matrix Browse Tutorial was not the best as far as mobile platforms went when coming up against sizeable image data sources. As such, we are going to stop “recalls” of our web application when a mobile user takes or browses for an image. This in turn stops window.sessionStorage being needed, but means we have to move the drag and drop guides ourselves as per … function fixstyle(stih) { var idivs=0, boxrect=null, kdivs=0; stih=stih.replace(/\&\;lt\;/g, ‘<‘).replace(/\&\;gt\;/g, ‘>’).replace(/\<\;/g, ‘<‘).replace(/\>\;/g, ‘>’); //alert(‘0:’ + stih); if (stih.indexOf(‘<style>’) != -1 && stih.indexOf(‘</style>’) != -1) { document.getElementById(‘dstyle’).innerHTML='<style>’ + stih.split(‘</style>’)[0].split(‘<style>’)[1] + ‘</style>’; //alert(‘<Style>’ + stih.split(‘</style>’)[0].split(‘<style>’)[1] + ‘</style>’); var divs=document.getElementsByTagName(‘div’); for (var jdivs=0; jdivs<2; jdivs++) { if (kdivs == 0) { for (idivs=0; idivs<divs.length; idivs++) { if ((” + divs[idivs].className).indexOf(‘ui-draggable’) != -1) { if (boxrect) { if (kdivs == 0 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { kdivs++; divs[idivs].style.left=(” + boxrect.left) + ‘px’; divs[idivs].style.top=(” + boxrect.top) + ‘px’; } else if (kdivs == 1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { kdivs++; divs[idivs].style.left=(” + boxrect.left) + ‘px’; divs[idivs].style.top=(” + boxrect.bottom) + ‘px’; … Continue reading
Posted in eLearning, Event-Driven Programming, Tutorials
Tagged browse, contenteditable, CSS, div, HTML, Javascript, jQuery, matrix, mobile, mousemove, programming, sessionStorage, tool, touch, touchmove, transform, tutorial, user, user definable, user input, visibility
Leave a comment


Thanks. Since then, a Shower Songs project at https://www.rjmprogramming.com.au/HTMLCSS/shower_songs.html is an improvement regarding "Radio Play" on mobile platforms.