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: collaboration
Image Flipping or Flopping at Speed Sharing Tutorial
To value add with a web application, further to yesterday’s Image Flipping or Flopping at Speed Browsing Tutorial, we see it as important to get to a point where you can broach that big philosophical question … Do you see what I see? … and the most approachable way we know to attempt this is to allow an … email … or … SMS … recipient be able to click a link within an email or SMS, and recreate a lot of what the originator is trying to convey, information wise. To do this, we use … “a” href=”mailto:[EmailAddress]?subject=Image%20Flip%20or%20Flop&body=encodeURIComponent(originatorURLsimulatingCurrentLook)” “a” href=”sms:[SMSnumber]&body=encodeURIComponent(originatorURLsimulatingCurrentLook)” … or … … elements constructed on the fly via the user press of two new buttons presented (within the Javascript script element’s document.write clause) … <script type=text/javascript> document.write(‘ blah blah blah <br><br>Show Axis <input id=axchk type=checkbox onchange=changeax(this); ‘ + (showax == true ? ‘checked’ : ”) + ‘></input> <button onclick=” doemail(); ” id=”butemail”>Email 📧</button> <button onclick=” dosms(); ” id=”butsms”>SMS 📟</button><br><br> blah blah blah ‘); </script> … via … function constructahref() { var phrefis=document.URL.split(‘?’)[0].split(‘#’)[0]; phrefis+=’?radius=’ + encodeURIComponent(” + brad) + ‘&rpm=’ + encodeURIComponent(” + rpm) + ‘&transform=’ + encodeURIComponent(document.getElementById(‘sforf’).value) + ‘&axis=’ + (showax == true ? ‘y’ : ‘n’) + ‘&#url=’ + (theimgurl == ‘http://www.rjmprogramming.com.au/Android/NalaLuna.jpg’ ? ” : encodeURIComponent(document.getElementById(‘myimg’).src)); return phrefis; } function doemail() { var anchor=null; var emis=prompt(‘Please enter email address to send to.’, ”); if (emis == null) { emis=”; } if (emis.indexOf(‘@’) != -1) { anchor = document.createElement(‘a’); anchor.href = ‘mailto:’ + emis.trim() + ‘?subject=My%20Flip%20or%20Flop&body=’ + encodeURIComponent(constructahref()); anchor.style.display=’none’; document.body.appendChild(anchor); anchor.innerHTML=’Email’; anchor.target=’_top’; anchor.click(); } else if (emis.trim() != ” && emis.trim().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,”) == ”) { anchor = document.createElement(‘a’); anchor.href = ‘sms:’ + emis.trim() + ‘&body=’ + encodeURIComponent(constructahref()); anchor.style.display=’none’; anchor.innerHTML=’SMS’; anchor.target=’_top’; anchor.click(); } } function dosms(){ var anchor=null; var emis=prompt(‘Please enter SMS number to send to.’, ”); if (emis == null) { emis=”; } if (emis.indexOf(‘@’) != -1) { anchor = document.createElement(‘a’); anchor.href = ‘mailto:’ + emis.trim() + ‘?subject=My%20Flip%20or%20Flop&body=’ + encodeURIComponent(constructahref()); anchor.style.display=’none’; document.body.appendChild(anchor); anchor.innerHTML=’Email’; anchor.target=’_top’; anchor.click(); } else if (emis.trim() != ” && emis.trim().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,”) == ”) { anchor = document.createElement(‘a’); anchor.href = ‘sms:’ + emis.trim() + ‘&body=’ + encodeURIComponent(constructahref()); anchor.style.display=’none’; anchor.innerHTML=’SMS’; anchor.target=’_top’; anchor.click(); } } So what is the point of the new checkbox? Well, that involves some aesthetic display work involving a new horizontal rule ( ie. hr <hr id=myhr style=display:none;z-index:-1;transform:rotate(90deg);overflow:visible;></hr> ) element we use to approximate the axis around which the Flip or Flop (of the image) is taking place … var iw=0, ih=0; var showax=(location.search + (” + location.hash).replace(/^null/g,”).replace(/^undefined/g,”).replace(/^\#/g,’&’)).split(‘axis=’)[1] ? ((decodeURIComponent((location.search + (” + location.hash).replace(/^null/g,”).replace(/^undefined/g,”).replace(/^\#/g,’&’)).split(‘axis=’)[1].split(‘&’)[0])).toLowerCase().indexOf(‘y’) == 0 ? true : false) : true; function changef(tbo) { if (tbo.value.toLowerCase() == ‘flip’) { imgo.style.transform=’scaleY(1)’; sxis=1.0, syis=0.0; document.getElementById(‘myhr’).style.left=’0px’; document.getElementById(‘myhr’).style.width=” + eval(10 + eval(” + Math.max(ih,iw))) + ‘px’; //document.getElementById(‘myhr’).style.height=’20px’; document.getElementById(‘myhr’).style.top=” + eval(eval(” + iw) / 2) + ‘px’; document.getElementById(‘myhr’).style.transformOrigin=” + eval(eval(” + eval(10 + eval(” + Math.max(ih,iw)))) / 2) + ‘px 0px’; //document.getElementById(‘myhr’).style.backgroundColor=’black’; document.getElementById(‘myhr’).style.transform=’rotate(90deg)’; } else if (tbo.value.toLowerCase() == ‘flop’) { imgo.style.transform=’scaleX(1)’; … Continue reading
Posted in Animation, eLearning, Event-Driven Programming, Tutorials
Tagged animate, animation, border-radius, browse, browsing, collaboration, DOM, email, flip, flop, horizontal rule, image, Javascript, local file, local file browsing, programming, rpm, share, sharing, SMS, transform, tutorial
Leave a comment
Mister Ed Mathematics Collaboration Tutorial
Onto the previous Mister Ed Mathematics Primer Tutorial, if we are talking collaboration today, you might expect an emoji button or two to send an email or SMS, but we’ve intertwined … ideas of collaboration and sharing … with … window.localStorage (ie. like HTTP Cookie) web browser intersessional and intrasessional approaches to recalling … a user’s own defined YouTube … identifier,duration,start,end … inhouse argument definitions … which can … be slotted (for yourself, as a user, or derivable by an email or SMS recipient) into the mix of (perhaps, now, not) Mister Ed video snippets that get played as a user answers correctly, in the Mister Ed Mathematics quiz … and we access that just with “behind the scenes” links a savvy user can click to access (but explained in “blurb land”) … function ask() { var advice=”, kpstr=”; var xem=prompt(‘Enter arguments such as … ‘ + String.fromCharCode(10) + String.fromCharCode(10) + “?mr_ed_ideas=REC2gi-Hu2M,REC2gi-Hu2M&mr_ed_ideasdur=299.0,299.0&mr_ed_ideasizero=60,168&mr_ed_ideasjzero=70,237&keep=y” + String.fromCharCode(10) + String.fromCharCode(10) + ” … where your entry must start with ? and the keep=y is there to remember for next session and email= or sms= can be used.”, “keep=y&mr_ed_ideas=REC2gi-Hu2M,REC2gi-Hu2M&mr_ed_ideasdur=299.0,299.0&mr_ed_ideasizero=60,168&mr_ed_ideasjzero=70,237″); if (xem == null) { xem=”; } else if ((” + xem + ‘!’).substring(0,1) != ‘?’) { xem=”; } var wasxem=xem; if (xem.indexOf(‘mr_ed_ideas=’) != -1 && xem.indexOf(‘mr_ed_ideasdur=’) != -1 && xem.indexOf(‘mr_ed_ideasizero=’) != -1 && xem.indexOf(‘mr_ed_ideasjzero=’) != -1) { if (xem.indexOf(‘?’) == 0 && xem.indexOf(‘=’) != -1) { var recip=”; if (xem.indexOf(’email=’) != -1) { if (inbideas != ” && inbideasdur != ” && inbideasizero != ” && inbideasjzero != ” && xem.indexOf(‘mr_ed_ideas’) == -1) { wasxem+=’&mr_ed_ideas=’ + encodeURIComponent(inbideas); wasxem+=’&mr_ed_ideasdur=’ + encodeURIComponent(inbideasdur); wasxem+=’&mr_ed_ideasizero=’ + encodeURIComponent(inbideasizero); wasxem+=’&mr_ed_ideasjzero=’ + encodeURIComponent(inbideasjzero); } if (xem.indexOf(‘keep=’) != -1) { wasxem=wasxem.replace(/keep\=/g,’keNOep=’); kpstr=’?keNOep=y’; advice=encodeURIComponent(‘ … if you like Mister Ed (YouTube video) ideas, to remember for the next time, reissue URL below with keNOep changed to keep …’); } recip=(xem + ‘&’).split(’email=’)[1].split(‘&’)[0]; if (recip.trim().indexOf(‘@’) != -1) { document.getElementById(’ems’).href=’mailto:’ + recip + ‘?subject=Mister%20Ed%20Mathematics’ + advice + ‘&body=’ + encodeURIComponent(document.URL.split(‘?’)[0].split(‘#’)[0] + kpstr + ‘#’ + wasxem.replace(/^\?/g,”).replace(’email=’,’emJail=’).replace(‘sms=’,’sJms=’)); setTimeout(function(){ document.getElementById(’ems’).click(); }, 2000); } } else if (xem.indexOf(‘sms=’) != -1) { if (inbideas != ” && inbideasdur != ” && inbideasizero != ” && inbideasjzero != ” && xem.indexOf(‘mr_ed_ideas’) == -1) { wasxem+=’&mr_ed_ideas=’ + encodeURIComponent(inbideas); wasxem+=’&mr_ed_ideasdur=’ + encodeURIComponent(inbideasdur); wasxem+=’&mr_ed_ideasizero=’ + encodeURIComponent(inbideasizero); wasxem+=’&mr_ed_ideasjzero=’ + encodeURIComponent(inbideasjzero); } if (xem.indexOf(‘keep=’) != -1) { wasxem=wasxem.replace(/keep\=/g,’keNOep=’); kpstr=’?keNOep=y’; advice=encodeURIComponent(‘ … if you like Mister Ed (YouTube video) ideas, to remember for the next time, reissue URL below with keNOep changed to keep …’); } recip=(xem + ‘&’).split(‘sms=’)[1].split(‘&’)[0]; if (recip.trim() != ” && recip.trim().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,”) == ”) { document.getElementById(’ems’).href=’sms:’ + recip + ‘&body=’ + encodeURIComponent(document.URL.split(‘?’)[0].split(‘#’)[0] + kpstr + ‘#’ + wasxem.replace(/^\?/g,”).replace(‘sms=’,’sJms=’).replace(’email=’,’emJail=’)); setTimeout(function(){ document.getElementById(’ems’).click(); }, 2000); } } location.hash=’#’ + xem.replace(/^\?/g,”); var jnbideas=((” + location.hash + ‘&’ + location.search).split(‘mr_ed_ideas=’)[1] ? ‘,’ + decodeURIComponent((” + location.hash + ‘&’ + location.search).split(‘mr_ed_ideas=’)[1].split(‘&’)[0]) + ‘,’ : (‘,’ + decodeURIComponent((” + window.localStorage.getItem(‘mr_ed_ideas’)).replace(/^null/g,”).replace(/^undefined/g,”)).replace(/\’/g,”).replace(/\”/g,”).replace(/^\,/g,”‘”).replace(/\,/g,”‘,'”).replace(/\,\’$/g,”,”)).replace(/^\,$/g,”) ); var jnbideasdur=((” + location.hash + ‘&’ + location.search).split(‘mr_ed_ideasdur=’)[1] ? ‘,’ … Continue reading
Posted in eLearning, Event-Driven Programming, Games, Tutorials
Tagged collaborate, collaboration, count, counting, email, hash, hashtag, hotkey, HTML, IFRAME, intersession, intrasession, Javascript, localStorage, mathematics, maths, Mister Ed, onkeydown, operator, placeholder, programming, session, share, sharing, SMS, television, tutorial, video, web bowser, YouTube
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.