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: hash
Javascript Map Array Chart Tutorial
Does the data behind yesterday’s Javascript Map Array Import Tutorial remind you of anything? Relative database data? Spreadsheets? That last one has lots of synergy, we reckon. And lots of us know, in spreadsheet software products like Microsoft Excel, once a … spreadsheet is involved … charts are often offered as a graphical stand in display (to the tabular looking spreadsheet, that is) And in this respect, looking back on our interfacing work to Google Charts when you have a label name to numerical quantity relationship two Google Chart types (we know of) are useful … Pie Chart … and … Histogram Chart … and we’d like to offer some optional interfacing to these (to improve functionality, that is) … the Javascript for this leaning on the new … function datait(oselv) { var outv=oselv, kk=0, firstdelim=”; //alert(outv); if (outv != ”) { if (oselv.indexOf(‘PHP/Pie’) != -1) { document.getElementById(‘title’).value=document.getElementById(‘topic’).innerHTML + ‘ ‘ + document.getElementById(‘spanok’).innerHTML + ‘ versus ‘ + document.getElementById(‘spanlow’).innerHTML + ‘ Report’; document.getElementById(‘popularity’).value=document.getElementById(‘thquantity’).innerHTML; document.getElementById(‘task’).value=document.getElementById(‘thquantity’).innerHTML; document.getElementById(‘country’).value=document.getElementById(‘thname’).innerHTML; document.getElementById(‘desc’).value=document.getElementById(‘thname’).innerHTML; outv=outv.replace(‘title=Title’, ‘title=’ + encodeURIComponent(document.getElementById(‘topic’).innerHTML + ‘ ‘ + document.getElementById(‘spanok’).innerHTML + ‘ versus ‘ + document.getElementById(‘spanlow’).innerHTML + ‘ Report’)); outv=outv.replace(‘popularity=Popularity’, ‘popularity=’ + encodeURIComponent(document.getElementById(‘thquantity’).innerHTML)); outv=outv.replace(‘country=Country’, ‘country=’ + encodeURIComponent(document.getElementById(‘thname’).innerHTML)); outv=outv.replace(‘task=Popularity’, ‘task=’ + encodeURIComponent(document.getElementById(‘thquantity’).innerHTML)); outv=outv.replace(‘desc=Country’, ‘desc=’ + encodeURIComponent(document.getElementById(‘thname’).innerHTML)); for (kk=0; kk<fruits.length; kk++) { if ((‘~,’ + fruits[kk].quantity + ‘]’).replace(/\~\,\]/g,’~,0]’).indexOf(‘-‘) == -1) { outv+=’,[~’ + encodeURIComponent(fruits[kk].name) + (‘~,’ + fruits[kk].quantity + ‘]’).replace(/\~\,\]/g,’~,0]’); } } } else if (oselv.indexOf(‘PHP/Histogram’) != -1) { document.getElementById(‘title’).value=document.getElementById(‘topic’).innerHTML + ‘ ‘ + document.getElementById(‘spanok’).innerHTML + ‘ versus ‘ + document.getElementById(‘spanlow’).innerHTML + ‘ Report’; document.getElementById(‘popularity’).value=document.getElementById(‘thquantity’).innerHTML; document.getElementById(‘task’).value=document.getElementById(‘thquantity’).innerHTML; document.getElementById(‘country’).value=document.getElementById(‘thname’).innerHTML; document.getElementById(‘desc’).value=document.getElementById(‘thname’).innerHTML; outv=outv.replace(‘title=Title’, ‘title=’ + encodeURIComponent(document.getElementById(‘topic’).innerHTML + ‘ ‘ + document.getElementById(‘spanok’).innerHTML + ‘ versus ‘ + document.getElementById(‘spanlow’).innerHTML + ‘ Report’)); outv=outv.replace(‘popularity=Popularity’, ‘popularity=’ + encodeURIComponent(document.getElementById(‘thquantity’).innerHTML)); outv=outv.replace(‘country=Country’, ‘country=’ + encodeURIComponent(document.getElementById(‘thname’).innerHTML)); outv=outv.replace(‘task=Popularity’, ‘task=’ + encodeURIComponent(document.getElementById(‘thquantity’).innerHTML)); outv=outv.replace(‘desc=Country’, ‘desc=’ + encodeURIComponent(document.getElementById(‘thname’).innerHTML)); for (kk=0; kk<fruits.length; kk++) { outv+=’,[~’ + encodeURIComponent(fruits[kk].name) + (‘~,’ + fruits[kk].quantity + ‘]’).replace(/\~\,\]/g,’~,0]’); } //alert(outv); } else if (oselv.indexOf(‘PHP/Geo’) != -1) { document.getElementById(‘title’).value=document.getElementById(‘topic’).innerHTML + ‘ ‘ + document.getElementById(‘spanok’).innerHTML + ‘ versus ‘ + document.getElementById(‘spanlow’).innerHTML + ‘ Report’; document.getElementById(‘popularity’).value=document.getElementById(‘thquantity’).innerHTML; document.getElementById(‘task’).value=document.getElementById(‘thquantity’).innerHTML; document.getElementById(‘country’).value=document.getElementById(‘thname’).innerHTML; document.getElementById(‘desc’).value=document.getElementById(‘thname’).innerHTML; outv=outv.replace(‘title=Title’, ‘title=’ + encodeURIComponent(document.getElementById(‘topic’).innerHTML + ‘ ‘ + document.getElementById(‘spanok’).innerHTML + ‘ versus ‘ + document.getElementById(‘spanlow’).innerHTML + ‘ Report’)); outv=outv.replace(‘popularity=Popularity’, ‘popularity=’ + encodeURIComponent(document.getElementById(‘thquantity’).innerHTML)); outv=outv.replace(‘country=Country’, ‘country=’ + encodeURIComponent(document.getElementById(‘thname’).innerHTML)); outv=outv.replace(‘task=Popularity’, ‘task=’ + encodeURIComponent(document.getElementById(‘thquantity’).innerHTML)); outv=outv.replace(‘desc=Country’, ‘desc=’ + encodeURIComponent(document.getElementById(‘thname’).innerHTML)); for (kk=0; kk<fruits.length; kk++) { outv+=firstdelim + ‘%20[~’ + encodeURIComponent(fruits[kk].name) + (‘~,’ + fruits[kk].quantity + ‘]’).replace(/\~\,\]/g,’~,0]’) + ‘%20′; firstdelim=’,’; } if ((” + outv).length > 600) { return toolong(outv.replace(‘&data=%20’, ‘&data=%20#’)); } } } if ((” + outv).length > 600) … Continue reading
Posted in eLearning, Event-Driven Programming, Tutorials
Tagged array, browse, browsing, button, chart, conduit, CSV, data, Did you know, DOM, drag and drop, email, emoji, emoji button, file, file browsing, function, generic, genericization, get, Google Charts, groupBy, hardcoding, hash, hashtag, histogram, Histogram Chart, import, inventory, iPhone, Javascript, mailto, map, method, mobile, object, Object Oriented Programming, OOP, pie chart, programming, push, relationship, set, share, sharing, SMS, spreadsheet, structure, tool, tutorial, undefined
Leave a comment
Javascript Map Array Import Tutorial
Is it … the extension of import capabilities … or … the sharing capabilities … of most interest in today’s work, extending that of yesterday’s Javascript Map Array Genericization Tutorial? Well … the extension of import capabilities … function askall(preenterall) { var isfirst=true; var delall=false; var enterall=(” + preenterall).replace(/^undefined$/g,”); if (enterall == ”) { enterall=prompt(‘Optionally copy all your CSV (comma separated values) data to apply here (where ; or | can be record delimiters). Optionally prefix this CSV data with your topic followed by ~`~’ + String.fromCharCode(10) + String.fromCharCode(10) + ‘Example …’ + String.fromCharCode(10) + ‘Fish~`~taylor,300;barramundi,400;perch,100;mullet,234’, ”); } //else { //alert(enterall); //} if (enterall == null) { enterall=”; } if (enterall.indexOf(‘~`~’) != -1) { document.getElementById(‘topic’).innerHTML=enterall.split(‘~`~’)[0]; enterall=enterall.replace(enterall.split(‘~`~’)[0] + ‘~`~’, ”); } if (enterall.indexOf(‘,’) != -1) { var elines=[]; if (enterall.indexOf(String.fromCharCode(10)) != -1) { elines=enterall.split(String.fromCharCode(10)); } else if (enterall.indexOf(‘;’) != -1) { elines=enterall.split(‘;’); } else if (enterall.indexOf(‘|’) != -1) { elines=enterall.split(‘|’); } for (var ie=0; ie<elines.length; ie++) { if (elines[ie].indexOf(‘”,”‘) != -1 && elines[ie].indexOf(‘”,”‘) < elines[ie].indexOf(‘,’)) { if (!delall) { delall=true; fruits=[]; m = new Map(); } if (elines[ie].substring(1).replace(‘-‘,”).substring(0,1) >= ‘0’ && elines[ie].substring(1).replace(‘-‘,”).substring(0,1) <= ‘9’) { //alert(1); addone(elines[ie].split(‘”,”‘)[1].split(‘”‘)[0], elines[ie].substring(1).split(‘”‘)[0]); } else { //alert(2); addone(elines[ie].substring(1).split(‘”‘)[0], elines[ie].split(‘”,”‘)[1].split(‘”‘)[0]); } } else if (elines[ie].indexOf(‘”,’) != -1 && elines[ie].indexOf(‘”,’) < elines[ie].indexOf(‘,’)) { if (!delall) { delall=true; fruits=[]; m = new Map(); } if (elines[ie].substring(1).replace(‘-‘,”).substring(0,1) >= ‘0’ && elines[ie].substring(1).replace(‘-‘,”).substring(0,1) <= ‘9’) { //alert(3); addone(elines[ie].split(‘”,’)[1].split(‘,’)[0], elines[ie].substring(1).split(‘”‘)[0]); } else { //alert(4); addone(elines[ie].substring(1).split(‘”‘)[0], elines[ie].split(‘”,’)[1].split(‘,’)[0]); } } else if (elines[ie].indexOf(‘,”‘) != -1 && elines[ie].indexOf(‘,”‘) == elines[ie].indexOf(‘,’)) { if (!delall) { delall=true; fruits=[]; m = new Map(); } if (elines[ie].substring(0).replace(‘-‘,”).substring(0,1) >= ‘0’ && elines[ie].substring(0).replace(‘-‘,”).substring(0,1) <= ‘9’) { //alert(5); addone(elines[ie].split(‘,”‘)[1].split(‘”‘)[0], elines[ie].substring(0).split(‘,’)[0]); } else { //alert(6); addone(elines[ie].substring(0).split(‘,’)[0], elines[ie].split(‘,”‘)[1].split(‘”‘)[0]); } } else if (elines[ie].indexOf(‘,’) != -1) { if (!delall) { delall=true; fruits=[]; m = new Map(); } if (elines[ie].substring(0).replace(‘-‘,”).substring(0,1) >= ‘0’ && elines[ie].substring(0).replace(‘-‘,”).substring(0,1) <= ‘9’) { //alert(7); addone(elines[ie].substring(0).split(‘,’)[1], elines[ie].substring(0).split(‘,’)[0]); } else { //alert(8); if (isfirst && ((elines[ie].substring(0).split(‘,’)[1] + ‘ ‘).replace(‘-‘,”).substring(0,1) < ‘0’ || (elines[ie].substring(0).split(‘,’)[1] + ‘ ‘).replace(‘-‘,”).substring(0,1) > ‘9’)) { document.getElementById(‘topic’).innerHTML=elines[ie].substring(0).split(‘,’)[0].substring(0,1).toUpperCase() + elines[ie].substring(0).split(‘,’)[0].substring(1); document.getElementById(‘thname’).innerHTML=elines[ie].substring(0).split(‘,’)[0].substring(0,1).toUpperCase() + elines[ie].substring(0).split(‘,’)[0].substring(1); document.getElementById(‘thquantity’).innerHTML=elines[ie].substring(0).split(‘,’)[1].substring(0,1).toUpperCase() + elines[ie].substring(0).split(‘,’)[1].substring(1); } else { addone(elines[ie].substring(0).split(‘,’)[0], elines[ie].substring(0).split(‘,’)[1]); } } } isfirst=false; } beadjustable(); } } function yesthreethree(restis) { if (restis.indexOf(‘;base64,’) != -1) { var icontent=window.atob(restis.split(‘;base64,’)[1]); if (((” + icontent).trim() + ‘ ‘).replace(/^\[caption/g,'<‘).substring(0,1) == ‘<‘) { askall(extractContent(icontent,true)); } else { askall(icontent); } } else { askall(restis); } } …asked for tweaks to our changed client_browsing.htm client side HTML and Javascript inhouse file browsing interfacer showing a “first time” scenario, for … Continue reading
Posted in eLearning, Event-Driven Programming, Tutorials
Tagged array, browse, browsing, button, conduit, CSV, Did you know, DOM, drag and drop, email, emoji, emoji button, file, file browsing, function, generic, genericization, get, groupBy, hardcoding, hash, hashtag, import, inventory, iPhone, Javascript, mailto, map, method, mobile, object, Object Oriented Programming, OOP, programming, push, set, share, sharing, SMS, structure, tool, tutorial, undefined
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.