<html>
<head>
<title id=myt>Clairvoyance Game - RJM Programming - May, 2026 ... </title>
<meta charset="UTF-8"/>
<style>
#tdstatus[title^='Awaiting Other '] {
border: 3px solid red;
}
#tdstatus[title^='Awaiting a '] {
border: 3px solid rgb(127,0,0);
}
#tdstatus[title^='Awaiting Guess '] {
border: 3px solid orange;
}
#tdstatus[title^='Select the '] {
border: 6px solid lightgreen;
}
#tdstatus[title^='Select a '] {
border: 6px solid green;
}
#tdstatus { padding: 5 5 5 5; }
#td1 { border-right: 1px dotted pink; }
#td2 { border-right: 1px dotted pink; }
#td3 { border-right: 1px dotted pink; }
#td4 { border-right: 1px dotted pink; }
td { vertical-align: top; }
</style>
<script type=text/javascript>
// clairvoyance_game.html
// RJM Programming - May, 2026
var outofifc=true, nexttime=false, do_once=false, midway='', midwaytwo='';
var zener_cards=['/circle_yellow.jpg#circle_yellow','/cross_red.jpg#cross_red','/waves_blue.jpg#waves_blue','/square_black.jpg#square_black','/star_green.jpg#star_green'];
var theword='Clairvoyance';
var thenoun='Zener Card';
var theelem="<img style='object-fit:contain;' src=";
var thewords=['Clairvoyance', 'Fruit', 'Food', 'Animal', 'Bird', 'Carpentry', 'London', 'India', 'Australian Indigenous Language', 'Cell'];
var theelems=["<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src=", "<img style='object-fit:contain;' src="];
var theihs=[">", ">", ">", ">", ">", ">", ">", ">", ">", ">"];
var thenouns=['Zener Card', 'Fruit', 'Meal', 'Creature', 'Bird', 'Framework Feature', 'Day', 'State', 'Language Area', 'Cell Part'];
var wordg=(document.URL.indexOf('wordg=') != -1 ? decodeURIComponent(document.URL.split('wordg=')[1].split('&')[0].split('#')).replace(/\+/g,' ') : '');
//alert('Wordg=' + wordg);
wordg=(document.URL.indexOf('one=') != -1 ? decodeURIComponent(document.URL.split('one=')[1].split('&')[0].split('#')).replace(/\+/g,' ') : wordg);
//alert('wordg=' + wordg);
var theiw=(document.URL.indexOf('itype=') != -1 && wordg == '' ? eval(-1 + eval('' + document.URL.split('itype=')[1].split('&')[0].split('#'))) : 0);
var sharingremembereds='';
var theiwbefore=0;
var documentURL=document.URL;
var wastw=theiw;
var ppsuff='';
var youare='';
var otheris='', delay=0, imlist=[], tds=[], squaredim=0, wourl='', randomize=false;
var score=0, goes=0;
var woois=null;
var pick=-1, awaiting=false, holdon=false;
var bihnull=true, imname='', coordsarr=[], xaltdu='';
var anchor=null;
var initval='';
if (document.URL.indexOf('iam=%40&') != -1) { initval='Wait'; }
var lastafterscore='';
var wherewrong=false;
var sharemyscore=false, allowsdone=false;
var zcblurb=' You can enter ? to find out more about the history of Zener Cards. ';
var yehbut=false;
theiwbefore=eval('' + thewords.length);
if (document.URL.indexOf('mysel=') != -1) { getridof(); }
//if (document.URL.indexOf('sharels=') != -1) { setTimeout(function(){ wastw=theiw; theiw=0; fireup(); theiw=wasiw; documentURL=document.URL; reassemble(''); }, 5000); }
//lookforremembereds();
if (theiw > 0) {
zcblurb='';
document.title=document.title.replace('Clairvoyance ', thewords[theiw] + ' ');
if (thewords[theiw] == 'Food') {
theelems[theiw]='<button style=font-size:100px; title=';
theihs[theiw]='>';
zener_cards[0]+='|🍛';
zener_cards[1]+='|🍱';
zener_cards[2]+='|🍘';
zener_cards[3]+='|🍙';
zener_cards[4]+='|🍣';
} else if (thewords[theiw] == 'Fruit') { // '127825', '127825', '127818', '127827', '127821'
theelems[theiw]='<button style=font-size:100px; title=';
theihs[theiw]='>';
zener_cards[0]+='|🍉';
zener_cards[1]+='|🍑';
zener_cards[2]+='|🍊';
zener_cards[3]+='|🍓';
zener_cards[4]+='|🍍';
} else if (thewords[theiw] == 'Animal') {
theelems[theiw]='<button style=font-size:100px; title=';
theihs[theiw]='>';
zener_cards[0]+='|🐒';
zener_cards[1]+='|🦍';
zener_cards[2]+='|🦧';
zener_cards[3]+='|🐶';
zener_cards[4]+='|🐕';
} else if (thewords[theiw] == 'Bird') {
delay=8000;
randomize=true;
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems[theiw]='<img data-url="//www.rjmprogramming.com.au/HTMLCSS/bird_quiz.htm" style="object-fit:contain;" src="';
} else {
theelems[theiw]='<img data-url="/bird_quiz.htm" style="object-fit:contain;" src="';
}
theihs[theiw]='>';
zener_cards[0]+=''; // |//www.rjmprogramming.com.au/HTMLCSS/birdyquiz.jpeg#8,5,374,370';
zener_cards[1]+=''; // |//www.rjmprogramming.com.au/HTMLCSS/birdyquiz.jpeg#374,5,930,370';
zener_cards[2]+=''; // |//www.rjmprogramming.com.au/HTMLCSS/birdyquiz.jpeg#930,5,1164,370';
zener_cards[3]+=''; // |//www.rjmprogramming.com.au/HTMLCSS/birdyquiz.jpeg#1164,5,1500,370';
zener_cards[4]+=''; // |//www.rjmprogramming.com.au/HTMLCSS/birdyquiz.jpeg#5,680,374,1120';
} else if (thewords[theiw] == 'Carpentry') {
delay=8000;
randomize=true;
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems[theiw]='<img data-url="//www.rjmprogramming.com.au/HTMLCSS/floor_wall_roof_framing_members.html" style="object-fit:Cover;" src="';
} else {
theelems[theiw]='<img data-url="/HTMLCSS/floor_wall_roof_framing_members.html" style="object-fit:Cover;" src="';
}
theihs[theiw]='>';
zener_cards[0]+='';
zener_cards[1]+='';
zener_cards[2]+='';
zener_cards[3]+='';
zener_cards[4]+='';
} else if (thewords[theiw] == 'London') {
delay=8000;
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems[theiw]='<img data-url="//www.rjmprogramming.com.au/HTMLCSS/london_trip_via_map_element.html" style="object-fit:Cover;" src="';
} else {
theelems[theiw]='<img data-url="/HTMLCSS/london_trip_via_map_element.html" style="object-fit:Cover;" src="';
}
theihs[theiw]='>';
zener_cards[0]+='';
zener_cards[1]+='';
zener_cards[2]+='';
zener_cards[3]+='';
zener_cards[4]+='';
} else if (thewords[theiw] == 'India') {
delay=8000;
randomize=true;
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems[theiw]='<img data-url="//www.rjmprogramming.com.au/HTMLCSS/india_map.html" style="object-fit:Cover;" src="';
} else {
theelems[theiw]='<img data-url="/HTMLCSS/india_map.html" style="object-fit:Cover;" src="';
}
theihs[theiw]='>';
zener_cards[0]+='';
zener_cards[1]+='';
zener_cards[2]+='';
zener_cards[3]+='';
zener_cards[4]+='';
} else if (thewords[theiw] == 'Australian Indigenous Language') {
delay=8000;
randomize=true;
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems[theiw]='<img data-url="//www.rjmprogramming.com.au/HTMLCSS/ImageMap/Languages/aboriginal_language_regions.html" style="object-fit:Cover;" src="';
} else {
theelems[theiw]='<img data-url="/HTMLCSS/ImageMap/Languages/aboriginal_language_regions.html" style="object-fit:Cover;" src="';
}
theihs[theiw]='>';
zener_cards[0]+='';
zener_cards[1]+='';
zener_cards[2]+='';
zener_cards[3]+='';
zener_cards[4]+='';
} else if (thewords[theiw] == 'Cell') {
delay=8000;
randomize=true;
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems[theiw]='<img data-url="//www.rjmprogramming.com.au/HTMLCSS/the_cell.html" style="object-fit:Cover;" src="';
} else {
theelems[theiw]='<img data-url="/HTMLCSS/the_cell.html" style="object-fit:Cover;" src="';
}
theihs[theiw]='>';
zener_cards[0]+='';
zener_cards[1]+='';
zener_cards[2]+='';
zener_cards[3]+='';
zener_cards[4]+='';
}
}
if (wordg != '') {
if (thewords.indexOf(wordg) != -1) {
theiw=eval('' + thewords.indexOf(wordg));
document.title=thewords[theiw] + ' Game ' + document.title.split(' Game ')[1];
setTimeout(function(){
document.getElementById('muh1').innerHTML=document.getElementById('muh1').innerHTML.replace(document.getElementById('muh1').innerHTML.split(' Game')[0] + ' Game', thewords[theiw] + ' Game');
}, 5000);
}
}
if ((theihs[theiw] + '>').substring(0,1) == ' ') { randomize=true; } else { randomize=false; }
var sideas=['Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess','Select the ' + thenouns[theiw] + ' Your Player Partner Selected','Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess','Awaiting Guess from Your Player Partner','Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner'];
function lookforremembereds() {
var foundarr=[], ifo=0, blankis='%20';
var founds=decodeURIComponent(('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,''));
if (founds.indexOf('+') != -1) { blankis='+'; }
if (founds.trim() != '') {
//alert(0);
//alert('founds=' + founds);
foundarr=founds.split('~!~');
var wasdu=documentURL;
for (ifo=0; ifo<foundarr.length; ifo++) {
if (eval('' + foundarr[ifo].split(',').length) < 5) {
//alert(foundarr[ifo]);
documentURL='?one=' + encodeURIComponent(foundarr[ifo].split('|')[0]) + '&two=' + encodeURIComponent(foundarr[ifo].split('|')[1]) + '&three=' + encodeURIComponent(foundarr[ifo].replace(foundarr[ifo].split('|')[0] + '|' + foundarr[ifo].split('|')[1] + '|','')) + '&four=&five=' + (foundarr[ifo].replace(foundarr[ifo].split('|')[0] + '|' + foundarr[ifo].split('|')[1] + '|','').slice(-1) == ' ' ? '&randomized=y' : '');
assemblyadd(foundarr[ifo],0);
} else if (foundarr[ifo].split(',')[1].substring(0,1) >= '0' && foundarr[ifo].split(',')[1].substring(0,1) <= '9') {
documentURL='?one=' + encodeURIComponent(foundarr[ifo].split('|')[0]) + '&two=' + encodeURIComponent(foundarr[ifo].split('|')[1]) + '&four=' + encodeURIComponent(foundarr[ifo].replace(foundarr[ifo].split('|')[0] + '|' + foundarr[ifo].split('|')[1] + '|','')) + '&three=&five=' + (foundarr[ifo].replace(foundarr[ifo].split('|')[0] + '|' + foundarr[ifo].split('|')[1] + '|','').slice(-1) == ' ' ? '&randomized=y' : '');
assemblyadd(foundarr[ifo],1);
} else {
//alert(2);
documentURL='?one=' + encodeURIComponent(foundarr[ifo].split('|')[0]) + '&two=' + encodeURIComponent(foundarr[ifo].split('|')[1]) + '&five=' + encodeURIComponent(foundarr[ifo].replace(foundarr[ifo].split('|')[0] + '|' + foundarr[ifo].split('|')[1] + '|','')) + '&four=&three=' + (foundarr[ifo].replace(foundarr[ifo].split('|')[0] + '|' + foundarr[ifo].split('|')[1] + '|','').slice(-1) == ' ' ? '&randomized=y' : '');
//alert(documentURL);
assemblyadd(foundarr[ifo],2);
//alert(22);
}
}
documentURL=wasdu;
}
}
function getnoun() {
return thenouns[theiw];
}
function multimaybe() {
var selbit='', jsel=0;
if (eval('' + thenouns.length) > 1) {
selbit="<sup><select id=selmy ontouchmove='event.stopPropagation();' onmousedown='event.stopPropagation();' style=width:30px; onchange=\"if (eval('' + this.value) != eval(1 + eval('' + theiw))) { if (this.value == '') { this.value=this.value; } else if (this.value == ' ') { this.value=''; newask(); } else if (eval('' + this.value) > theiwbefore) { location.href=document.URL.split('?')[0].split('#')[0] + '?itype=' + this.value + '&wordg=' + encodeURIComponent(this.innerHTML.split(' value=' + String.fromCharCode(34) + this.value + String.fromCharCode(34))[1].split('>')[1].split(' Game')[0]); } else { location.href=document.URL.split('?')[0].split('#')[0] + '?itype=' + this.value; } }\"><option value=" + eval(1 + theiw) + ">?</option><option value=' '>Your Own ...</option></select> </sup> ";
for (jsel=0; jsel<thewords.length; jsel++) {
selbit=selbit.replace('</select>', '<option value=' + eval(1 + jsel) + '>' + thewords[jsel] + ' Game</option></select>');
}
}
return selbit;
}
function lastcall() {
if (outofifc && nexttime) {
nexttime=false;
if (document.URL.indexOf('iam=%40&') == -1) { if (4 == 6) { document.title='why'; } setTimeout(ifcontentious, 20000); }
} else if (!outofifc && nexttime) {
setTimeout(lastcall, 1000);
}
}
function ifcok() {
var fval='false';
if (yehbut) { return false; }
if (!outofifc && !nexttime) {
nexttime=true;
fval='False';
setTimeout(lastcall, 1000);
}
if (document.body.innerHTML == '' || document.URL.indexOf('iam=%40&') != -1 || !outofifc || (document.getElementById('iam').value.replace('@','').trim() != '' && document.getElementById('otheris').value.trim() != '')) {
if (4 == 6) { document.title=fval; }
return false;
}
if (4 == 6) { document.title='true'; }
return true;
}
function getsms() {
return sharemyscore;
}
function getcontsms() {
if (sharemyscore) {
return ' <font size=1 id=myfont>Score: ' + score + '/' + goes + '</font> ';
}
return '';
}
function mbga(inis) {
if (('' + inis).indexOf('About_Us.htm') == -1) { return inis; }
//alert('youare=' + youare + ' and otheris=' + otheris);
//if (youare == otheris) { youare+='X'; parent.document.getElementById('ifplay').setAttribute('data-src',parent.document.getElementById('ifplay').getAttribute('data-src').replace('%20','X')); }
//if (otheris != '') { parent.document.getElementById('otheris').value=otheris; }
//if (youare != '') { parent.document.getElementById('iam').value=youare; }
return '' + parent.document.getElementById('ifplay').getAttribute('data-src');
}
function ifcontentious() {
var ims=[], jims=0, decis='';
if (!ifcok()) { return ''; }
//if (document.URL.indexOf('iam=%40&') != -1) {
// return '';
//}
outofifc=false;
if (document.getElementById('iam').value.replace('@','').trim() != '' && document.getElementById('otheris').value.trim() != '') {
otheris=document.getElementById('otheris').value;
youare=document.getElementById('iam').value.replace(/^\@$/g,'');
holdon=false;
inform(youare);
initval='Wait';
outofifc=true;
return '';
} else {
decis=(document.getElementById('myh3').innerHTML.indexOf('are playing with') != -1 ? 'Wait' : initval);
if (decis == '') {
//decis=prompt('Other players are ' + document.getElementById('morethanone').value + ' ... enter a player to play Clairvoyance Game with, as listed (where you are ' + document.getElementById('iam').value + ' and you can play yourself) or invite someone via an email adddress or mobile SMS number (and append this with a space to keep returning to the list here in the meantime) or leave answer as Wait to return a bit later and reanswer with a refreshed list.', 'Wait');
decis=prompt('Other players are ' + document.getElementById('morethanone').value + ' ... enter a player to play ' + thewords[theiw] + ' Game with, as listed (where you are ' + document.getElementById('iam').value + ' and you can play yourself) or invite someone via an email adddress or mobile SMS number or leave answer as Wait to return a bit later and reanswer with a refreshed list. Entering Pause or Stop can stop the prompting.' + zcblurb, 'Wait');
}
if (document.URL.indexOf('iam=%40&') == -1 || decis == null) { initval=''; }
if (decis != null && ('' + decis).replace(/^null/g,'').replace(/^undefined/g,'').trim() != '') {
if (decis.trim() == '?') {
window.open('//wikipedia.org/wiki/Zener_cards','_blank','top=50,left=50,width=600,height=600');
zcblurb='';
decis='Wait';
}
//alert(',' + decis + ', ,' + document.getElementById('morethanone').value + ', ' + document.getElementById('iam').value);
if (decis.toLowerCase() == 'pause' || decis.toLowerCase() == 'stop') {
location.href='./clairvoyance_game.php?linktorestart=' + Math.floor(Math.random() * 19897865);
} else if (decis.toLowerCase() == 'wait') {
//alert('chereit');
bihnull=false;
holdon=true;
//if (!awaiting) {
//awaiting=true;
youare=document.getElementById('iam').value.replace(/^\@$/g,'');
document.getElementById('ifplay').setAttribute('data-src',document.getElementById('ifplay').getAttribute('data-src').replace('iam=%40&','iam=' + encodeURIComponent(youare) + '&').replace('iam=&','iam=' + encodeURIComponent(youare) + '&'));
ims=document.getElementsByTagName('img');
for (jims=0; jims<ims.length; jims++) {
ims[jims].setAttribute('disabled',true);
}
//}
document.body.style.cursor='progress';
if (document.URL.indexOf('iam=%40&') == -1) { if (4 == 6) { document.title='why?'; } outofifc=true; if (ifcok()) { setTimeout(ifcontentious, 20000); } } //document.getElementById('amoffnow').click();
} else if ((',' + document.getElementById('morethanone').value + ',').indexOf(',' + decis + ',') != -1 && decis.trim() != '' && decis.trim() == document.getElementById('iam').value.trim()) {
//alert(26745);
holdon=false;
document.body.style.cursor='pointer';
otheris=decis;
document.getElementById('otheris').value=otheris;
youare=document.getElementById('iam').value.replace(/^\@$/g,'');
if (youare == otheris) {
otheris+=' ';
document.getElementById('otheris').value=otheris;
}
document.getElementById('ifplay').setAttribute('data-src',document.getElementById('ifplay').getAttribute('data-src').replace('iam=%40&','iam=' + encodeURIComponent(youare) + '&').replace('iam=&','iam=' + encodeURIComponent(youare) + '&'));
document.getElementById('myh3').style.cursor='pointer';
if (!document.getElementById('myfont')) {
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ...')[0] + ' ... you (' + youare + ') are playing with ' + otheris + ' our ' + thewords[theiw] + ' Game';
}
document.title='' + thewords[theiw] + ' Game' + ' ... you (' + youare + ') are playing with ' + otheris + ' our ' + thewords[theiw] + ' Game';
if (otheris.replace(/X$/g,'').replace(/x$/g,'').replace(/\ $/g,'') == youare.replace(/X$/g,'').replace(/x$/g,'').replace(/\ $/g,'')) {
woois=window.open(document.URL.split('?')[0].split('#')[0] + '?itype=' + eval(1 + theiw) + '&blankatend=y', '_blank', 'top=50,left=50,width=' + eval(-100 + screen.width) + ',height=' + eval(-100 + screen.height));
}
document.getElementById('ifplay').src=document.getElementById('ifplay').getAttribute('data-src') + encodeURIComponent(decis);
} else if (decis.indexOf('@') != -1) { // email invitation
//alert('zhereit');
holdon=true;
document.body.style.cursor='progress';
youare=document.getElementById('iam').value.replace(/^\@$/g,'');
document.getElementById('ifplay').setAttribute('data-src',document.getElementById('ifplay').getAttribute('data-src').replace('iam=%40&','iam=' + encodeURIComponent(youare) + '&').replace('iam=&','iam=' + encodeURIComponent(youare) + '&'));
//if (!awaiting) {
//awaiting=true;
ims=document.getElementsByTagName('img');
for (jims=0; jims<ims.length; jims++) {
ims[jims].setAttribute('disabled',true);
}
//}
//document.getElementById('tdstatus').innerHTML='Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess';
//document.getElementById('tdstatus').innerHTML+='?';
anchor = document.createElement('a');
anchor.href = 'mailto:' + decis.trim() + '?subject=' + encodeURIComponent('' + thewords[theiw] + ' Game player ' + youare + ' has logged in and is inviting you to play by clicking link below ...') + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?iam=' + encodeURIComponent(decis.trim()) + '&playwith=' + encodeURIComponent(youare) + whataboutyourown('&itype=' + eval(1 + theiw)) + '&rand=' + Math.floor(Math.random() * 16754));
anchor.style.display='none';
anchor.innerHTML='Email';
anchor.target='_top';
anchor.click();
if (decis.trim() != decis || 14 == 14) {
if (4 == 6) { document.title='Why'; } if (document.getElementById('iam').value.replace('@','').trim() == '' || document.getElementById('otheris').value.trim() == '') { setTimeout(ifcontentious, 20000); } //document.getElementById('amoffnow').click();
}
} else if (decis.replace(/\ /g,'').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,'') == '') { // sms invitation
//alert('xhereit');
holdon=true;
document.body.style.cursor='progress';
youare=document.getElementById('iam').value.replace(/^\@$/g,'');
document.getElementById('ifplay').setAttribute('data-src',document.getElementById('ifplay').getAttribute('data-src').replace('iam=%40&','iam=' + encodeURIComponent(youare) + '&').replace('iam=&','iam=' + encodeURIComponent(youare) + '&'));
//if (!awaiting) {
//awaiting=true;
ims=document.getElementsByTagName('img');
for (jims=0; jims<ims.length; jims++) {
ims[jims].setAttribute('disabled',true);
}
//}
//document.getElementById('tdstatus').innerHTML='Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess';
//document.getElementById('tdstatus').innerHTML+='?';
anchor = document.createElement('a');
anchor.href = 'sms:' + decis.trim() + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?iam=' + encodeURIComponent(decis.trim()) + '&playwith=' + encodeURIComponent(youare) + whataboutyourown('&itype=' + eval(1 + theiw)) + '&rand=' + Math.floor(Math.random() * 19876754));
anchor.style.display='none';
anchor.innerHTML='SMS';
anchor.target='_top';
anchor.click();
if (decis.trim() != decis || 14 == 14) {
if (4 == 6) { document.title='Why??'; } if (document.getElementById('iam').value.replace('@','').trim() == '' || document.getElementById('otheris').value.trim() == '') { setTimeout(ifcontentious, 20000); } //document.getElementById('amoffnow').click();
}
} else {
holdon=true;
document.body.style.cursor='pointer';
initval='Wait';
//alert('hereit');
if (1 == 1) {
window.open(document.URL.split('?')[0].split('#')[0] + '?iam=%40&playwith=' + decis.trim() + '&rand=' + Math.floor(Math.random() * 1989675) + whataboutyourown('#itype=' + eval(1 + eval('' + theiw))), '_top');
//document.body.innerHTML='';
} else {
//bihnull=false;
//document.getElementById('amoffnow').click();
location.href=document.URL.split('?')[0].split('#')[0] + '?iam=%40&playwith=' + decis.trim() + '&rand=' + Math.floor(Math.random() * 1989675) + whataboutyourown('#itype=' + eval(1 + eval('' + theiw)));
//document.body.innerHTML='';
}
//bihnull=false;
//document.getElementById('amoffnow').click();
//window.stop();
}
} else {
//alert('qhereit');
holdon=false;
document.body.style.cursor='pointer';
bihnull=false;
document.getElementById('amoffnow').click();
}
}
outofifc=true;
}
function newquestion() {
}
function sendquestion() {
}
function inform(iamw) {
var isemsm=false;
document.getElementById('iam').value=iamw;
if (otheris == '') {
otheris=iamw.trim();
} else {
document.getElementById('otheris').value=otheris;
isemsm=true;
}
youare=document.getElementById('iam').value.replace(/^\@$/g,'');
document.getElementById('ifplay').setAttribute('data-src',document.getElementById('ifplay').getAttribute('data-src').replace('iam=%40&','iam=' + encodeURIComponent(youare) + '&').replace('iam=&','iam=' + encodeURIComponent(youare) + '&'));
document.getElementById('myh3').style.cursor='pointer';
if (!document.getElementById('myfont')) {
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ...')[0] + ' ... you (' + youare + ') are playing with ' + otheris + ' our ' + thewords[theiw] + ' Game';
}
document.title='' + thewords[theiw] + ' Game' + ' ... you (' + youare + ') are playing with ' + otheris+ ' our ' + thewords[theiw] + ' Game';
if (otheris == youare && !isemsm) {
woois=window.open(document.URL.split('?')[0].split('#')[0] + '?itype=' + eval(1 + theiw) + '&blankatend=y', '_blank', 'top=50,left=50,width=' + eval(-100 + screen.width) + ',height=' + eval(-100 + screen.height));
} else if (otheris == youare) {
if (3 == 5) { alert('Weird, huh?!'); }
} //else {
//alert('More to do?!');
//}
//alert(mbga(document.getElementById('ifplay').src) + encodeURIComponent(otheris));
if (decodeURIComponent(document.getElementById('ifplay').src).indexOf('@') != -1 || document.URL.indexOf('playwith=') != -1) {
if ((document.getElementById('ifplay').src + '&').indexOf('=' + encodeURIComponent(otheris) + '&') != -1) {
if (otheris == youare) {
otheris+='x';
document.getElementById('otheris').value=otheris;
}
//alert('1:' + holdon + './clairvoyance_game.php?iam=' + encodeURIComponent(youare) + '&playwith=' + encodeURIComponent(otheris));
document.getElementById('ifplay').src='./clairvoyance_game.php?iam=' + encodeURIComponent(youare) + '&playwith=' + encodeURIComponent(otheris);
} else {
//alert('2:' + holdon + './clairvoyance_game.php?iam=' + encodeURIComponent(youare) + '&playwith=' + encodeURIComponent(otheris));
document.getElementById('ifplay').src='./clairvoyance_game.php?iam=' + encodeURIComponent(youare) + '&playwith=' + encodeURIComponent(otheris);
}
} else {
//alert(otheris + ':' + youare + ' pre3:' + document.getElementById('ifplay').src + ' ' + document.getElementById('ifplay').getAttribute('data-src'));
//alert('3:' + holdon + mbga(document.getElementById('ifplay').src) + encodeURIComponent(otheris));
document.getElementById('ifplay').src=mbga(document.getElementById('ifplay').src) + encodeURIComponent(otheris);
}
}
function signoff(regardingme) {
document.getElementById('ifnomore').src=document.getElementById('ifnomore').getAttribute('data-src') + encodeURIComponent(regardingme);
document.getElementById('ifyesmore').src=document.getElementById('ifnomore').src + '&affects=' + encodeURIComponent(otheris);
if (bihnull) { document.body.innerHTML=''; window.stop(); }
}
function sendstatus(what, regardingwho) {
}
function bye() {
var ansis=confirm('Your playing partner has signed off. Do you want to restart?');
if (ansis) {
//alert('yes' + document.URL.split('?')[0].split('#')[0]);
location.href=document.URL.split('?')[0].split('#')[0];
window.stop();
} else {
if (bihnull) { document.body.innerHTML=''; window.stop(); }
}
}
function gameask() {
goes++;
var synopsis=' ... bad luck' + (wherewrong ? ' ... it was ' + document.getElementById('yourguess').value : '');
var ans=prompt('What do you reckon was selected by ' + otheris, '');
if (ans) {
if (ans == document.getElementById('yourguess').value) {
synopsis=' ... well done ... spot on!';
document.getElementById('myguess').value=document.getElementById('yourguess').value;
score++;
}
}
document.getElementById('score').innerHTML='Score: ' + score + '/' + goes + synopsis;
sendstatus(synopsis, document.getElementById('iam').value);
}
function fireup() {
var thisiw=theiw;
if (thisiw >= eval('' + thewords.length)) { thisiw=0; }
for (var ii=1; ii<=5; ii++) {
if (document.getElementById('td' + ii).outerHTML.indexOf('background') == -1 && window.parent == window.self) {
//alert(theelems[thisiw] + ' ... ' + zener_cards[eval(-1 + ii)]);
if (theelems[thisiw].indexOf('<img ') == 0) {
//document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[[eval(-1 + ii)]] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
} else {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)] + theelems[thisiw].slice(-1).replace('=','') + " id=img" + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[[eval(-1 + ii)]] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
}
//document.getElementById('td' + ii).style.background="url('" + zener_cards[eval(-1 + ii)] + "')";
//document.getElementById('td' + ii).style.backgroundSize='contain';
//document.getElementById('td' + ii).style.backgroundRepeat='no-repeat';
//alert(ii);
}
}
}
function statuscheck() {
var ims=[], jims=0;
document.getElementById('tdstatus').title=document.getElementById('tdstatus').innerHTML;
if (document.getElementById('iam').value.replace(/^\@$/g,'') != '' && document.getElementById('otheris').value != '' && document.getElementById('myh3').innerHTML.indexOf(' ... checking for other game players now') != -1) {
document.getElementById('myh3').style.cursor='pointer';
if (!document.getElementById('myfont')) {
document.getElementById('myh3').innerHTML=document.getElementById('myh3').innerHTML.split(' ...')[0] + ' ... you (' + document.getElementById('iam').value + ') are playing with ' + document.getElementById('otheris').value + ' our ' + thewords[theiw] + ' Game';
}
}
if (document.getElementById('iam').value != '' && document.getElementById('otheris').value != '' && document.getElementById('myh3').innerHTML.indexOf(' ... checking for other game players now') == -1 && !allowsdone) {
allowsdone=true;
document.getElementById('allows').style.display='inline-block';
document.getElementById('fshare').style.display='inline-block';
document.getElementById('allowstwo').style.display='inline-block';
document.getElementById('fsharetwo').style.display='inline-block';
}
if (document.getElementById('tdstatus').innerHTML == 'Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess ...') {
holdon=false;
}
if (document.getElementById('tdstatus').innerHTML.indexOf('Awaiting ') == 0) {
if (!awaiting) {
awaiting=true;
ims=document.getElementsByTagName('img');
for (jims=0; jims<ims.length; jims++) {
ims[jims].setAttribute('disabled',true);
}
}
} else if (awaiting) {
awaiting=false;
ims=document.getElementsByTagName('img');
for (jims=0; jims<ims.length; jims++) {
ims[jims].removeAttribute('disabled');
}
}
}
function isitok(wasthisval, suggestedbecoming) {
var outidea=suggestedbecoming;
if (sideas.indexOf(wasthisval) != -1 && sideas.indexOf(suggestedbecoming) != -1) {
if ((eval(sideas.indexOf(suggestedbecoming)) + 1 - eval(sideas.indexOf(wasthisval))) == 0) {
outidea=outidea;
alert(1);
} else if (eval(sideas.indexOf(wasthisval)) == eval(-1 + sideas.length) && eval(sideas.indexOf(suggestedbecoming)) == 0) {
outidea=outidea;
alert(2);
} else {
alert('Oops ' + wasthisval + ' onto ' + suggestedbecoming);
}
}
return outidea;
}
function toggle() {
if (document.getElementById('tdstatus').innerHTML.toLowerCase().indexOf(('Awaiting Guess from Your Player Partner').toLowerCase()) == 0) {
//alert('one');
document.getElementById('tdstatus').innerHTML='Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess ...'; //Awaiting a Zener Card Selection from Your Playing Partner ...';
} else if (document.getElementById('tdstatus').innerHTML.toLowerCase().indexOf(('Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner').toLowerCase()) == 0) {
//alert('three');
document.getElementById('tdstatus').innerHTML='Select the ' + thenouns[theiw] + ' Your Player Partner Selected ...'; //Awaiting a Zener Card Selection from Your Playing Partner ...';
} else if (document.getElementById('tdstatus').innerHTML.indexOf('Awaiting ') == 0) {
//alert('two');
document.getElementById('tdstatus').innerHTML='Select the ' + thenouns[theiw] + ' Your Player Partner Selected ...';
} else {
document.getElementById('tdstatus').innerHTML='Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess ...';
if (woois) {
//alert('11woois ' + holdon + ' ' + document.URL);
setTimeout(function(){
//woois.focus();
woois.document.getElementById('tdstatus').innerHTML='Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner ... ';
//alert('11wooisX ' + holdon + ' ' + document.URL);
}, 5000); // ???
} else if (window.opener) {
//alert('11wopener ' + holdon + ' ' + document.URL);
setTimeout(function(){
//window.opener.focus();
if (2 == 23) {
window.opener.document.getElementById('tdstatus').innerHTML='Select the ' + thenouns[theiw] + ' Your Player Partner Selected ... ';
} else if (5 == 5) {
window.opener.document.getElementById('tdstatus').innerHTML='Awaiting Guess from Your Player Partner ... ';
//alert('11wopenerZ ' + holdon + ' ' + document.URL);
} else {
window.opener.document.getElementById('tdstatus').innerHTML='Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner ... ';
}
//alert('11wopenerX ' + holdon + ' ' + document.URL);
}, 5000); // ???
} else if (document.URL.indexOf('playwith=') != -1) { // is guest
// //alert('1 ' + holdon + ' ' + document.URL);
//if (sharemyscore) {
// ppsuff+=" setTimeout(function(){ var wash3=parent.document.getElementById('myh3').innerHTML.split(' <')[0].split(' ')[0].split(' <')[0].split('<')[0].split(' our ')[0]; if (parent.document.getElementById('score').innerHTML != 'Score: " + score + "JU/NK" + goes + "') { parent.document.getElementById('myh3').innerHTML=wash3 + ('" + getcontsms() + "' + ' our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' '); } }, 3000); ";
//}
document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('iam').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" parent.document.getElementById('tdstatus').innerHTML='Awaiting a " + thenouns[theiw] + " Selection from Your Playing Partner ... '; ");
////if (ppsuff != '') {
////setTimeout(function(){
////document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('otheris').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(ppsuff);
//ppsuff='';
//alert(456);
////}, 2300);
////}
//alert(456);
//toggle(); //document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&js=' + encodeURIComponent(" parent.document.getElementById('tdstatus').innerHTML='Select the " + thenouns[theiw] + " Your Player Partner Selected ...'; ");
} else { // is originator
//alert('What do I do?');
// //alert('11 ' + holdon + ' ' + document.URL);
//if (sharemyscore) {
// ppsuff+=" setTimeout(function(){ var wash3=parent.document.getElementById('myh3').innerHTML.split(' <')[0].split(' ')[0].split(' <')[0].split('<')[0].split(' our ')[0]; if (parent.document.getElementById('score').innerHTML != 'Score: " + score + "JU/NK" + goes + "') { parent.document.getElementById('myh3').innerHTML=wash3 + ('" + getcontsms() + "' + ' our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' '); } }, 3000); ";
//}
document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('otheris').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" parent.document.getElementById('tdstatus').innerHTML='Awaiting a " + thenouns[theiw] + " Selection from Your Playing Partner ... '; ");
////if (ppsuff != '') {
////setTimeout(function(){
////document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('iam').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(ppsuff.replace('setTimeout(function(){ ',' '),replace(' , 3000);',''));
//ppsuff='';
//alert(4256);
////}, 2300);
////}
//alert(4256);
//alert('11 ' + holdon + ' ' + decodeURIComponent(document.getElementById('ifpiam').src));
//toggle(); //document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&js=' + encodeURIComponent(" parent.document.getElementById('tdstatus').innerHTML='Select the " + thenouns[theiw] + " Your Player Partner Selected ...'; ");
}
//setTimeout(function(){ alert('huh ' + document.URL + ' RE Select a Zener Card You Are Asking Your Player Partner to Guess'); }, 5000);
}
}
function washing(inscore) {
var wash3=document.getElementById('myh3').innerHTML.split(' <')[0].split(' our ')[0];
if (inscore.trim() == 'Score:') {
if (lastafterscore != '') {
if (lastafterscore != (' ' + score + '/' + goes) || !document.getElementById('myfont')) {
document.getElementById('myh3').innerHTML=wash3 + (' <font size=1 id=myfont>Score:' + lastafterscore + '</font> our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' ');
}
}
} else {
if (inscore != ('Score: ' + score + '/' + goes) || !document.getElementById('myfont')) {
lastafterscore=inscore.split('Score:')[1];
document.getElementById('myh3').innerHTML=wash3 + (' <font size=1 id=myfont>' + inscore + '</font> our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' ');
}
}
}
function changeover(pck) {
var doit=true, wash3='', newsc='';
var synopsis=' ... bad luck'; // ... it was ' + document.getElementById('yourguess').value;
pick=pck;
// false ... Select a Zener Card You Are Asking Your Player Partner to Guess ... is working
// false ... Select the Zener Card Your Player Partner Selected ... is not working
//document.title=('' + awaiting + ' ' + document.URL + ' ... ' + document.getElementById('tdstatus').innerHTML);
// alert('' + awaiting + ' ' + document.URL + ' ... ' + document.getElementById('tdstatus').innerHTML);
if (document.getElementById('tdstatus').innerHTML.indexOf('Select a ') == 0) {
ppsuff='';
}
if (!awaiting && (document.getElementById('tdstatus').innerHTML.indexOf('Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess') == 0)) {
document.getElementById('tdstatus').innerHTML='Awaiting Guess from Your Player Partner ...';
if (woois) {
//document.title=('woois:' + awaiting + ' ' + document.URL + ' ... ' + document.getElementById('tdstatus').innerHTML);
// alert('yourguess=' + document.getElementById('yourguess').value + ' yourguesswop=' + woois.document.getElementById('yourguess').value);
// alert('myguess=' + document.getElementById('myguess').value + ' myguesswop=' + woois.document.getElementById('myguess').value);
if (('' + woois.document.getElementById('yourguess').value) == '' || 1 == 1) {
woois.document.getElementById('yourguess').value='' + pck;
document.getElementById('yourguess').value='' + pck; // new
}
woois.document.getElementById('ifplay').src=woois.document.getElementById('ifplay').src.split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865);
setTimeout(function(){ woois.document.getElementById('tdstatus').innerHTML='Select the ' + thenouns[theiw] + ' Your Player Partner Selected ...'; }, 3000); // ???
//setTimeout(function(){ alert('What should child be saying now?'); }, 5000);
} else if (window.opener) {
//document.title=('wop:' + awaiting + ' ' + document.URL + ' ... ' + document.getElementById('tdstatus').innerHTML);
if (('' + window.opener.document.getElementById('yourguess').value) == '') {
window.opener.document.getElementById('yourguess').value='' + pck;
}
window.opener.document.getElementById('ifplay').src=window.opener.document.getElementById('ifplay').src.split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865);
setTimeout(function(){ window.opener.document.getElementById('tdstatus').innerHTML='Select the ' + thenouns[theiw] + ' Your Player Partner Selected ...'; }, 3000); // ???
//setTimeout(function(){ alert('What should parent be saying now?'); }, 5000);
} else if (document.URL.indexOf('playwith=') != -1) { // is guest
//alert(111);
//doit=false;
document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?pck=' + pck + '&from=' + encodeURIComponent(document.getElementById('iam').value) + '&to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + '&js=' + encodeURIComponent(" if (('' + parent.document.getElementById('yourguess').value) == '') { parent.document.getElementById('yourguess').value='' + pck; } parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); setTimeout(function(){ parent.document.getElementById('tdstatus').innerHTML='Select the " + thenouns[theiw] + " Your Player Partner Selected ...'; }, 3000); ");
document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?pck=' + pck + '&to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&js=' + encodeURIComponent(" if (('' + parent.document.getElementById('yourguess').value) == '') { parent.document.getElementById('yourguess').value='' + pck; } parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); ");
} else { // is originator
//doit=false;
//alert('What dost I do?');
//alert('1111 ' + holdon + ' ' + otheris);
document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?pck=' + pck + '&to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('iam').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" if (('' + parent.document.getElementById('yourguess').value) == '') { parent.document.getElementById('yourguess').value='' + pck; } parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); setTimeout(function(){ parent.document.getElementById('tdstatus').innerHTML='Select the " + thenouns[theiw] + " Your Player Partner Selected ...'; }, 3000); ");
//alert('1111a ' + holdon + ' ' + decodeURIComponent(document.getElementById('ifpiam').src)); // new below
document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?pck=' + pck + '&to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&js=' + encodeURIComponent(" if (5 == 6) { parent.document.getElementById('tdstatus').innerHTML='Select the " + thenouns[theiw] + " Your Player Partner Selected ...'; } parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); ");
}
} else if (document.getElementById('tdstatus').innerHTML.indexOf('Select the ' + thenouns[theiw] + ' Your Player Partner Selected') == 0) {
goes++;
if (('' + document.getElementById('yourguess').value) == ('' + pck)) {
synopsis=' ... well done ... spot on!';
score++;
if (sharemyscore) {
ppsuff=" setTimeout(function(){ var wash3=parent.document.getElementById('myh3').innerHTML.split(' <')[0].split(' ')[0].split(' <')[0].split('<')[0].split(' our ')[0]; if (parent.document.getElementById('score').innerHTML != 'Score: " + score + "JU/NK" + goes + "') { parent.document.getElementById('myh3').innerHTML=(wash3 + ('" + getcontsms() + "' + ' our " + thewords[theiw] + " Game').replace(' ',' ')).replace(/\ \;\ \;/g,' ').replace(/\ \;\ \;/g,' '); } }, 3000); ";
}
} else {
if (woois) {
if (('' + woois.document.getElementById('yourguess').value) == ('' + pck)) {
synopsis=' ... well done ... spot on!';
score++;
}
}
synopsis=' ... bad luck' + (wherewrong ? ' ... it was ' + document.getElementById('yourguess').value : '');
if (sharemyscore) {
ppsuff=" setTimeout(function(){ var wash3=parent.document.getElementById('myh3').innerHTML.split(' <')[0].split(' ')[0].split(' <')[0].split('<')[0].split(' our ')[0]; if (parent.document.getElementById('score').innerHTML != 'Score: " + score + "JU/NK" + goes + "') { parent.document.getElementById('myh3').innerHTML=(wash3 + ('" + getcontsms() + "' + ' our " + thewords[theiw] + " Game').replace(' ',' ')).replace(/\ \;\ \;/g,' ').replace(/\ \;\ \;/g,' '); } }, 3000); ";
}
}
document.getElementById('score').innerHTML='Score: ' + score + '/' + goes + synopsis;
document.getElementById('myguess').value='';
document.getElementById('yourguess').value='';
if (woois) {
woois.document.getElementById('yourguess').value='';
woois.document.getElementById('myguess').value='';
woois.document.getElementById('tdstatus').innerHTML=isitok(woois.document.getElementById('tdstatus').innerHTML,'Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess ...'); //Awaiting a Zener Card Selection from Your Playing Partner ...';
woois.document.getElementById('ifplay').src=woois.document.getElementById('ifplay').src.split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865);
if (sharemyscore) {
wash3=woois.document.getElementById('myh3').innerHTML.split(' <')[0].split(' our ')[0];
woois.document.getElementById('myh3').innerHTML=wash3 + (getcontsms() + ' our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' ');
}
} else if (window.opener) {
window.opener.document.getElementById('yourguess').value='';
window.opener.document.getElementById('myguess').value='';
window.opener.document.getElementById('tdstatus').innerHTML=isitok(window.opener.document.getElementById('tdstatus').innerHTML,'Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess ...'); //Awaiting a Zener Card Selection from Your Playing Partner ...';
window.opener.document.getElementById('ifplay').src=window.opener.document.getElementById('ifplay').src.split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865);
if (sharemyscore) {
wash3=window.opener.document.getElementById('myh3').innerHTML.split(' <')[0].split(' our ')[0];
window.opener.document.getElementById('myh3').innerHTML=wash3 + (getcontsms() + ' our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' ');
}
} else if (document.URL.indexOf('playwith=') != -1) { // is guest
if (sharemyscore) {
ppsuff=" setTimeout(function(){ var wash3=parent.document.getElementById('myh3').innerHTML.split(' <')[0].split(' ')[0].split(' <')[0].split('<')[0].split(' our ')[0]; if (parent.document.getElementById('score').innerHTML != 'Score: " + score + "JU/NK" + goes + "') { parent.document.getElementById('myh3').innerHTML=(wash3 + ('" + getcontsms() + "' + ' our ' + thewords[theiw] + ' Game').replace(' ',' ')).replace(/\ \;\ \;/g,' ').replace(/\ \;\ \;/g,' '); } }, 3000); ";
}
//doit=false;
document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('iam').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" parent.document.getElementById('yourguess').value=''; parent.document.getElementById('myguess').value=''; parent.document.getElementById('tdstatus').innerHTML=parent.isitok(parent.document.getElementById('tdstatus').innerHTML,'Awaiting Other Player Choosing a " + thenouns[theiw] + " to Guess ...'); parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); ");
document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('otheris').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" parent.document.getElementById('yourguess').value=''; parent.document.getElementById('myguess').value=''; parent.document.getElementById('tdstatus').innerHTML=parent.isitok(parent.document.getElementById('tdstatus').innerHTML,'Select a " + thenouns[theiw] + " You Are Asking Your Player Partner to Guess ...'); parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); ");
// alert('11111 ' + ppsuff);
//ppsuff='';
} else { // is originator
if (sharemyscore) {
ppsuff=" setTimeout(function(){ var wash3=parent.document.getElementById('myh3').innerHTML.split(' <')[0].split(' ')[0].split(' <')[0].split('<')[0].split(' our ')[0]; if (parent.document.getElementById('score').innerHTML != 'Score: " + score + "JU/NK" + goes + "') { parent.document.getElementById('myh3').innerHTML=(wash3 + ('" + getcontsms() + "' + ' our ' + thewords[theiw] + ' Game').replace(' ',' ')).replace(/\ \;\ \;/g,' ').replace(/\ \;\ \;/g,' '); } }, 3000); ";
}
//doit=false;
//alert('What do I do?');
// alert('111111 ' + ppsuff);
document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('otheris').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" parent.document.getElementById('yourguess').value=''; parent.document.getElementById('myguess').value=''; parent.document.getElementById('tdstatus').innerHTML=parent.isitok(parent.document.getElementById('tdstatus').innerHTML,'Awaiting Other Player Choosing a " + thenouns[theiw] + " to Guess ...'); parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); ");
document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + '&from=' + encodeURIComponent(document.getElementById('iam').value + (ppsuff != '' ? ('Score: ' + score + '/' + goes) : '')) + '&js=' + encodeURIComponent(" parent.document.getElementById('yourguess').value=''; parent.document.getElementById('myguess').value=''; parent.document.getElementById('tdstatus').innerHTML=parent.isitok(parent.document.getElementById('tdstatus').innerHTML,'Select a " + thenouns[theiw] + " You Are Asking Your Player Partner to Guess ...'); parent.document.getElementById('ifplay').src=parent.mbga(parent.document.getElementById('ifplay').src).split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865); "); // + ppsuff.replace('setTimeout(funcJUNKtion(){ ',' '),replace(' , 30JUNK00);',''));
//ppsuff='';
//alert('What do though do?');
}
if (doit) { toggle(); }
} else {
//alert('here ' + '' + awaiting + ' ... ' + document.getElementById('tdstatus').innerHTML);
goes++;
if (('' + woois.document.getElementById('yourguess').value) == ('' + pck) || ('' + document.getElementById('yourguess').value) == ('' + pck)) {
synopsis=' ... well done ... spot on!';
score++;
} else {
synopsis=' ... bad luck' + (wherewrong ? ' ... it was ' + document.getElementById('yourguess').value : '');
}
document.getElementById('score').innerHTML='Score: ' + score + '/' + goes + synopsis;
document.getElementById('myguess').value='';
document.getElementById('yourguess').value='';
if (woois) {
woois.document.getElementById('yourguess').value='';
woois.document.getElementById('myguess').value='';
woois.document.getElementById('tdstatus').innerHTML=isitok(woois.document.getElementById('tdstatus').innerHTML,'Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess ...'); //Awaiting a Zener Card Selection from Your Playing Partner ...';
woois.document.getElementById('ifplay').src=woois.document.getElementById('ifplay').src.split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865);
if (sharemyscore) {
wash3=woois.document.getElementById('myh3').innerHTML.split(' <')[0].split(' our ')[0];
woois.document.getElementById('myh3').innerHTML=wash3 + (getcontsms() + ' our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' ');
}
} else if (window.opener) {
window.opener.document.getElementById('yourguess').value='';
window.opener.document.getElementById('myguess').value='';
window.opener.document.getElementById('tdstatus').innerHTML=isitok(window.opener.document.getElementById('tdstatus').innerHTML,'Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess ...'); //Awaiting a Zener Card Selection from Your Playing Partner ...';
window.opener.document.getElementById('ifplay').src=window.opener.document.getElementById('ifplay').src.split('&statustoggle=')[0] + '&statustoggle=' + Math.floor(Math.random() * 19897865);
if (sharemyscore) {
wash3=window.opener.document.getElementById('myh3').innerHTML.split(' <')[0].split(' our ')[0];
window.opener.document.getElementById('myh3').innerHTML=wash3 + (getcontsms() + ' our ' + thewords[theiw] + ' Game').replace(' ',' ').replace(' ',' ');
}
} else {
alert('what do though do?');
}
toggle();
}
return pck;
}
function hon(what) {
holdon=what;
}
function oof(what) {
outofifc=what;
}
function chscal(ochk) {
if (ochk.checked) {
sharemyscore=true;
ochk.style.display='none';
document.getElementById('fshare').innerHTML='';
}
}
function chscaltwo(ochk) {
if (ochk.checked) {
wherewrong=true;
ochk.style.display='none';
document.getElementById('fsharetwo').innerHTML='';
}
}
function onl() {
var ds='';
if (!do_once) {
do_once=true;
fireup();
//setTimeout(function(){
if (window.opener || document.URL.indexOf('iam=%40&') != -1) {
alert('dwfg');
ds+=("<iframe style=display:none; onload=\"setTimeout(function(){ document.getElementById('ifsleep').src=document.getElementById('ifsleep').getAttribute('data-src'); }, 5000);\" src='./clairvoyance_game.php?intro" + midwaytwo + "clone=" + Math.floor(Math.random() * 198978654) + "' id=ifintro></iframe>");
midwaytwo="JUNK";
} else { // if (document.URL.indexOf('iam=%40&') == -1) {
alert('dfg');
ds+=("<iframe style=display:none; onload=\"setTimeout(function(){ document.getElementById('ifsleep').src=document.getElementById('ifsleep').getAttribute('data-src'); }, 5000);\" src='./clairvoyance_game.php?introd" + midway + "uction=" + Math.floor(Math.random() * 198978654) + "' id=ifintro></iframe>");
midway="JUNK";
}
//}, 3000);
if ((document.URL + '&').indexOf('iam=') != -1 && (document.URL + '&').replace('iam=#','iam=&').indexOf('iam=&') == -1) {
if ((document.URL + '&').indexOf('playwith=') != -1 && (document.URL + '&').replace('playwith=#','playwith=&').indexOf('playwith=&') == -1) {
document.getElementById('tdstatus').innerHTML='Awaiting a ' + thewords[theiw] + ' Selection from Your Playing Partner';
holdon=true;
setTimeout(function(){ holdon=false; }, 10000);
ds+=("<iframe style=display:none; src='./clairvoyance_game.php?" + document.URL.split('?')[1] + "' data-src='./clairvoyance_game.php?iam=&playwith=' id=ifplay></iframe>");
} else {
ds+=("<iframe style=display:none; data-src='./clairvoyance_game.php?iam=&playwith=' src='/About_Us.html' id=ifplay></iframe>");
}
} else {
ds+=("<iframe style=display:none; data-src='./clairvoyance_game.php?iam=&playwith=' src='/About_Us.html' id=ifplay></iframe>");
}
if (ds != '') { document.getElementById('dstuff').innerHTML+=ds; }
}
}
function imc(iois) {
var aconto=null, prefixing='', ipr=0, minx=0, miny=0, maxx=0, maxy=0, donesofar=',';
if (iois.src.indexOf('/About_Us.htm') == -1) {
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
//alert('' + aconto.body.innerHTML.indexOf('<area ') + '!' + aconto.body.innerHTML.split(' shape="rect"').length + '?' + iois.src + ';' + aconto.body.innerHTML.split('<map ')[0].split('<img ')[eval(-1 + aconto.body.innerHTML.split('<map ')[0].split('<img ').length)] + ':' + aconto.body.innerHTML);
if (eval('' + aconto.body.innerHTML.indexOf('<map ')) > eval('' + aconto.body.innerHTML.indexOf('<img ')) && aconto.body.innerHTML.indexOf('<map ') != -1 && aconto.body.innerHTML.indexOf('<img ') != -1 && aconto.body.innerHTML.indexOf('<area ') != -1 && aconto.body.innerHTML.replace(/shape\=\"poly\"/g,'shape="rect"').indexOf('shape="rect"') != -1) {
//alert('000:' + '');
if (aconto.body.innerHTML.indexOf('shape="rect"') == -1) {
prefixing=' ';
//if (document.URL.indexOf('&debug=') != -1) { alert('yes'); }
}
wourl=iois.src;
coordsarr=aconto.body.innerHTML.replace(/shape\=\"poly\"/g,'shape="rect"').split('shape="rect"');
//alert('0000:' + coordsarr.length);
if (eval('' + coordsarr.length) > 5) {
//alert('00:' + '');
imname=aconto.body.innerHTML.split('<map ')[0].split('<img ')[eval(-1 + aconto.body.innerHTML.split('<map ')[0].split('<img ').length)];
//alert('0:' + imname);
imname=imname.split('src="')[1];
//alert('1:' + imname);
imname=imname.split('"')[0];
//alert('2:' + imname);
if ((imname + 'x').indexOf('//') != -1 || (imname + 'x').indexOf('data:') == 0) { // || (imname + 'x').substring(0,1) == '/') {
if ((imname + 'x').indexOf('data:') == 0) {
imname=imname;
} else {
imname='//' + imname.split('//')[1];
}
} else if ((imname + 'x').substring(0,1) == '/') {
if (iois.src.indexOf('//') != -1) {
imname='//' + iois.src.split('//')[1].split('/')[0] + '/' + imname.substring(1);
} else {
imname='//www.rjmprogramming.com.au/' + imname.substring(1);
}
} else if ((imname + 'xxxxxxxxx').substring(0,12) == '../../../../') {
imname=iois.src.replace(iois.src.split('/')[eval(-5 + iois.src.split('/').length)], imname.substring(12) + '#');
} else if ((imname + 'xxxxxxxxx').substring(0,9) == '../../../') {
imname=iois.src.replace(iois.src.split('/')[eval(-4 + iois.src.split('/').length)], imname.substring(9) + '#');
} else if ((imname + 'xxxxxx').substring(0,6) == '../../') {
imname=iois.src.replace(iois.src.split('/')[eval(-3 + iois.src.split('/').length)], imname.substring(6) + '#');
} else if ((imname + 'xxx').substring(0,3) == '../') {
imname=iois.src.replace(iois.src.split('/')[eval(-2 + iois.src.split('/').length)], imname.substring(3) + '#');
} else if ((imname + 'xx').substring(0,1) == './') {
imname=iois.src.replace(iois.src.split('/')[eval(-1 + iois.src.split('/').length)], imname.substring(2));
} else {
imname=iois.src.replace(iois.src.split('/')[eval(-1 + iois.src.split('/').length)], imname.substring(0));
}
}
//alert(imname.split(' ')[0] + ' ' + coordsarr[1]);
imlist=document.getElementsByTagName('img');
tds=document.getElementsByTagName('td');
squaredim=eval('' + tds[0].getBoundingClientRect().width);
document.getElementById('dtop').style.background='linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.1)),url(' + imname.split(' ')[0] + ')';
document.getElementById('dtop').style.backgroundRepeat='no-repeat';
document.getElementById('dtop').style.backgroundSize='contain';
document.getElementById('dtop').style.backgroundPosition='right top';
document.getElementById('dtop').ontouchmove=function(event){ event.stopPropagation(); if (wourl != '') { window.open(wourl.replace(/\#$/g,''),'_blank'); wourl=''; } };
document.getElementById('dtop').onmousedown=function(event){ event.stopPropagation(); window.open(wourl,'_blank','top=50,left=50,width=600,height=600'); };
var imgis=new Image();
imgis.onload = function(){
var ict=1, jct=1;
var zcanvas = document.createElement('canvas');
zcanvas.width = squaredim; //imgis.width;
zcanvas.height = squaredim; //imgis.height;
var zctx = zcanvas.getContext('2d');
if (!randomize) {
while (coordsarr[ict].indexOf(' coords="') == -1) {
ict++;
}
}
if (randomize) {
ict=Math.floor(Math.random() * eval(-1 + eval('' + coordsarr.length)));
//alert('first ict=' + ict + ' ... ' + donesofar);
while (ict == 0 || (donesofar + ',').indexOf(',' + ict + ',') != -1) {
ict=Math.floor(Math.random() * eval(-1 + eval('' + coordsarr.length)));
if (coordsarr[ict].indexOf(' coords="') == -1) {
if (donesofar != ',') {
ict=eval('' + donesofar.substring(1).split(',')[0]);
} else {
ict++;
}
}
}
donesofar+='' + ict + ',';
}
//for (ict=1; ict<=5; ict++) {
while (jct <= 5) {
//if (document.URL.indexOf('&debug=') != -1) { alert(coordsarr[ict]); }
coordsarr[ict]=coordsarr[ict].split(' coords="')[1].split('"')[0];
if (randomize || prefixing != '' || (eval(eval(coordsarr[ict].split(',')[2].split('"')[0]) - eval(coordsarr[ict].split(',')[0].split('"')[0])) > 10 && eval(eval(coordsarr[ict].split(',')[3].split('"')[0]) - eval(coordsarr[ict].split(',')[1].split('"')[0])) > 10)) {
//alert('zctx.drawImage("' + imname.split(' ')[0] + '",' + eval(coordsarr[ict].split(',')[0].split('"')[0]) + ',' + eval(coordsarr[ict].split(',')[1].split('"')[0]) + ',' + eval(eval(coordsarr[ict].split(',')[2].split('"')[0]) - eval(coordsarr[ict].split(',')[0].split('"')[0])) + ',' + eval(eval(coordsarr[ict].split(',')[3].split('"')[0]) - eval(coordsarr[ict].split(',')[1].split('"')[0])) + ',0,0' + ',' + tds[eval(-1 + ict)].getBoundingClientRect().width + ',' + tds[eval(-1 + ict)].getBoundingClientRect().width + ')');
if (prefixing != '') {
//if (document.URL.indexOf('&debug=') != -1) { alert('YES'); }
minx=0;
miny=0;
maxx=0;
maxy=0;
for (ipr=0; ipr<coordsarr[ict].split(',').length; ipr+=2) {
if (ipr == 0) {
minx=eval(coordsarr[ict].split(',')[ipr].split('"')[0]);
maxx=eval(coordsarr[ict].split(',')[ipr].split('"')[0]);
miny=eval(coordsarr[ict].split(',')[eval(1 + ipr)].split('"')[0]);
maxy=eval(coordsarr[ict].split(',')[eval(1 + ipr)].split('"')[0]);
} else {
if (eval(coordsarr[ict].split(',')[ipr].split('"')[0]) < minx) { minx=eval(coordsarr[ict].split(',')[ipr].split('"')[0]); }
if (eval(coordsarr[ict].split(',')[ipr].split('"')[0]) > maxx) { maxx=eval(coordsarr[ict].split(',')[ipr].split('"')[0]); }
if (eval(coordsarr[ict].split(',')[eval(1 + ipr)].split('"')[0]) < miny) { miny=eval(coordsarr[ict].split(',')[eval(1 + ipr)].split('"')[0]); }
if (eval(coordsarr[ict].split(',')[eval(1 + ipr)].split('"')[0]) > maxy) { maxy=eval(coordsarr[ict].split(',')[eval(1 + ipr)].split('"')[0]); }
}
}
prefixing='' + minx + ',' + miny + ',' + maxx + ',' + maxy;
//if (document.URL.indexOf('&debug=') != -1) { alert('prefixing=' + prefixing); }
coordsarr[ict]=prefixing.trim(); // + ',' + coordsarr[ict];
}
if (theelems[theiw].indexOf('object-fit:none') != -1 || theelems[theiw].indexOf('object-fit:Cover') != -1) {
//if (document.URL.indexOf('&debug=') != -1) { alert('Yes'); }
zcanvas.width = eval(eval(coordsarr[ict].split(',')[2].split('"')[0]) - eval(coordsarr[ict].split(',')[0].split('"')[0])); //imgis.width;
//if (document.URL.indexOf('&debug=') != -1) { alert('YeS'); }
zcanvas.height = eval(eval(coordsarr[ict].split(',')[3].split('"')[0]) - eval(coordsarr[ict].split(',')[1].split('"')[0])); //imgis.height;
//if (document.URL.indexOf('&debug=') != -1) { alert('YEs'); }
zctx.drawImage(imgis, eval(coordsarr[ict].split(',')[0].split('"')[0]), eval(coordsarr[ict].split(',')[1].split('"')[0]), eval(eval(coordsarr[ict].split(',')[2].split('"')[0]) - eval(coordsarr[ict].split(',')[0].split('"')[0])), eval(eval(coordsarr[ict].split(',')[3].split('"')[0]) - eval(coordsarr[ict].split(',')[1].split('"')[0])),0,0,eval(eval(coordsarr[ict].split(',')[2].split('"')[0]) - eval(coordsarr[ict].split(',')[0].split('"')[0])), eval(eval(coordsarr[ict].split(',')[3].split('"')[0]) - eval(coordsarr[ict].split(',')[1].split('"')[0])));
//if (document.URL.indexOf('&debug=') != -1) { alert('yeS'); }
} else {
zctx.drawImage(imgis, eval(coordsarr[ict].split(',')[0].split('"')[0]), eval(coordsarr[ict].split(',')[1].split('"')[0]), eval(eval(coordsarr[ict].split(',')[2].split('"')[0]) - eval(coordsarr[ict].split(',')[0].split('"')[0])), eval(eval(coordsarr[ict].split(',')[3].split('"')[0]) - eval(coordsarr[ict].split(',')[1].split('"')[0])),0,0,squaredim,squaredim);
}
xaltdu=zcanvas.toDataURL("image/jpeg", 0.1);
//alert(xaltdu);
//alert(imlist[eval(-1 + ict)].outerHTML);
//if (document.URL.indexOf('&debug=') != -1) { alert(xaltdu); }
imlist[eval(-1 + jct)].src=xaltdu;
//zener_cards[eval(-1 + jct)]+='' + xaltdu;
if (jct < 5) {
zcanvas.width = squaredim; //imgis.width;
zcanvas.height = squaredim; //imgis.height;
if (prefixing != '') { prefixing=' '; } else { prefixing=''; }
}
jct++;
//} else {
//alert(coordsarr[ict]);
}
if (!randomize) {
ict++;
if (document.URL.indexOf('&debug=') != -1) { alert('ict=' + ict + ' and jct=' + jct); }
} else {
ict=Math.floor(Math.random() * eval(-1 + eval('' + coordsarr.length)));
//alert('first ict=' + ict + ' ... ' + donesofar);
while (ict == 0 || (donesofar + ',').indexOf(',' + ict + ',') != -1) {
ict=Math.floor(Math.random() * eval(-1 + eval('' + coordsarr.length)));
if (coordsarr[ict].indexOf(' coords="') == -1) {
if (donesofar != ',') {
ict=eval('' + donesofar.substring(1).split(',')[0]);
} else {
ict++;
}
}
}
donesofar+='' + ict + ',';
}
}
};
imgis.src=imname.split(' ')[0];
}
}
}
}
}
function imagemapcheck() {
if (theelems[theiw].indexOf(' data-url="') != -1 && theelems[theiw].indexOf(' data-url=""') == -1 && zener_cards[0].replace('#circle_yellow','').indexOf('#') == -1) {
if (theelems[theiw].split(' data-url="')[1].split('"')[0].indexOf('#') == -1) {
if (theelems[theiw].split(' data-url="')[1].split('"')[0].slice(-5).indexOf('.') == -1 && theelems[theiw].split(' data-url="')[1].split('"')[0].slice(-1) != '/') {
document.getElementById('ifimc').src=theelems[theiw].split(' data-url="')[1].split('"')[0] + '/#';
} else {
document.getElementById('ifimc').src=theelems[theiw].split(' data-url="')[1].split('"')[0] + '#';
}
} else {
if (theelems[theiw].split(' data-url="')[1].split('"')[0].split('#')[0].slice(-5).indexOf('.') == -1 && theelems[theiw].split(' data-url="')[1].split('"')[0].split('#')[0].slice(-1) != '/') {
document.getElementById('ifimc').src=theelems[theiw].split(' data-url="')[1].split('"')[0].replace('#','/#');
} else {
document.getElementById('ifimc').src=theelems[theiw].split(' data-url="')[1].split('"')[0];
}
}
}
}
function filloutanyfound() {
var foundarr=[], ifo=0, blankis='%20';
var founds=decodeURIComponent(('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,''));
if (founds.trim() == '') {
document.getElementById('mysel').style.display='none';
document.getElementById('mysel').innerHTML="<option value=''>These old arrangement(s) can be forgotten, as required ...</option>";
} else {
if (founds.indexOf('+') != -1) { blankis='+'; }
document.getElementById('mysel').innerHTML="<option value=''>These old arrangement(s) can be forgotten, as required ...</option>";
foundarr=founds.split('~!~');
for (ifo=0; ifo<foundarr.length; ifo++) {
if (foundarr[ifo].trim() != '') {
if (blankis == '+') {
document.getElementById('mysel').innerHTML+="<option value=\"" + foundarr[ifo].replace(/\+/g,' ').split('|')[0] + "\" data-value='" + encodeURIComponent(foundarr[ifo]).replace(/\%20/g,'+') + "'>" + foundarr[ifo].replace(/\+/g,' ').split('|')[0] + ' Game</option>';
} else {
document.getElementById('mysel').innerHTML+="<option value=\"" + foundarr[ifo].replace(/\+/g,' ').split('|')[0] + "\" data-value='" + encodeURIComponent(foundarr[ifo]) + "'>" + foundarr[ifo].replace(/\+/g,' ').split('|')[0] + ' Game</option>';
}
}
}
}
if (founds.trim() != '') {
document.getElementById('mysel').style.display='inline-block';
}
}
function addthearrs(whatx, zeroimaponeemojitwoimages) {
var partsare=whatx.split('|'), huhhuh='', csvarr=[], thisiw=theiw, ii=1;
//alert(whatx + ',' + zeroimaponeemojitwoimages);
if (eval('' + partsare.length) >= 3) {
if (zeroimaponeemojitwoimages == 0) { // image map
if (documentURL.indexOf('randomized=') != -1) { randomize=true; } else { randomize=false; }
thisiw=eval('' + thewords.length);
thewords.push(whatx.split('|')[0]);
thenouns.push(whatx.split('|')[1]);
if (document.URL.indexOf('rjmprogramming.com.au/') != -1) {
theelems.push('<img data-url="' + whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').trim() + '" style="object-fit:Cover;" src="');
} else if (whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').indexOf('//') != -1) {
huhhuh='//' + whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').split('//')[1].split('/')[0];
theelems.push('<img data-url="' + whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').split(huhhuh)[1].trim() + '" style="object-fit:Cover;" src="');
} else {
theelems.push('<img data-url="' + whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').trim() + '" style="object-fit:Cover;" src="');
}
if (randomize) {
theihs.push(' >');
} else {
theihs.push('>');
}
if (document.getElementById('selmy').innerHTML.indexOf('>' + whatx.split('|')[0] + ' Game') == -1) {
document.getElementById('selmy').innerHTML+='<option value=' + eval(1 + thisiw) + '>' + whatx.split('|')[0] + ' Game</option>';
}
if (wordg == whatx.split('|')[0]) {
document.getElementById('tdstatus').innerHTML=document.getElementById('tdstatus').innerHTML.replace(thenouns[theiw],thenouns[eval(-1 + eval('' + thewords.length))]);
theiw=eval(-1 + eval('' + thewords.length));
setTimeout(function(){ document.getElementById('selmy').value='' + theiw; }, 4000);
document.title=thewords[theiw] + ' Game ' + document.title.split(' Game ')[1];
document.getElementById('muh1').innerHTML=document.getElementById('muh1').innerHTML.replace(document.getElementById('muh1').innerHTML.split(' Game')[0] + ' Game', thewords[theiw] + ' Game');
sideas=['Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess','Select the ' + thenouns[theiw] + ' Your Player Partner Selected','Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess','Awaiting Guess from Your Player Partner','Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner'];
//alert(6754);
imagemapcheck();
}
} else if (zeroimaponeemojitwoimages == 1) { // emojis
csvarrs=whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').split(',');
if (eval('' + csvarrs.length) < 5) {
return '';
}
if (documentURL.indexOf('randomized=') != -1) { randomize=true; } else { randomize=false; }
thisiw=eval('' + thewords.length);
thewords.push(whatx.split('|')[0]);
thenouns.push(whatx.split('|')[1]);
theelems.push('<button style=font-size:100px; title=');
if (randomize) {
theihs.push(' >');
} else {
theihs.push('>');
}
if (document.getElementById('selmy').innerHTML.indexOf('>' + whatx.split('|')[0] + ' Game') == -1) {
document.getElementById('selmy').innerHTML+='<option value=' + eval(1 + thisiw) + '>' + whatx.split('|')[0] + ' Game</option>';
}
if (wordg == whatx.split('|')[0]) {
//alert(2453);
document.getElementById('tdstatus').innerHTML=document.getElementById('tdstatus').innerHTML.replace(thenouns[theiw],thenouns[eval(-1 + eval('' + thewords.length))]);
zener_cards[0]+='|' + csvarrs[0].replace(/\./g,';');
zener_cards[1]+='|' + csvarrs[1].replace(/\./g,';');
zener_cards[2]+='|' + csvarrs[2].replace(/\./g,';');
zener_cards[3]+='|' + csvarrs[3].replace(/\./g,';');
zener_cards[4]+='|' + csvarrs[4].trim().replace(/\./g,';');
theiw=eval(-1 + eval('' + thewords.length));
setTimeout(function(){ document.getElementById('selmy').value='' + theiw; }, 4000);
document.title=thewords[theiw] + ' Game ' + document.title.split(' Game ')[1];
document.getElementById('muh1').innerHTML=document.getElementById('muh1').innerHTML.replace(document.getElementById('muh1').innerHTML.split(' Game')[0] + ' Game', thewords[theiw] + ' Game');
sideas=['Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess','Select the ' + thenouns[theiw] + ' Your Player Partner Selected','Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess','Awaiting Guess from Your Player Partner','Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner'];
fireup();
}
} else if (zeroimaponeemojitwoimages == 2) { // image URLs
csvarrs=whatx.replace(whatx.split('|')[0] + '|' + whatx.split('|')[1] + '|','').split(',');
if (eval('' + csvarrs.length) < 5) {
return '';
}
if (documentURL.indexOf('randomized=') != -1) { randomize=true; } else { randomize=false; }
thisiw=eval('' + thewords.length);
thewords.push(whatx.split('|')[0]);
thenouns.push(whatx.split('|')[1]);
theelems.push('<img style="object-fit:contain;" src="');
if (randomize) {
theihs.push(' >');
} else {
theihs.push('>');
}
//alert(987);
if (document.getElementById('selmy').innerHTML.indexOf('>' + whatx.split('|')[0] + ' Game') == -1) {
console.warn(thewords);
console.warn(theelems);
console.warn(eval(1 + thisiw));
document.getElementById('selmy').innerHTML+='<option value=' + eval(1 + thisiw) + '>' + whatx.split('|')[0] + ' Game</option>';
}
if (wordg == whatx.split('|')[0]) {
document.getElementById('tdstatus').innerHTML=document.getElementById('tdstatus').innerHTML.replace(thenouns[theiw],thenouns[eval(-1 + eval('' + thewords.length))]);
zener_cards[0]+='|' + (csvarrs[0].indexOf('//') != -1 ? '//' + csvarrs[0].split('//')[1] : csvarrs[0]);
//alert(zener_cards[0]);
if (!document.getElementById('img' + ii)) {
//alert(9875);
if (theelems[thisiw].indexOf('<img ') == 0) {
//alert(thisiw);
//alert(theelems[thisiw]);
//alert(zener_cards[eval(-1 + ii)].split('|')[1]);
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
//alert(document.getElementById('td' + ii).innerHTML);
} else {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + " id=img" + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[eval(-1 + ii)] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
}
} else {
document.getElementById('img1').src=zener_cards[0].split('|')[1];
}
//alert(9872);
if (zener_cards[0].indexOf('//') != -1) { document.getElementById('img1').title='Thanks to https://' + zener_cards[0].split('//')[1].split('/')[0] + ' for the image.'; }
//alert(1987);
ii++;
zener_cards[1]+='|' + (csvarrs[1].indexOf('//') != -1 ? '//' + csvarrs[1].split('//')[1] : csvarrs[1]);
if (!document.getElementById('img' + ii)) {
if (theelems[thisiw].indexOf('<img ') == 0) {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
} else {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + " id=img" + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[[eval(-1 + ii)]] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
}
} else {
document.getElementById('img2').src=zener_cards[1].split('|')[1];
}
if (zener_cards[1].indexOf('//') != -1) { document.getElementById('img2').title='Thanks to https://' + zener_cards[1].split('//')[1].split('/')[0] + ' for the image.'; }
//alert(2987);
ii++;
zener_cards[2]+='|' + (csvarrs[2].indexOf('//') != -1 ? '//' + csvarrs[2].split('//')[1] : csvarrs[2]);
if (!document.getElementById('img' + ii)) {
if (theelems[thisiw].indexOf('<img ') == 0) {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
} else {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + " id=img" + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[[eval(-1 + ii)]] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
}
} else {
document.getElementById('img3').src=zener_cards[2].split('|')[1];
}
if (zener_cards[2].indexOf('//') != -1) { document.getElementById('img3').title='Thanks to https://' + zener_cards[2].split('//')[1].split('/')[0] + ' for the image.'; }
//alert(3987);
ii++;
zener_cards[3]+='|' + (csvarrs[3].indexOf('//') != -1 ? '//' + csvarrs[3].split('//')[1] : csvarrs[3]);
if (!document.getElementById('img' + ii)) {
if (theelems[thisiw].indexOf('<img ') == 0) {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
} else {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + " id=img" + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[[eval(-1 + ii)]] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
}
} else {
document.getElementById('img4').src=zener_cards[3].split('|')[1];
}
if (zener_cards[3].indexOf('//') != -1) { document.getElementById('img4').title='Thanks to https://' + zener_cards[3].split('//')[1].split('/')[0] + ' for the image.'; }
//alert(4987);
ii++;
zener_cards[4]+='|' + (csvarrs[4].indexOf('//') != -1 ? '//' + csvarrs[4].trim().split('//')[1] : csvarrs[4]);
if (!document.getElementById('img' + ii)) {
if (theelems[thisiw].indexOf('<img ') == 0) {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + ' id=img' + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
} else {
document.getElementById('td' + ii).innerHTML=theelems[thisiw] + (theelems[thisiw].slice(-1) == '=' ? '' : '') + zener_cards[eval(-1 + ii)].split('|')[1] + theelems[thisiw].slice(-1).replace('=','') + " id=img" + ii + " onclick=\"if (!awaiting && !holdon) { pick=changeover(eval(this.id.replace('img',''))); } else { alert('' + ' Sorry, not your turn, so please wait.'); }\"" + theihs[thisiw] + (zener_cards[[eval(-1 + ii)]] + '|').split('|')[1] + (theelems[thisiw].split(' ')[0] + '>').replace('<','</');
}
} else {
document.getElementById('img5').src=zener_cards[4].split('|')[1];
}
if (zener_cards[4].indexOf('//') != -1) { document.getElementById('img5').title='Thanks to https://' + zener_cards[4].split('//')[1].split('/')[0] + ' for the image.'; }
//alert(5987);
theiw=eval(-1 + eval('' + thewords.length));
//setTimeout(function(){ document.getElementById('selmy').value='' + theiw; }, 4000);
document.title=thewords[theiw] + ' Game ' + document.title.split(' Game ')[1];
document.getElementById('muh1').innerHTML=document.getElementById('muh1').innerHTML.replace(document.getElementById('muh1').innerHTML.split(' Game')[0] + ' Game', thewords[theiw] + ' Game');
sideas=['Awaiting Other Player Choosing a ' + thenouns[theiw] + ' to Guess','Select the ' + thenouns[theiw] + ' Your Player Partner Selected','Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess','Awaiting Guess from Your Player Partner','Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner'];
}
}
}
return whatx;
}
function assemblyadd() {
if (documentURL.indexOf('one=') != -1 && documentURL.indexOf('one=&') == -1) {
var tbitsare=decodeURIComponent(documentURL.split('one=')[1].split('&')[0].split('#')[0]).split(String.fromCharCode(10))[0].replace(/\+/g,' ') + '|' + decodeURIComponent(documentURL.split('two=')[1].split('&')[0].split('#')[0]).split(String.fromCharCode(10))[0].replace(/\+/g,' ') + '|';
if (documentURL.indexOf('three=') != -1 && (documentURL + '&').indexOf('three=&') == -1) {
tbitsare+=decodeURIComponent(documentURL.split('three=')[1].split('&')[0].split('#')[0]).split(String.fromCharCode(10))[0].replace(/\+/g,' ');
if (document.URL.indexOf('randomized=') != -1) { tbitsare+=' '; }
//alert('0.1:' + tbitsare + ' ... ' + documentURL)
tbitsare=addthearrs(tbitsare,0) + '~!~';
reassemble(tbitsare);
} else if (documentURL.indexOf('four=') != -1 && (documentURL + '&').indexOf('four=&') == -1) {
tbitsare+=decodeURIComponent(documentURL.split('four=')[1].split('&')[0].split('#')[0]).split(String.fromCharCode(10))[0].replace(/\+/g,' ');
if (document.URL.indexOf('randomized=') != -1) { tbitsare+=' '; }
tbitsare=addthearrs(tbitsare,1) + '~!~';
reassemble(tbitsare);
} else if (documentURL.indexOf('five=') != -1 && (documentURL + '&').replace('five=#','five=&').indexOf('five=&') == -1) {
//alert('documentURL=' + documentURL);
tbitsare+=decodeURIComponent(documentURL.split('five=')[1].split('&')[0].split('#')[0]).split(String.fromCharCode(10))[0].replace(/\+/g,' ');
//alert('pre tbitsare=' + tbitsare);
if (document.URL.indexOf('randomized=') != -1) { tbitsare+=' '; }
tbitsare=addthearrs(tbitsare,2) + '~!~';
//alert('tbitsare=' + tbitsare);
reassemble(tbitsare);
}
}
}
function reassemble(useforce) {
//alert(1);
var midvarr=[];
//alert(11);
var midv=(useforce.trim() != '' ? encodeURIComponent(useforce.replace(/\~\!\~$/g,'') + '~!~') : document.URL.split('sharels=')[1].split('&')[0].split('#')[0]);
//alert('00:' + decodeURIComponent(midv));
if (documentURL.indexOf('sharels=') != -1 || useforce.trim() != '') {
var foundarr=[], ifo=0, blankis='%20';
var founds=decodeURIComponent(('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,''));
if (founds.indexOf('+') != -1) { blankis='+'; }
//alert('0:' + decodeURIComponent(midv) + ' ... ' + founds);
if (founds.trim() != '') {
foundarr=founds.split('~!~');
for (ifo=0; ifo<foundarr.length; ifo++) {
//alert('midv=' + midv + ' VS ' + encodeURIComponent(foundarr[ifo]).replace(/\%20/g,'+'));
if (midv.indexOf(encodeURIComponent(foundarr[ifo]).replace(/\%20/g,'+') + encodeURIComponent('~!~')) != -1 || midv.indexOf(encodeURIComponent(foundarr[ifo]) + encodeURIComponent('~!~')) != -1) {
midv=midv.replace(encodeURIComponent(foundarr[ifo]).replace(/\%20/g,'+') + encodeURIComponent('~!~'), '').replace(encodeURIComponent(foundarr[ifo]) + encodeURIComponent('~!~'),'');
}
}
midvarr=decodeURIComponent(midv).split('|');
if (eval('' + midvarr.length) < 3) {
midv=midv;
} else if (eval('' + midvarr[2].length) == 0) {
midv=midv;
} else {
if (midv.indexOf(encodeURIComponent('~!~')) == -1 && midv != '') { midv+=encodeURIComponent('~!~'); }
window.localStorage.setItem('clairvoyance_incarnations', window.localStorage.getItem('clairvoyance_incarnations') + midv);
}
} else {
//alert(decodeURIComponent(midv));
midvarr=decodeURIComponent(midv).split('|');
if (eval('' + midvarr.length) < 3) {
midv=midv;
} else if (eval('' + midvarr[2].length) == 0) {
midv=midv;
} else {
if (midv.indexOf(encodeURIComponent('~!~')) == -1 && midv != '') { midv+=encodeURIComponent('~!~'); }
window.localStorage.setItem('clairvoyance_incarnations', midv);
}
}
}
//alert(decodeURIComponent(window.localStorage.getItem('clairvoyance_incarnations')));
}
function assembleown() {
return ('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,'');
}
function whataboutyourown(inwhat) {
if (inwhat.indexOf('itype=') != -1) {
//alert('' + eval('' + inwhat.split('itype=')[1]) + ' versus ' + eval('' + theiwbefore));
if (eval('' + inwhat.split('itype=')[1]) > eval('' + theiwbefore)) {
return '&wordg=' + encodeURIComponent(document.title.split(' Game ')[0]) + '&sharels=' + assembleown() + inwhat;
}
}
return inwhat;
}
function newask() {
yehbut=true;
var tas=document.getElementsByTagName('textarea');
for (var itas=0; itas<tas.length; itas++) {
if (('' + tas[itas].placeholder).indexOf('eg. http') != -1 && ('' + tas[itas].placeholder).indexOf(String.fromCharCode(10)) == -1) {
tas[itas].placeholder=tas[itas].placeholder.replace('eg. http', 'eg. ' + String.fromCharCode(10) + 'http');
}
if (('' + tas[itas].placeholder).indexOf('eg.') != -1 && ('' + tas[itas].placeholder).indexOf(String.fromCharCode(10)) == -1) {
tas[itas].placeholder=tas[itas].placeholder.replace('eg.', '' + String.fromCharCode(10) + 'eg.').replace(' could be ', ' could be ' + String.fromCharCode(10));
}
}
filloutanyfound();
document.getElementById('myform').style.display='block';
}
function process(osel) {
}
function getridof() {
var ig=0, jg=0, thisrec='';
if (document.URL.indexOf('mysel=') != -1) {
var grdos=document.URL.split('mysel=');
var foundarr=[], ifo=0, blankis='%20';
var founds=decodeURIComponent(('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,''));
//alert(founds);
foundarr=founds.split('~!~');
//alert(grdos.length + ' ' + foundarr.length);
for (ig=1; ig<grdos.length; ig++) {
for (jg=0; jg<foundarr.length; jg++) {
if (foundarr[jg].trim() == '') {
jg=jg;
} else if (foundarr[jg].indexOf(decodeURIComponent(grdos[ig].split('&')[0].split('#')[0]) + '|') == 0) {
//alert('5:' + window.localStorage.getItem('clairvoyance_incarnations'));
if (('' + window.localStorage.getItem('clairvoyance_incarnations')).indexOf(encodeURIComponent('~!~')) == -1) {
thisrec=encodeURIComponent(foundarr[jg]); //grdos[ig].split('&')[0].split('#')[0] + ('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,'').split(grdos[ig].split('&')[0].split('#')[0])[1]; // + encodeURIComponent('~!~');
} else {
thisrec=encodeURIComponent(foundarr[jg]) + encodeURIComponent('~!~'); //grdos[ig].split('&')[0].split('#')[0] + ('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(/^undefined/g,'').replace(/^null/g,'').split(grdos[ig].split('&')[0].split('#')[0])[1].split(encodeURIComponent('~!~'))[0] + encodeURIComponent('~!~');
}
//alert('thisrec=' + thisrec);
window.localStorage.setItem('clairvoyance_incarnations', ('' + window.localStorage.getItem('clairvoyance_incarnations')).replace(thisrec,'').replace(thisrec.replace(encodeURIComponent('~!~'),''),''));
//alert(window.localStorage.getItem('clairvoyance_incarnations'));
//} else {
// alert('why ' + foundarr[jg] + ' ' + decodeURIComponent(grdos[ig].split('&')[0].split('#')[0]));
}
}
}
}
}
setTimeout(function(){
var imsx=document.getElementsByTagName('img');
for (var jimsx=0; jimsx<imsx.length; jimsx++) {
if (imsx[jimsx].innerHTML != '') { imsx[jimsx].innerHTML=''; }
}
}, 8000);
setInterval(statuscheck, 500);
</script>
<body data-onload="fireup();" onload=" if (document.URL.indexOf('shareJUNKls=') != -1) { documentURL=document.URL; reassemble(''); } if (document.URL.indexOf('one=') != -1 && document.URL.indexOf('one=&') == -1) { assemblyadd(); } document.getElementById('wasitype').value='' + theiw; if (document.URL.indexOf('iam=%40&') != -1) { initval='Wait'; } if (document.URL.indexOf('playwith=') != -1) { initval='Wait'; } if (document.URL.replace('playwith=','blankatend=').indexOf('blankatend=') != -1) { setTimeout(function(){ if (document.getElementById('otheris').value == '') { document.getElementById('otheris').value=document.getElementById('iam').value; } if (document.getElementById('otheris').value == document.getElementById('iam').value) { document.getElementById('iam').value+=(document.URL.indexOf('playwith=') != -1 ? 'x' : ' '); }; otheris=document.getElementById('otheris').value; youare=document.getElementById('iam').value.replace(/^\@$/g,''); holdon=false; if (document.URL.indexOf('playwith=') != -1) { document.getElementById('tdstatus').innerHTML='Awaiting a ' + thenouns[theiw] + ' Selection from Your Playing Partner'; } else { document.getElementById('tdstatus').innerHTML='Select a ' + thenouns[theiw] + ' You Are Asking Your Player Partner to Guess ...'; } },3000); } ">
<form onsubmit="yehbut=false; return true;" id=myform style=display:none; method=GET action='./clairvoyance_game.html'><input type=hidden name=placeXiam value=''></input>
<h2>Your Own Game Definitions <font size=1>... that can be remembered here on this same web browser</font> <select onchange=process(this); id=mysel name=mysel style=display:none; multiple><option value=''>These old arrangement(s) can be forgotten, as required ...</option></select></h2><br>
<input type=hidden id=wasitype name=wasitype value=''></input>
<input style=width:90%; type=text placeholder='Game Name Words' onblur="if (this.value.trim() != '' && document.getElementById('two').value.trim() == '') { document.getElementById('two').value=this.value; }" value='' name=one id=one></input><br>
<input style=width:90%; type=text placeholder='Game Noun(s)' value='' name=two id=two></input><br><hr></hr>
<textarea title="Double click to populate with default suggestion" ondblclick="this.value=this.placeholder.split(String.fromCharCode(10))[eval(-1 + this.placeholder.split(String.fromCharCode(10)).length)]; document.getElementById('one').value='House'; document.getElementById('two').value='Thing'; " rows=2 style=width:90%; type=text placeholder='Image Map HTML URL eg. https://www.rjmprogramming.com.au/HTMLCSS/livingroom.htm' value='' name=three id=three></textarea><br><span> ... or ...</span><br>
<textarea title="Double click to populate with default suggestion" ondblclick="this.value=this.placeholder.split(String.fromCharCode(10))[eval(-1 + this.placeholder.split(String.fromCharCode(10)).length)]; document.getElementById('one').value='Counting Number'; document.getElementById('two').value='Number'; " rows=3 style=width:90%; type=text placeholder='Comma separated list of 5 Emoji Decimal HTML Entity Values eg. for Game Name Words value of Counting Number (where . can facilitate complex emojis) could be 49.65039.8419,50.65039.8419,51.65039.8419,52.65039.8419,53.65039.8419' value='' name=four id=four></textarea><br><span> ... or ...</span><br>
<textarea title="Double click to populate with default suggestion" ondblclick="this.value=this.placeholder.split(String.fromCharCode(10))[eval(-1 + this.placeholder.split(String.fromCharCode(10)).length)]; document.getElementById('one').value='Fish'; document.getElementById('two').value='Fish'; " rows=3 style=width:90%; type=text placeholder='Comma separated list of 5 Image URLs eg. for Game Name Words value of Fish could be //fishesofaustralia.net.au/images/thumbnailimage/NarcetesErimelasAlcock.jpg,//fishesofaustralia.net.au/images/thumbnailimage/LutjansuBengalensisuwkwaj.jpg,//fishesofaustralia.net.au/images/thumbnailimage/GobiodonSpadix2Holotype.jpg,//fishesofaustralia.net.au/images/thumbnailimage/SebastapistesMonospinaRandallHolotype.jpg,//fishesofaustralia.net.au/images/thumbnailimage/AmblyeleotrisBellicaudaRandall.jpg' value='' name=five id=five></textarea><br><br>
<hr></hr><input type=submit value='Play'></input> <input title='Most apt for the Image Map case where there are many more than 5 area subelements within the map element tied to the single image img element.' type=submit name=randomized value='Play as Randomized'></input> <input type=button onclick="yehbut=false; document.getElementById('myform').style.display='none';" value='Refocus Current Game'></input> <input type=button onclick="yehbut=false; document.getElementById('myform').style.display='none'; location.href=document.URL;" value='Restart'></input>
<hr></hr>
</form>
<input type=hidden id=iam value=''></input>
<input type=hidden id=otheris value=''></input>
<iframe style=display:none; src='./clairvoyance_game.php?placeiam=y' data-src='/About_Us.html' id=ifpiam></iframe>
<iframe style=display:none; src='./clairvoyance_game.php?placeXiam=y' data-src='/About_Us.html' id=ifpiamtwo></iframe>
<iframe style=display:none; onload="imc(this);" src='/About_Us.html' id=ifimc></iframe>
<div id=dtop>
<script type=text/javascript>
document.write("<h1 ontouchmove='event.stopPropagation();' onmousedown='event.stopPropagation();' id=muh1>" + thewords[theiw] + " Game " + multimaybe() + "<input type=checkbox id=allows style=display:none; onchange=chscal(this);><font size=1 id=fshare style=display:none;>Share Score</font></input> <input type=checkbox id=allowstwo style=display:none; onchange=chscaltwo(this);><font size=1 id=fsharetwo style=display:none;>Be Told Where You Went Wrong</font></input></h1>");
</script>
<h3 ontouchmove='event.stopPropagation();' onmousedown='event.stopPropagation();' id=myh3 style=cursor:progress;>RJM Programming - May, 2026 ... checking for other game players now</h3>
<h4 ontouchmove='event.stopPropagation();' onmousedown='event.stopPropagation();' id=score>Score: 0/0</h4>
</div>
<table id=mytable cellspacing=5 style=width:100%;visibility:visible;height:100px;>
<tr id=myrow><td id=td1></td><td id=td2></td><td id=td3></td><td id=td4></td><td id=td5></td></tr>
<script type=text/javascript>
document.write("<tr id=mystatus><td colspan=5 id=wastdstatus style='text-align:center;' title=''><h1 id=tdstatus title=''>Select a " + thenouns[theiw] + " You Are Asking Your Player Partner to Guess</h1></td></tr>");
</script>
</table>
<br><br><br><br><br>
<button id=amoffnow style=background-color:orange; onclick="signoff(document.getElementById('iam').value);">Sign Off</button>
<input type=hidden id=morethanone value=''></input>
<input type=hidden id=myguess value=''></input>
<input type=hidden id=yourguess value=''></input>
<script type=text/javascript>
if (!do_once) {
do_once=true;
//if (delay > 0) {
//setTimeout(fireup, delay);
//} else {
fireup();
//}
// // if (theiw >= theiwbefore && wordg == '') { wordg=thewords[theiw]; lookforremembereds(); }
if (document.URL.indexOf('sharels=') != -1) { documentURL=document.URL; reassemble(''); lookforremembereds();
if (wordg != '') {
if (thewords.indexOf(wordg) != -1) {
theiw=eval('' + thewords.indexOf(wordg));
document.title=thewords[theiw] + ' Game ' + document.title.split(' Game ')[1];
document.getElementById('muh1').innerHTML=document.getElementById('muh1').innerHTML.replace(document.getElementById('muh1').innerHTML.split(' Game')[0] + ' Game', thewords[theiw] + ' Game');
}
}
} else {
lookforremembereds();
if (wordg != '') {
if (thewords.indexOf(wordg) != -1) {
theiw=eval('' + thewords.indexOf(wordg));
document.title=thewords[theiw] + ' Game ' + document.title.split(' Game ')[1];
document.getElementById('muh1').innerHTML=document.getElementById('muh1').innerHTML.replace(document.getElementById('muh1').innerHTML.split(' Game')[0] + ' Game', thewords[theiw] + ' Game');
}
}
}
imagemapcheck();
//setTimeout(function(){
if (window.opener) {
document.write("<iframe style=display:none; onload=\"setTimeout(function(){ document.getElementById('ifsleep').src=document.getElementById('ifsleep').getAttribute('data-src'); }, 5000);\" src='./clairvoyance_game.php?introclone=" + Math.floor(Math.random() * 198978654) + "' id=ifintro></iframe>");
} else if (document.URL.indexOf('iam=%40&') == -1) {
document.write("<iframe style=display:none; onload=\"setTimeout(function(){ document.getElementById('ifsleep').src=document.getElementById('ifsleep').getAttribute('data-src'); }, 5000);\" src='./clairvoyance_game.php?introduction=" + Math.floor(Math.random() * 198978654) + "' id=ifintro></iframe>");
}
//}, 3000);
if ((document.URL + '&').indexOf('iam=') != -1 && (document.URL + '&').replace('iam=#','iam=&').indexOf('iam=&') == -1) {
if ((document.URL + '&').indexOf('playwith=') != -1 && (document.URL + '&').replace('playwith=#','playwith=&').indexOf('playwith=&') == -1) {
document.getElementById('tdstatus').innerHTML='Awaiting a ' + thewords[theiw] + ' Selection from Your Playing Partner';
holdon=true;
setTimeout(function(){ holdon=false; }, 10000);
if (document.URL.indexOf('iam=%40&') != -1) {
holdon=false;
outofifc=true;
setTimeout(function(){ document.getElementById('ifsleep').src=document.getElementById('ifsleep').getAttribute('data-src'); }, 5000);
setTimeout(function(){ document.getElementById('otheris').value=decodeURIComponent((document.URL + '&').split('playwith=')[1].split('&')[0].split('#')[0]); }, 500);
}
document.write("<iframe style=display:none; src='./clairvoyance_game.php?" + document.URL.split('?')[1] + "' data-src='./clairvoyance_game.php?iam=&playwith=' id=ifplay></iframe>");
} else {
document.write("<iframe style=display:none; data-src='./clairvoyance_game.php?iam=&playwith=' src='/About_Us.html' id=ifplay></iframe>");
}
} else {
document.write("<iframe style=display:none; data-src='./clairvoyance_game.php?iam=&playwith=' src='/About_Us.html' id=ifplay></iframe>");
}
}
</script>
<iframe style=display:none; data-src='./clairvoyance_game.php?sleep=y' src='/About_Us.html' id=ifsleep></iframe>
<!--iframe style=display:none; data-src='./clairvoyance_game.php?iam=&playwith=' src='/About_Us.html' id=ifplay></iframe-->
<iframe style=display:none; data-src='./clairvoyance_game.php?iamnot=' src='/About_Us.html' id=ifnomore></iframe>
<iframe style=display:none; data-src='./clairvoyance_game.php?iamnot=' src='/About_Us.html' id=ifyesmore></iframe>
</body>
</html>