// emoji_widget_idea.js // RJM Programming // September, 2019 // Help out WordPress Text Widget var emojilist=['🔊', '📏', '🏃🏾♀️', '🍌', '📧', '🍱', '🇦🇩', '🔝']; var emojiurls=['//www.rjmprogramming.com.au/HTMLCSS/web_audio.htm', '//www.rjmprogramming.com.au/HTMLCSS/square_hr_tracing.htm', '//www.rjmprogramming.com.au/HTMLCSS/emoji_walk_animation.htm', '//www.rjmprogramming.com.au/HTMLCSS/fruits.html', '//www.rjmprogramming.com.au/HTMLCSS/name_your.html', '//www.rjmprogramming.com.au/HTMLCSS/circuit.htm', '//www.rjmprogramming.com.au/HTMLCSS/flagquiz.htm', '//www.rjmprogramming.com.au/HTMLCSS/emoji_overlay.htm']; var emojihtag=['web_audio', 'square_hr_tracing', 'emoji_walk_animation', 'fruits', 'name_your_mascot', 'sushi_train', 'flag_quiz', 'emoji_overlay']; var lastuplace=''; var lasthtag=''; var deviceWidth = window.orientation == 0 ? window.screen.height: window.screen.width; var deviceHeight = window.orientation == 0 ? window.screen.width : window.screen.height; function oicheck(iois){ var ok=false; if (iois != null) { var aconto = (iois.contentWindow || iois.contentDocument); if (aconto != null) { if (aconto.document) { aconto = aconto.document; } if (aconto.body != null) { if (aconto.body.innerHTML.toLowerCase().indexOf('>not found<') == -1) { ok=true; } //var rect=aconto.body.getBoundingClientRect(); //alert('' + rect.width); } } } if (!ok && lastuplace.replace('/PHP/', '/HTMLCSS/').indexOf('/HTMLCSS/') != -1) { lastuplace=lastuplace.replace('/PHP/', '/').replace('/HTMLCSS/', '/'); iois.src=lastuplace; } } function gotothis(label, uplace) { document.getElementById('top-container').style.display='none'; lastuplace=uplace; lasthtag=label; var iih=document.getElementById('myrow').innerHTML, xiih=''; if (document.getElementById('i' + label)) { xiih=document.getElementById('i' + label).outerHTML; document.getElementById('myrow').innerHTML='