<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.1, maximum-scale=8, user-scalable=yes," />
<title>0.0/0.0 is User Score/Goes ... up to 52 players can take it in turns with our Numbers Quiz - RJM Programming - April, 2021</title>
<script type='text/javascript'>
var fi=null;
var ij=0, ji=-1, kl='', kq=-1;
var donelist=[], oplist=[], opltlistl=[], opltlistt=[], oopltlistl=[], oopltlistt=[];
var owidth=20, oheight=20;
var oowidth=20, ooheight=20;
var oleft=235, thisleft=235;
var firstbit=' Will accept Q?A (sessional questions ended via ? & cleared with ?x) or Q?!A (local ended via ?! & cleared with ?!x). Versus Memories or ';
var otop=100, thistop=100;
var uis='';
var force=false;
var overallgoes=0, overallscore=0;
var numplayers=1, curplayer=1, lastcurplayer=1;
var lastgoes=[0], lastscore=[0];
var clastgoes='0', clastscore='0';
var theblurb='', wblurb='';
var thirteen=4; //13;
var four=13; //4;
var lastdts0='';
var sslistq=[], sslista=[];
var lslistq=[], lslista=[];
var redone=false;
var flexible=false;
var nomap=true;
var found=false;
var defstyle="<style> html { overflow:visible; background-color: yellow; font-size: 36px; background: URL('//www.rjmprogramming.com.au/rjmquiz_plus.jpg') repeat contain; } </style>";
var eles=[];
var psecs=0, secs=0;
var nullv='51';
var cw=-1;
var defstcp='127166';
var stcprefix='';
var lastdrag='';
var wastitle='0.0/0.0 is User Score/Goes ... up to 52 players can take it in turns with our Numbers Quiz - RJM Programming - April, 2021';
var given="Given answer is integer from 0 to 25 ... ";
var nav=navigator.userAgent;
var hackString='';
var iourx=-1, ioury=-1;
var aminmiddle=false;
var da='';
var dp='';
var def='', os='', ps='', pg='';
var lastzkq='', lastzkl='';

var lasttogglenumber='';
var lastec='', notyet=false;
var backi="/rjmquiz_plus.jpg";
var fiftytwo=52;
var message='';
var lastcard='';
var lasttto='';
var gamescoreprefix='';
var gamescores=[0];
var lasttmid='';
var lasttfrom='';
var lasttoggleto='';
var lasttogglefrom='';
var curplayer=1, card_of_play=0;
var card_game='memories';
var nominal_implication='';
var nominal_numplayers = (document.URL.replace('?','&').indexOf('&card') != -1) ? prompt('How many players are playing your ' + document.URL.replace('?','&').split('&card')[1].split('&')[0].split('#')[0].split('=')[0].replace(/\_/g,' ').trim().substring(0,1).toUpperCase() + document.URL.replace('?','&').split('&card')[1].split('&')[0].split('#')[0].split('=')[0].replace(/\_/g,' ').trim().substring(1).toLowerCase() + ' card game?', '2') : null;

if (nominal_numplayers) {
if (('' + nominal_numplayers).replace('0','').trim() != '' && ('' + nominal_numplayers).replace('0','').trim().indexOf('-') == -1) {
var prompt = function(zwords, defwords){ return null; };
nominal_implication=" var prompt = function(zwords, defwords){ return null; }; ";
fiftytwo=-1;
backi="/Games/Memories/Memories.jpg";
} else {
nominal_numplayers=null;
}
}

// Thanks to https://stackoverflow.com/questions/7996252/window-popups-how-to-get-window-blur-or-window-focus-to-work-in-firefox-4
hackString = nav.indexOf('Chrome') > -1 ? "scrollbar=yes," : "toolbar=0,statusbar=1,resizable=1,scrollbars=0,menubar=0,location=1,directories=0,";

// Thanks to https://www.fileformat.info/info/unicode/block/playing_cards/list.htm
var spcps=["127137/images/01s.gif",
"127138/images/02s.gif",
"127139/images/03s.gif",
"127140/images/04s.gif",
"127141/images/05s.gif",
"127142/images/06s.gif",
"127143/images/07s.gif",
"127144/images/08s.gif",
"127145/images/09s.gif",
"127146/images/10s.gif",
"127147/images/11s.gif",
"127149/images/12s.gif",
"127150/images/13s.gif",
"127153/images/01h.gif",
"127154/images/02h.gif",
"127155/images/03h.gif",
"127156/images/04h.gif",
"127157/images/05h.gif",
"127158/images/06h.gif",
"127159/images/07h.gif",
"127160/images/08h.gif",
"127161/images/09h.gif",
"127162/images/10h.gif",
"127163/images/11h.gif",
"127165/images/12h.gif",
"127166/images/13h.gif",
"127169/images/01d.gif",
"127170/images/02d.gif",
"127171/images/03d.gif",
"127172/images/04d.gif",
"127173/images/05d.gif",
"127174/images/06d.gif",
"127175/images/07d.gif",
"127176/images/08d.gif",
"127177/images/09d.gif",
"127178/images/10d.gif",
"127179/images/11d.gif",
"127181/images/12d.gif",
"127182/images/13d.gif",
"127185/images/01c.gif",
"127186/images/02c.gif",
"127187/images/03c.gif",
"127188/images/04c.gif",
"127189/images/05c.gif",
"127190/images/06c.gif",
"127191/images/07c.gif",
"127192/images/08c.gif",
"127193/images/09c.gif",
"127194/images/10c.gif",
"127195/images/11c.gif",
"127197/images/12c.gif",
"127198/images/13c.gif"];

var dragorder=[], dragorderbig=[], curdrag=0, altcards=[];

var cards=["//www.rjmprogramming.com.au/images/01s.gif?n=7",
"//www.rjmprogramming.com.au/images/02s.gif?n=16",
"//www.rjmprogramming.com.au/images/03s.gif?n=33",
"//www.rjmprogramming.com.au/images/04s.gif?n=29",
"//www.rjmprogramming.com.au/images/05s.gif?n=8",
"//www.rjmprogramming.com.au/images/06s.gif?n=35",
"//www.rjmprogramming.com.au/images/07s.gif?n=52",
"//www.rjmprogramming.com.au/images/08s.gif?n=51",
"//www.rjmprogramming.com.au/images/09s.gif?n=12",
"//www.rjmprogramming.com.au/images/10s.gif?n=30",
"//www.rjmprogramming.com.au/images/11s.gif?n=1",
"//www.rjmprogramming.com.au/images/12s.gif?n=36",
"//www.rjmprogramming.com.au/images/13s.gif?n=22",
"//www.rjmprogramming.com.au/images/01h.gif?n=32",
"//www.rjmprogramming.com.au/images/02h.gif?n=23",
"//www.rjmprogramming.com.au/images/03h.gif?n=3",
"//www.rjmprogramming.com.au/images/04h.gif?n=18",
"//www.rjmprogramming.com.au/images/05h.gif?n=28",
"//www.rjmprogramming.com.au/images/06h.gif?n=39",
"//www.rjmprogramming.com.au/images/07h.gif?n=45",
"//www.rjmprogramming.com.au/images/08h.gif?n=48",
"//www.rjmprogramming.com.au/images/09h.gif?n=50",
"//www.rjmprogramming.com.au/images/10h.gif?n=44",
"//www.rjmprogramming.com.au/images/11h.gif?n=4",
"//www.rjmprogramming.com.au/images/12h.gif?n=9",
"//www.rjmprogramming.com.au/images/13h.gif?n=5",
"//www.rjmprogramming.com.au/images/01d.gif?n=27",
"//www.rjmprogramming.com.au/images/02d.gif?n=41",
"//www.rjmprogramming.com.au/images/03d.gif?n=20",
"//www.rjmprogramming.com.au/images/04d.gif?n=11",
"//www.rjmprogramming.com.au/images/05d.gif?n=37",
"//www.rjmprogramming.com.au/images/06d.gif?n=49",
"//www.rjmprogramming.com.au/images/07d.gif?n=42",
"//www.rjmprogramming.com.au/images/08d.gif?n=6",
"//www.rjmprogramming.com.au/images/09d.gif?n=21",
"//www.rjmprogramming.com.au/images/10d.gif?n=31",
"//www.rjmprogramming.com.au/images/11d.gif?n=40",
"//www.rjmprogramming.com.au/images/12d.gif?n=43",
"//www.rjmprogramming.com.au/images/13d.gif?n=17",
"//www.rjmprogramming.com.au/images/01c.gif?n=46",
"//www.rjmprogramming.com.au/images/02c.gif?n=19",
"//www.rjmprogramming.com.au/images/03c.gif?n=47",
"//www.rjmprogramming.com.au/images/04c.gif?n=25",
"//www.rjmprogramming.com.au/images/05c.gif?n=10",
"//www.rjmprogramming.com.au/images/06c.gif?n=15",
"//www.rjmprogramming.com.au/images/07c.gif?n=13",
"//www.rjmprogramming.com.au/images/08c.gif?n=26",
"//www.rjmprogramming.com.au/images/09c.gif?n=38",
"//www.rjmprogramming.com.au/images/10c.gif?n=34",
"//www.rjmprogramming.com.au/images/11c.gif?n=2",
"//www.rjmprogramming.com.au/images/12c.gif?n=14",
"//www.rjmprogramming.com.au/images/13c.gif?n=24"];

var ic=0;
for (ic=1; ic<=cards.length; ic++) {
if (nominal_numplayers) {
if (cards[eval(-1 + ic)].indexOf('?n=') != -1) {
altcards.push("//www.rjmprogramming.com.au/images/back01.gif?n=" + cards[eval(-1 + ic)].split('?n=')[1] + '#' + cards[eval(-1 + ic)].split('?')[0]);
} else {
altcards.push("//www.rjmprogramming.com.au/images/back01.gif");
}
//cards[eval(-1 + ic)]="//www.rjmprogramming.com.au/images/blank01.gif#" + cards[eval(-1 + ic)];
} else {
altcards.push(cards[eval(-1 + ic)]);
}
}
for (ic=1; ic<=cards.length; ic++) {
found=false;
for (var jc=1; jc<=cards.length; jc++) {
if ((cards[eval(-1 + jc)] + '~').indexOf('?n=' + ic + '~') != -1) {
dragorder.push(eval(-1 + jc));
dragorderbig.push(eval(spcps[eval(-1 + jc)].split('/')[0]));
cards[eval(-1 + jc)]=cards[eval(-1 + jc)].replace('?n=' + ic, '');
firstbit+=String.fromCodePoint(eval('' + spcps[eval(-1 + jc)].split('/')[0])) + ' ';
found=true;
}
}
//if (!found) {
// alert('ic=' + ic);
//}
}

console.log('dragorder=' + dragorder);

var sq=["Is the additive identity.",
"Is the multiplicative identity.",
"Is the only even prime.",
"Is the number of spatial dimensions we live in.",
"Is the smallest number of colours sufficient to colour all planar maps.",
"Is the number of Platonic solids.",
"Is the smallest perfect number.",
"Is the smallest number of sides of a regular polygon that is not constructible by straightedge and compass.",
"Is the largest cube in the Fibonacci sequence.",
"Is the maximum number of cubes that are needed to sum to any positive integer.",
"Is the base of our number system.",
"Is the largest known multiplicative persistence.",
"Is the smallest abundant number.",
"Is the number of Archimedian solids.",
"Is the smallest even number n with no solutions to phi(m) = n.",
"Is the smallest composite number n with the property that there is only one group of order n.",
"Is the only number of the form xy = yx with x and y being different integers.",
"Is the number of wallpaper groups.",
"Is the only positive number that is twice the sum of its digits.",
"Is the maximum number of 4th powers needed to sum to any number.",
"Is the number of rooted trees with 6 vertices.",
"Is the smallest number of distinct squares needed to tile a square.",
"Is the number of partitions of 8.",
"Is the smallest number of integer-sided boxes that tile a box so that no two boxes share a common length.",
"Is the largest number divisible by all numbers less than its square root.",
"Is the smallest square that can be written as a sum of 2 squares."];

var ijk=0;
var asq=[];

for (var acv=0; acv<sq.length; acv++) {
asq.push('' + acv);
}

if (!String.fromCodePoint) { // thanks to http://xahlee.info/js/js_unicode_code_point.html
// ES6 Unicode Shims 0.1 , © 2012 Steven Levithan , MIT License
String.fromCodePoint = function fromCodePoint () {
var chars = [], point, offset, units, i;
for (i = 0; i < arguments.length; ++i) {
point = arguments[i];
offset = point - 0x10000;
units = point > 0xFFFF ? [0xD800 + (offset >> 10), 0xDC00 + (offset & 0x3FF)] : [point];
chars.push(String.fromCharCode.apply(null, units));
}
return chars.join("");
}
}


if (document.URL.indexOf('spcp=') == -1) {
if (1 == 2) {
document.head.innerHTML+="<style> html { overflow: visible; background-color: yellow; font-size: 36px; background: URL('//www.rjmprogramming.com.au" + backi + "'); background-size: contain; } </style>";
}


var factorx=1.0;
var factory=1.0;
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
factorx=1.0;
factory=1.8; //8;
oleft=Math.floor(eval(235 / factorx));
thisleft=Math.floor(eval(235 / factorx));
otop=Math.floor(eval(100.0 / eval('' + factory)));
thistop=Math.floor(eval(100.0 / eval('' + factory)));
}


if (!redone) { redone=true; reassess(); }
kq='' + Math.floor(Math.random() * sq.length);
document.title='0.0/0.0 is User Score/Goes ... up to 52 players can take it in turns with our Numbers Quiz';
kl='' + Math.floor(Math.random() * spcps.length);
donelist.push('' + kl);
uis=document.URL.split('#')[0].split('?')[0] + '?spcp=' + spcps[eval('' + donelist[0])].split('/')[0];
//console.log("oplist.push(window.open('" + uis + "', '_blank', 'left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
console.log('prefirst');
eval("oplist.push(windowopen('" + uis + "', '_blank', '" + hackString + "left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
if (oplist[eval(-1 + oplist.length)]) {
//oplist[eval(-1 + oplist.length)].document.write("<html><head><link rel=icon href=" + cards[kl] + "><scr" + "ipt type='text/javascript'> var da='" + asq[eval(0 + kq)] + "'; var dp='" + given + sq[kq] + "'; var def=String.fromCodePoint(" + spcps[eval('' + kl)].split('/')[0] + "); function checka(tpa) { var os=''; var ps=eval(window.opener.document.title.split('/')[0].trim()); var pg=eval(window.opener.document.title.split('/')[1].split(' ')[0]); if (tpa.trim().toLowerCase() == da.toLowerCase()) { ps++; os=tpa.split(da)[1]; } else { pg++; os=tpa.split(tpa.trim())[1]; } window.opener.document.title=ps + os + '/' + pg + ' is User Score/Goes'; window.close(); } function pa() { if (document.hasFocus()) { if (window.opener.wond(" + eval(-1 + oplist.length) + ")) { window.opener.wosf(" + eval(-1 + oplist.length) + "); var hj=prompt(dp + window.opener.blurb(), def); if (hj == null) { hj=''; } else { hj=window.opener.assess(hj); } if (hj.replace(def,'') == '') { setTimeout(pa,1000); } else { checka(hj); } } else { setTimeout(pa,1000); } } } document.head.innerHTML+=\"<style> html { overflow:visible; background:URL('" + cards[kl] + "'); background-size:contain; background-repeat:no-repeat; } </style>\"; if (document.hasFocus()) { if (window.opener.wond(" + eval(-1 + oplist.length) + ")) { setTimeout(pa,2000); } else { pa(); } } else { pa(); } </scr" + "ipt></head></html>");
oplist[eval(-1 + oplist.length)].document.write("<html><head><link rel=icon href=" + altcards[kl] + "><scr" + "ipt type='text/javascript'>" + nominal_implication + " var aminmiddle=false; var da='" + asq[eval(0 + kq)] + "'; var dp='" + given + sq[kq] + "'; var def=String.fromCodePoint(" + spcps[eval('' + kl)].split('/')[0] + "); function checka(tpa) { var os=''; var ps=eval(window.opener.document.title.split('/')[0].trim()); var pg=eval(window.opener.document.title.split('/')[1].split(' ')[0]); if (tpa.trim().toLowerCase() == da.toLowerCase()) { ps++; os=tpa.split(da)[1]; } else { pg++; os=tpa.split(tpa.trim())[1]; } window.opener.document.title=ps + os + '/' + pg + ' is User Score/Goes'; window.opener.closeit('" + kl + "'); window.close(); } function pa() { if (aminmiddle) { setTimeout(pa, 10000); return false; } if (document.hasFocus()) { var hj=window.opener.ourprompt(" + eval(-1 + oplist.length) + ",dp + window.opener.blurb(), def); if (hj) { aminmiddle=true; setTimeout(function() { hj=prompt(dp + window.opener.blurb(), def); if (hj == null) { hj=''; } else { hj=window.opener.assess(hj); } if (hj.replace(def,'') != '') { checka(hj); } else { setTimeout(pa,10000); } aminmiddle=false; }, 8000); } if (hj == null) { hj=''; } else { hj=window.opener.assess(hj); } if (hj.replace(def,'') == '') { setTimeout(pa,1000); } else { checka(hj); } } else { setTimeout(pa,1000); } } document.head.innerHTML+=\"<style> html { background:URL('" + altcards[kl] + "'); background-size:contain; background-repeat:no-repeat; } </style>\"; pa(); </scr" + "ipt></head></html>");
oplist[eval(-1 + oplist.length)].document.title=String.fromCodePoint(eval(spcps[eval('' + donelist[0])].split('/')[0]));
oplist[eval(-1 + oplist.length)].document.name='' + kl;
oplist[eval(-1 + oplist.length)].onfocus = function() { if (document.title.indexOf('/') != -1) { wastitle=document.title; document.title='focus ' + wogf(); setTimeout(reputwas,2000); } }
}

if (huh(oplist[0])) {
document.head.innerHTML+="<style> html { overflow:visible; background-color: yellow; font-size: 36px; background: URL('//www.rjmprogramming.com.au" + backi + "'); background-size: contain; } </style>";
}

var tendone=false;
for (var jijk=1; jijk<spcps.length; jijk++) {
kq='' + Math.floor(Math.random() * sq.length);
kl='' + Math.floor(Math.random() * spcps.length);
if (eval(3 + eval('' + jijk)) == eval('' + spcps.length) && !tendone && ('' + kl) != '10') {
kl='10';
}
while (donelist.indexOf(kl) != -1) {
//alert(kl);
kl='' + Math.floor(Math.random() * spcps.length);
}
donelist.push(kl);
if (('' + kl) == '10') {
tendone=true;
}
}

console.log('kl=' + kl);
defstcp=spcps[eval('' + kl)].split('/')[0];

if (huh(oplist[0])) {
dothis('' + donelist[0]);
}


for (ijk=1; ijk<spcps.length; ijk++) {
kq='' + Math.floor(Math.random() * sq.length);
kl='' + donelist[ijk]; //Math.floor(Math.random() * spcps.length);
//while (donelist.indexOf(kl) != -1) {
// kl='' + Math.floor(Math.random() * spcps.length);
//}
//if (!oplist[0]) {
//donelist.push(kl);
//}

if (1 == 2 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (eval(ijk % eval(2 * thirteen + 1)) == 0) {
thisleft=oleft;
thistop+=eval(eval(screen.height - 100) / eval(four / 1.5)); // four
} else {
thisleft+=eval(eval(screen.width - 235) / eval(2 + eval(2 * thirteen + 1))); // thirteen
}
} else {
if (eval(ijk % eval(2 * thirteen + 1)) == 0) {
thisleft=oleft;
//thistop+=eval(eval(eval(eval(screen.height / factory) - 100) / eval(four / 1.5))); // four
console.log('top change is ' + eval(eval(eval(eval(screen.height - 100) / factory)) / eval(four / 1.5)));
thistop+=eval(eval(eval(eval(screen.height - 100) / factory)) / eval(four / 1.5)); // four
} else {
thisleft+=Math.floor(eval(eval(eval(screen.width * factorx) - eval(235 / factorx)) / eval(2 + eval(2 * thirteen + 1)))); // thirteen
}
}
uis=document.URL.split('#')[0].split('?')[0] + '?spcp=' + spcps[eval('' + kl)].split('/')[0];
//console.log("oplist.push(window.open('" + uis + "', '_blank', 'left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
eval("oplist.push(windowopen('" + uis + "', '_blank', '" + hackString + "left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
if (oplist[eval(-1 + oplist.length)]) {
//oplist[eval(-1 + oplist.length)].document.write("<html><head><link rel=icon href=" + cards[kl] + "><scr" + "ipt type='text/javascript'> var da='" + asq[eval(0 + kq)] + "'; var dp='" + given + sq[kq] + "'; var def=String.fromCodePoint(" + spcps[eval('' + kl)].split('/')[0] + "); function checka(tpa) { var os=''; var ps=eval(window.opener.document.title.split('/')[0].trim()); var pg=eval(window.opener.document.title.split('/')[1].split(' ')[0]); if (tpa.trim().toLowerCase() == da.toLowerCase()) { ps++; os=tpa.split(da)[1]; } else { pg++; os=tpa.split(tpa.trim())[1]; } window.opener.document.title=ps + os + '/' + pg + ' is User Score/Goes'; window.close(); } function pa() { if (document.hasFocus()) { if (window.opener.wond(" + eval(-1 + oplist.length) + ")) { window.opener.wosf(" + eval(-1 + oplist.length) + "); var hj=prompt(dp + window.opener.blurb(), def); if (hj == null) { hj=''; } else { hj=window.opener.assess(hj); } if (hj.replace(def,'') == '') { setTimeout(pa,1000); } else { checka(hj); } } else { setTimeout(pa,1000); } } } document.head.innerHTML+=\"<style> html { background:URL('" + cards[kl] + "'); background-size:contain; background-repeat:no-repeat; } </style>\"; if (document.hasFocus()) { if (window.opener.wond(" + eval(-1 + oplist.length) + ")) { setTimeout(pa,2000); } else { pa(); } } else { pa(); } </scr" + "ipt></head></html>");
oplist[eval(-1 + oplist.length)].document.write("<html><head><link rel=icon href=" + altcards[kl] + "><scr" + "ipt type='text/javascript'>" + nominal_implication + " var aminmiddle=false; var da='" + asq[eval(0 + kq)] + "'; var dp='" + given + sq[kq] + "'; var def=String.fromCodePoint(" + spcps[eval('' + kl)].split('/')[0] + "); function checka(tpa) { var os=''; var ps=eval(window.opener.document.title.split('/')[0].trim()); var pg=eval(window.opener.document.title.split('/')[1].split(' ')[0]); if (tpa.trim().toLowerCase() == da.toLowerCase()) { ps++; os=tpa.split(da)[1]; } else { pg++; os=tpa.split(tpa.trim())[1]; } window.opener.document.title=ps + os + '/' + pg + ' is User Score/Goes'; window.opener.closeit('" + kl + "'); window.close(); } function pa() { if (aminmiddle) { setTimeout(pa, 10000); return false; } if (document.hasFocus()) { var hj=window.opener.ourprompt(" + eval(-1 + oplist.length) + ",dp + window.opener.blurb(), def); if (hj) { aminmiddle=true; setTimeout(function() { hj=prompt(dp + window.opener.blurb(), def); if (hj == null) { hj=''; } else { hj=window.opener.assess(hj); } if (hj.replace(def,'') != '') { checka(hj); } else { setTimeout(pa,10000); } aminmiddle=false; }, 8000); } if (hj == null) { hj=''; } else { hj=window.opener.assess(hj); } if (hj.replace(def,'') == '') { setTimeout(pa,1000); } else { checka(hj); } } else { setTimeout(pa,1000); } } document.head.innerHTML+=\"<style> html { background:URL('" + altcards[kl] + "'); background-size:contain; background-repeat:no-repeat; } </style>\"; pa(); </scr" + "ipt></head></html>");
oplist[eval(-1 + oplist.length)].document.title=String.fromCodePoint(eval(spcps[eval('' + kl)].split('/')[0]));
oplist[eval(-1 + oplist.length)].document.name='' + kl;
oplist[eval(-1 + oplist.length)].onfocus = function() { if (document.title.indexOf('/') != -1) { wastitle=document.title; document.title='focus ' + wogf(); setTimeout(reputwas,2000); } }
}
}
document.title='0.0/0.0 is User Score/Goes ... up to 52 players can take it in turns with our Numbers Quiz - RJM Programming - April, 2021';
if (!oplist[0] || 7 == 7) {
owidth=eval('' + eval('' + opltlistl[1]) - eval('' + opltlistl[0]));
oheight=eval('' + eval('' + opltlistt[9]) - eval('' + opltlistt[0]));
oowidth=owidth;
ooheight=oheight;
defstyle=defstyle.replace(/20px\ /g, ('' + owidth).split('.')[0] + 'px ');
defstyle=defstyle.replace(/20px\,/g, ('' + oheight).split('.')[0] + 'px,');
defstyle=defstyle.replace(/20px\;/g, ('' + oheight).split('.')[0] + 'px;');
defstyle=defstyle.replace(';background-size:', ',no-repeat,no-repeat' + ';background-size:');
if (nominal_numplayers) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
defstyle=defstyle.replace(';background-position:', ',cover,cover' + ';background-position:');
//defstyle=defstyle.replace(';background-position:', ',' + eval(0.7 * screen.width) + 'px ' + eval(0.8 * screen.height) + 'px,' + eval(0.7 * screen.width) + 'px ' + eval(0.8 * screen.height) + 'px' + ';background-position:');
} else {
defstyle=defstyle.replace(';background-position:', ',cover,cover' + ';background-position:');
}
} else {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
defstyle=defstyle.replace(';background-position:', ',' + eval(0.7 * window.innerWidth) + 'px ' + eval(0.8 * window.innerHeight) + 'px,' + eval(0.7 * window.innerWidth) + 'px ' + eval(0.8 * window.innerHeight) + 'px' + ';background-position:');
//defstyle=defstyle.replace(';background-position:', ',' + eval(0.7 * screen.width) + 'px ' + eval(0.8 * screen.height) + 'px,' + eval(0.7 * screen.width) + 'px ' + eval(0.8 * screen.height) + 'px' + ';background-position:');
} else {
defstyle=defstyle.replace(';background-position:', ',' + eval(0.7 * screen.width) + 'px ' + eval(0.8 * screen.height) + 'px,' + eval(0.7 * screen.width) + 'px ' + eval(0.8 * screen.height) + 'px' + ';background-position:');
}
}
defstyle=defstyle.replace(';background-image:', ',0px 0px,0px 0px' + ';background-image:');
defstyle=defstyle.replace('; } </style>', ',linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)),url(//www.rjmprogramming.com.au' + backi + '); } </style>'); // + ' ' + owidth + ' ' + oheight
if (nominal_numplayers) {
defstyle=defstyle.replace(/\,url\(\/\/www\.rjmprogramming\.com\.au\/images\/back01.gif\)/g,'');
if (defstyle.indexOf('url(//www.rjmprogramming.com.au/images/back01.gif)') != -1) {
defstyle=defstyle.replace('url(//www.rjmprogramming.com.au/images/back01.gif)', '').replace(',url(','url(');
}
}
document.head.innerHTML+=defstyle;
console.log(defstyle);
} else if (huh(oplist[0])) {
for (var kijk=0; kijk<spcps.length; kijk++) {
opltlistl.push(oplist[kijk].screenLeft);
opltlistt.push(oplist[kijk].screenTop);
}
}

if (!nominal_numplayers) {
if (huh(oplist[0])) {
setInterval(examinescore, 200);
} else {
examinescore();
}
}

} else {

dothis((location.search.split('spcp=')[1] ? location.search.split('spcp=')[1].split('&')[0] : defstcp));

}

function antilastec() {
lastec='';
}

function antinotyet() {
notyet=true;
}

function domessagetwo() {
gamescoreprefix='Tricks taken are ' + gamescores[0];
for (var ijkhl=1; ijkhl<eval('' + nominal_numplayers); ijkhl++) {
if (eval('' + gamescores.length) > eval('' + ijkhl)) {
gamescoreprefix+=':' + gamescores[eval('' + ijkhl)];
} else {
gamescoreprefix+=':0';
}
}
if (message != '') {
alert(gamescoreprefix + ' ... ' + message);
message='';
defstyle=defstyle.replace(toggleto, togglefrom);
defstyle=defstyle.replace(lasttoggleto, lasttogglefrom);
document.head.innerHTML+=defstyle;
lasttto='';
lasttmid='';
lasttfrom='';
lasttoggleto='';
lasttogglefrom='';
lastcard='';
}
}

function domessage() {
gamescoreprefix='Tricks taken are ' + gamescores[0];
for (var ijkhl=1; ijkhl<eval('' + nominal_numplayers); ijkhl++) {
if (eval('' + gamescores.length) > eval('' + ijkhl)) {
gamescoreprefix+=':' + gamescores[eval('' + ijkhl)];
} else {
gamescoreprefix+=':0';
}
}
if (message != '') {
alert(gamescoreprefix + ' ... ' + message);
message='';
defstyle=defstyle.replace(toggleto, togglefrom.replace(/\./g,'.JUNK'));
defstyle=defstyle.replace(lasttoggleto, lasttogglefrom.replace(/\./g,'.JUNK'));
document.head.innerHTML+=defstyle;
lasttto='';
lasttmid='';
lasttfrom='';
lasttoggleto='';
lasttogglefrom='';
lastcard='';
}
}

function pa() {
if (aminmiddle) {
if (1 == 2) { setTimeout(pa, 10000); }
return false;
}
if ('document.hasFocus()' == 'document.hasFocus()') {
console.log(('' + opltlistl[eval('' + cw)]) + ' dragorderbig[' + curdrag + ']=' + dragorderbig[eval('' + curdrag)] + ' vs cw=' + cw + ' and overallgoes=' + overallgoes);
if (('' + opltlistl[eval('' + cw)]).split('.')[1] == ('' + dragorderbig[eval('' + curdrag)]) && eval('' + curdrag) == eval('' + overallgoes)) {
console.log('Dragorderbig[' + curdrag + ']=' + dragorderbig[eval('' + curdrag)] + ' vs cw=' + cw + ' and overallgoes=' + overallgoes);
ps=document.title.split('/')[0].trim();
pg=document.title.split('/')[1].split(' ')[0];
if (ps.indexOf('.') == -1 || pg.indexOf('.') == -1) {
ps=eval('' + overallscore + '.' + psecs); //eval(document.title.split('/')[0].trim());
pg=eval('' + overallgoes + '.' + secs);
document.title=document.title.replace(document.title.split(' ')[0], '' + overallscore + '.' + psecs + '/' + '' + overallgoes + '.' + secs);
console.log('document.title becomes ' + document.title);
} else {
ps=eval(ps);
pg=eval(pg);
}
var decs=document.title.split('.');
curdrag++;
psecs++;
overallgoes++;
if (eval('' + decs.length) >= 3) {
document.title=document.title.replace('.' + decs[1] + '.', '.' + curdrag + '/' + overallgoes + '.');
}
if (!nominal_numplayers) {
defstyle=defstyle.replace(cards[donelist[eval('' + cw)]].split('#')[0].split('gif')[0], cards[donelist[eval('' + cw)]].split('#')[0].split('gif')[0] + 'JUNK');
document.head.innerHTML+=defstyle;
}
//oplist[eval('' + tw)].close();
return null;
}
aminmiddle=true;
var hj=prompt(dp + blurb(), def);
if (hj) {
//setTimeout(function() { hj=prompt(dp + blurb(), def); if (hj == null) { hj=''; } else { hj=assess(hj); } if (hj.replace(def,'') != '') { checka(hj); } else if (1 == 2) { setTimeout(pa,10000); } aminmiddle=false; }, 8000);
if (hj == null) {
hj='';
} else {
hj=assess(hj);
}
if (hj.replace(def,'') == '') {
if (1 == 2) { setTimeout(pa,1000); }
} else {
checka(hj);
}
} else if (1 == 2) {
setTimeout(pa,1000);
}
aminmiddle=false;
//examinescore();
}
}

function checka(tpa) {
console.log('document.title=' + document.title + ' and tpa=' + tpa);
os='';
console.log('document.title=' + document.title + ' and tpa=' + tpa);
if (1 == 5) {
if (huh(oplist[0])) {
ps=eval(document.title.split('/')[0].trim());
pg=eval(document.title.split('/')[1].split(' ')[0]);
} else {
ps=document.title.split('/')[0].trim();
pg=document.title.split('/')[1].split(' ')[0];
if (ps.indexOf('.') == -1 || pg.indexOf('.') == -1) {
ps=eval('' + overallscore + '.' + psecs); //eval(document.title.split('/')[0].trim());
pg=eval('' + overallgoes + '.' + secs);
document.title=document.title.replace(document.title.split(' ')[0], '' + overallscore + '.' + psecs + '/' + '' + overallgoes + '.' + secs);
console.log('document.title becomes ' + document.title + ' and tpa=' + tpa);
} else {
ps=eval(ps);
pg=eval(pg);
}
}
}
force=true;
if (('' + ps) == '') { ps='0'; }
if (('' + pg) == '') { pg='0'; }
if (tpa.trim().toLowerCase() == da.toLowerCase()) {
ps++;
os=tpa.split(da)[1];
if (os == '' || 1 == 1) {
//overallscore++;
//overallgoes++;
console.log('Os=' + os + 'dt=' + '' + ('' + ps).split('.')[0] + os + '/' + '' + ('' + pg).split('.')[0] + ' is User Score/Goes');
document.title='' + '' + ('' + ps).split('.')[0] + os + '/' + '' + ('' + pg).split('.')[0] + ' is User Score/Goes';
}
} else {
pg++;
os=tpa.split(tpa.trim())[1];
if (os == '' || 1 == 1) {
//overallgoes++;
console.log('os=' + os + 'dt=' + '' + ('' + ps).split('.')[0] + os + '/' + ('' + pg).split('.')[0] + ' is User Score/Goes');
document.title='' + ('' + ps).split('.')[0] + os + '/' + ('' + pg).split('.')[0] + ' is User Score/Goes';
}
}
if (tpa != '') {
if (!nominal_numplayers) {
defstyle=defstyle.replace(cards[donelist[eval('' + cw)]].split('#')[0].split('gif')[0], cards[donelist[eval('' + cw)]].split('#')[0].split('gif')[0] + 'JUNK');
document.head.innerHTML+=defstyle;
}
}
if (!nominal_numplayers) {
examinescore();
}
}

function popupsim(zkq, zkl) {
var xkq='' + zkq;
aminmiddle=false;
for (var ihj=0; ihj<spcps.length; ihj++) {
if (('' + zkl) == spcps[ihj].split('/')[0]) {
for (var jhj=0; jhj<donelist.length; jhj++) {
if (('' + donelist[jhj]) == ('' + ihj)) {
cw=eval(0 + jhj);
if (nominal_numplayers && eval('' + defstyle.split('url(').length) > eval('' + cw)) {
console.log('cw=' + cw + ' and dbit=' + defstyle.split('url(')[eval(1 + eval('' + cw))].substring(0,150));
var cardlook=('' + defstyle.split('url(')[eval(1 + eval('' + cw))]);
if (cardlook.indexOf('?n=') != -1) {
cardlook='?n=' + cardlook.split('?n=')[1].split('#')[0] + '#';
console.log('cw=' + cw + ' cardlook=' + cardlook);
cardlook=cardlook.split('?n=')[1].split('#')[0] + '#'; //'' + spcps[eval('' + cw)].substring(6).split('.')[0] + '.';
console.log('cw=' + cw + ' Cardlook=' + cardlook);
if (defstyle.indexOf(cardlook) != -1) {
xkq=cardlook.replace('?n=','').replace('#','');
}
if (defstyle.indexOf('?n=' + xkq + '#') != -1) {
if (lasttogglenumber != ('' + xkq)) {
lasttogglenumber=('' + xkq);
//alert('cw=' + cw + ' and ihj=' + ihj + ' cardlook=' + cardlook);
//alert(defstyle.split('?n=' + eval(1 + iuh) + '#')[0].slice(-150) + '?n=' + eval(1 + iuh) + '#');
togglefrom='url(' + defstyle.split('url(')[eval(1 + eval('' + cw))].split('?')[0] + '?n=' + xkq + '#' + defstyle.split('?n=' + xkq + '#')[1].split(')')[0] + ')';
tfrom=togglefrom.substring(4).split('?')[0].split('#')[0].split(')')[0];
//alert(togglefrom);
tto=togglefrom.split('#')[1].split(')')[0];
tmid='?' + togglefrom.split('?')[1].split('#')[0] + '#';
toggleto='url(' + tto + tmid + tfrom + ')';
//if (defstyle.indexOf(togglefrom) != -1) {
//alert(togglefrom + ' to ' + toggleto);
//}


defstyle=defstyle.replace(togglefrom, toggleto);
document.head.innerHTML+=defstyle;


if (card_of_play == 0) {
console.log('first card');
lastcard='';
lasttoggleto=toggleto;
lasttogglefrom=togglefrom;
lasttto=tto;
lasttmid=tmid;
lasttfrom=tfrom;
if (toggleto.indexOf('images/0') != -1) {
lastcard='0' + toggleto.split('images/0')[1].split('.')[0];
} else if (toggleto.indexOf('images/1') != -1) {
lastcard='1' + toggleto.split('images/1')[1].split('.')[0];
}
card_of_play=1;
console.log('First card');
} else {
console.log('second card');
if (toggleto.indexOf('images/0') != -1) {
console.log('Second card');
if (lastcard.substring(0,2) == ('0' + toggleto.split('images/0')[1].split('.')[0].substring(0,1))) {
message=('Well done, continue Player ' + curplayer);
gamescores[eval(-1 + curplayer)]++;
setTimeout(domessage,2000);
//defstyle=defstyle.replace(toggleto, togglefrom.replace(/\./g,'.JUNK'));
//defstyle=defstyle.replace(lasttoggleto, lasttogglefrom.replace(/\./g,'.JUNK'));
//document.head.innerHTML+=defstyle;
} else {
//defstyle=defstyle.replace(toggleto, togglefrom);
//defstyle=defstyle.replace(lasttoggleto, lasttogglefrom);
//document.head.innerHTML+=defstyle;
curplayer++;
if (eval('' + curplayer) > eval('' + nominal_numplayers)) { curplayer=1; }
if (eval('' + curplayer) > eval('' + gamescores.length)) { gamescores.push(0); }
message=('Next player ' + curplayer + ' goes now '); // + lastcard.substring(0,2) + ' ' + ('0' + toggleto.split('images/0')[1].split('.')[0].substring(0,1)));
setTimeout(domessagetwo,2000);
}
} else if (toggleto.indexOf('images/1') != -1) {
if (lastcard.substring(0,2) == ('1' + toggleto.split('images/1')[1].split('.')[0].substring(0,1))) {
message=('Well done, continue Player ' + curplayer);
gamescores[eval(-1 + curplayer)]++;
setTimeout(domessage,2000);
//defstyle=defstyle.replace(toggleto, togglefrom.replace(/\./g,'.JUNK'));
//defstyle=defstyle.replace(lasttoggleto, lasttogglefrom.replace(/\./g,'.JUNK'));
//document.head.innerHTML+=defstyle;
} else {
//defstyle=defstyle.replace(toggleto, togglefrom);
//defstyle=defstyle.replace(lasttoggleto, lasttogglefrom);
//document.head.innerHTML+=defstyle;
curplayer++;
if (eval('' + curplayer) > eval('' + nominal_numplayers)) { curplayer=1; }
if (eval('' + curplayer) > eval('' + gamescores.length)) { gamescores.push(0); }
message=('Next player ' + curplayer + ' goes now '); // + lastcard.substring(0,2) + ' ' + ('1' + toggleto.split('images/1')[1].split('.')[0].substring(0,1)));
setTimeout(domessagetwo,2000);
}
}
lastcard='';
//lasttto='';
//lasttmid='';
//lasttfrom='';
//lasttoggleto='';
//lasttogglefrom='';
card_of_play=0;
}
}
}
}
}
}
}
}
}
//console.log('zkq=' + zkq + ' asq.length=' + asq.length + ' sq.length=' + sq.length);
//alert('zkq=' + zkq);
da='' + asq[eval(0 + zkq)];
//console.log('da=' + da);
//alert('da=' + da);
dp='' + given + sq[eval('' + zkq)];
//console.log('dp=' + dp);
//alert('dp=' + dp);
def=String.fromCodePoint(eval('' + zkl));
//document.title=ps + os + '/' + pg + ' is User: Score/Goes';
// window.close(); // remove from defstyle created background-image list
//document.head.innerHTML+="<style> html { background:URL('" + cards[zkl] + "'); background-size:contain; background-repeat:no-repeat; } </style>";
if (zkq != lastzkq || zkl != lastzkl) {
lastzkq=zkq;
lastzkl=zkl;
pa();
}
}


function clickedmaybe() {
var togglefrom='', toggleto='', tfrom='', tto='', tmid='';
if (('' + iourx) != '-1' && ('' + ioury) != '-1') {
if (!oplist[0] || 7 == 7) {
//console.log('here at x=' + iourx + ' and y=' + ioury + ' ' + opltlistl[0] + ',' + opltlistt[0]);
for (var iuh=0; iuh<opltlistl.length; iuh++) {
if (eval('' + iourx) >= eval('' + opltlistl[iuh]) && eval('' + ioury) >= eval('' + opltlistt[iuh])) {
//console.log('passed left and top test');
if (eval('' + iourx) <= eval(eval('' + owidth) + eval('' + opltlistl[iuh])) && eval('' + ioury) <= eval(eval('' + oheight) + eval('' + opltlistt[iuh]))) {
//console.log('here at x=' + iourx + ' and y=' + ioury + ' in popup number ' + eval(1 + iuh));
popupsim(eval(('' + opltlistt[iuh]).split('.')[1]), eval(('' + opltlistl[iuh]).split('.')[1]));
}
}
}
}
}
}

function huh(opl) {
if (opl) {
if ((nominal_numplayers || document.URL.indexOf('onewindow=') != -1) || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
return null;
} else {
return opl;
}
}
return null;
}

function windowopen(one, two, three) {
if (1 == 1 || (nominal_numplayers || document.URL.indexOf('onewindow=') != -1) || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
console.log('Here ' + oheight);
opltlistl.push((three.split('left=')[1].split(',')[0].split(')')[0].split('.')[0] + '.' + one.split('spcp=')[1].split('&')[0]));
opltlistt.push(('' + eval(-42 + eval(three.split('top=')[1].split(',')[0].split(')')[0]))).split('.')[0] + '.' + kq);
oopltlistl.push((three.split('left=')[1].split(',')[0].split(')')[0].split('.')[0] + '.' + one.split('spcp=')[1].split('&')[0]));
oopltlistt.push(('' + eval(-42 + eval(three.split('top=')[1].split(',')[0].split(')')[0]))).split('.')[0] + '.' + kq);
owidth=eval(three.split('width=')[1].split(',')[0].split(')')[0].split('.')[0]);
oheight=eval(three.split('height=')[1].split(',')[0].split(')')[0].split('.')[0]);
if (defstyle.indexOf('background: URL(') != -1) {
//defstyle=defstyle.split('background: URL(')[0] + 'background-repeat:repeat,no-repeat;background-size:contain,' + owidth + ' ' + oheight + ';background-position:0px 0px,' + ('' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px' + ';background-image: url(//www.rjmprogramming.com.au/rjmquiz_plus.jpg),url(' + cards[eval('' + donelist[eval(-1 + donelist.length)])] + ') ' + (' ' + ('' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px').substring(0,1) + '; } </style>'; // + ' ' + owidth + ' ' + oheight
defstyle=defstyle.split('background: URL(')[0] + 'background-repeat:no-repeat;background-size:' + owidth + 'px ' + oheight + 'px;background-position:' + ('' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px' + ';background-image: url(' + altcards[eval('' + donelist[eval(-1 + donelist.length)])] + ') ' + (' ' + ('' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px').substring(0,1) + '; } </style>'; // + ' ' + owidth + ' ' + oheight
} else {
defstyle=defstyle.replace(';background-image:', (',' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px' + ';background-image:');
defstyle=defstyle.replace('no-repeat','no-repeat,no-repeat');
defstyle=defstyle.replace('background-size:' + owidth + 'px ' + oheight + 'px','background-size:' + owidth + 'px ' + oheight + 'px,' + owidth + 'px ' + oheight + 'px');
defstyle=defstyle.replace('; } </style>', ',url(' + altcards[eval('' + donelist[eval(0 + ijk)])] + ') ' + (' ' + ('' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px').substring(0,1) + '; } </style>'); // + ' ' + owidth + ' ' + oheight
}
//console.log('defstyle=' + defstyle);
//document.head.innerHTML+=defstyle;
if ((nominal_numplayers || document.URL.indexOf('onewindow=') != -1) || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
return null;
}
}
return window.open(one, two, three);
}

function wosf(st) {
cw=st;
}

function ourprompt(tw, blb, bdef) {
var kijk;
console.log('oplist[' + eval('' + tw) + '].document.name=' + oplist[eval('' + tw)].document.name + ' and dragorder[' + curdrag + ']=' + dragorder[eval('' + curdrag)] + ' vs tw=' + tw + ' and overall;goes=' + overallgoes);
if (oplist[eval('' + tw)].document.name == ('' + dragorder[eval('' + curdrag)]) && eval('' + curdrag) == eval('' + overallgoes)) {
console.log('Dragorder[' + curdrag + ']=' + dragorder[eval('' + curdrag)] + ' vs tw=' + tw + ' and overall;goes=' + overallgoes);
var decs=document.title.split('.');
curdrag++;
overallgoes++;
if (eval('' + decs.length) >= 3) {
document.title=document.title.replace('.' + decs[1] + '.', '.' + curdrag + '/' + overallgoes + '.');
}
oplist[eval('' + tw)].close();
if (!nominal_numplayers) {
defstyle=defstyle.replace(cards[donelist[eval('' + tw)]].split('#')[0].split('gif')[0], cards[donelist[eval('' + tw)]].split('#')[0].split('gif')[0] + 'JUNK');
document.head.innerHTML+=defstyle;
}
return null;
}
if (eval('' + oplist[eval('' + tw)].screenTop) == eval('' + opltlistt[eval('' + tw)]) && eval('' + oplist[eval('' + tw)].screenLeft) == eval('' + opltlistl[eval('' + tw)])) {
if (spcps[eval('' + tw)].indexOf('#') != -1) {
spcps[eval('' + tw)]=spcps[eval('' + tw)].replace(/\#/g,'');
if (xwogf(tw).indexOf(' dragged to ') != -1) {
console.log('FALSE');
return null; //false;
} else {
console.log('TRUE');
cw=eval('' + tw);
for (kijk=0; kijk<spcps.length; kijk++) {
spcps[eval('' + kijk)]=spcps[eval('' + kijk)].replace(/\#/g,'');
}
return true; //prompt(blb, bdef); //true;
}
} else {
spcps[eval('' + tw)]+='#';
}
} else {
opltlistt[eval('' + tw)]=eval('' + oplist[eval('' + tw)].screenTop);
opltlistl[eval('' + tw)]=eval('' + oplist[eval('' + tw)].screenLeft);
//spcps[eval('' + tw)]=spcps[eval('' + tw)].replace(/\#/g,'');
spcps[eval('' + tw)]+='#';
return null; //false;
console.log('False');
}
console.log('false');
spcps[eval('' + tw)]+='#';
if (nullv) {
nullv=null;
cw=eval('' + tw);
for (kijk=0; kijk<spcps.length; kijk++) {
spcps[eval('' + kijk)]=spcps[eval('' + kijk)].replace(/\#/g,'');
}
return true; //prompt(blb, bdef); //true;
}
cw=eval('' + tw);
for (kijk=0; kijk<spcps.length; kijk++) {
spcps[eval('' + kijk)]=spcps[eval('' + kijk)].replace(/\#/g,'');
}
return true; //prompt(blb, bdef); //nullv; //false;
}

function wond(tw) {
return true;
//cw=eval('' + tw);
console.log('tw=' + tw);
if (eval('' + oplist[eval('' + tw)].screenTop) == eval('' + opltlistt[eval('' + tw)]) && eval('' + oplist[eval('' + tw)].screenLeft) == eval('' + opltlistl[eval('' + tw)])) {
if (spcps[eval('' + tw)].indexOf('##') != -1) {
spcps[eval('' + tw)]=spcps[eval('' + tw)].replace('##','');
if (xwogf(tw).indexOf(' dragged to ') != -1) {
console.log('FALSE');
return false;
} else {
console.log('TRUE');
return true;
}
} else {
spcps[eval('' + tw)]+='#';
}
} else {
opltlistt[eval('' + tw)]=eval('' + oplist[eval('' + tw)].screenTop);
opltlistl[eval('' + tw)]=eval('' + oplist[eval('' + tw)].screenLeft);
spcps[eval('' + tw)]=spcps[eval('' + tw)].replace(/\#/g,'');
console.log('False');
}
console.log('false');
spcps[eval('' + tw)]+='#';
return false;
}

function xwogf(xcw) {
var sx='', nearest=-1;
var minl=-1, mint=-1;
if (eval('' + xcw) >= 0) {
if (!oplist[eval('' + xcw)].closed) {
sx=' (' + oplist[eval('' + xcw)].screenLeft + ',' + oplist[eval('' + xcw)].screenTop + ')';
for (var kijk=0; kijk<spcps.length; kijk++) {
if (!oplist[kijk].closed) {
if (eval('' + kijk) != eval('' + xcw)) {
if (minl < 0) {
mint=Math.abs(eval(oplist[eval('' + xcw)].screenTop - opltlistt[kijk]));
minl=Math.abs(eval(oplist[eval('' + xcw)].screenLeft - opltlistl[kijk]));
sx+=' [' + opltlistt[kijk] + ';' + opltlistl[kijk] + '] ';
nearest=kijk;
} else if (eval(eval('' + mint) + eval('' + minl)) > eval(Math.abs(eval(oplist[eval('' + xcw)].screenTop - opltlistt[kijk])) + Math.abs(eval(oplist[eval('' + xcw)].screenLeft - opltlistl[kijk]))) ) {
nearest=kijk;
mint=Math.abs(eval(oplist[eval('' + xcw)].screenTop - opltlistt[kijk]));
minl=Math.abs(eval(oplist[eval('' + xcw)].screenLeft - opltlistl[kijk]));
}
}
}
}
if (lastdrag.indexOf(',' + xcw + ',' + nearest + ',') == -1 && eval('' + nearest) != eval('' + xcw) && Math.abs(eval('' + minl) + eval('' + mint)) < 10 && eval('' + nearest) != -1) {
sx+=' ... dragged to ' + nearest;
lastdrag=',' + xcw + ',' + nearest + ',' + xcw + ',';
//oplist[eval('' + nearest)].focus();
//oplist[eval('' + cw)].blur();
oplist[eval('' + xcw)].close();
if (!nominal_numplayers) {
defstyle=defstyle.replace(cards[donelist[eval('' + xcw)]].split('#')[0].split('gif')[0], cards[donelist[eval('' + xcw)]].split('#')[0].split('gif')[0] + 'JUNK');
document.head.innerHTML+=defstyle;
}
}
console.log(xcw + sx);
}
}
return '' + xcw + sx;
}

function closeit(ikl) {
if (!nominal_numplayers) {
defstyle=defstyle.replace(cards[eval('' + ikl)].split('#')[0].split('gif')[0], cards[eval('' + ikl)].split('#')[0].split('gif')[0] + 'JUNK');
document.head.innerHTML+=defstyle;
}
}

function wogf() {
var sx='', nearest=-1;
var minl=-1, mint=-1;
if (eval('' + cw) >= 0) {
if (!oplist[eval('' + cw)].closed) {
sx=' (' + oplist[eval('' + cw)].screenLeft + ',' + oplist[eval('' + cw)].screenTop + ')';
for (var kijk=0; kijk<spcps.length; kijk++) {
if (!oplist[kijk].closed) {
if (eval('' + kijk) != eval('' + cw)) {
if (minl < 0) {
mint=Math.abs(eval(oplist[eval('' + cw)].screenTop - opltlistt[kijk]));
minl=Math.abs(eval(oplist[eval('' + cw)].screenLeft - opltlistl[kijk]));
sx+=' [' + opltlistt[kijk] + ';' + opltlistl[kijk] + '] ';
nearest=kijk;
} else if (eval(eval('' + mint) + eval('' + minl)) > eval(Math.abs(eval(oplist[eval('' + cw)].screenTop - opltlistt[kijk])) + Math.abs(eval(oplist[eval('' + cw)].screenLeft - opltlistl[kijk]))) ) {
nearest=kijk;
mint=Math.abs(eval(oplist[eval('' + cw)].screenTop - opltlistt[kijk]));
minl=Math.abs(eval(oplist[eval('' + cw)].screenLeft - opltlistl[kijk]));
}
}
}
}
if (lastdrag.indexOf(',' + cw + ',' + nearest + ',') == -1 && eval('' + nearest) != eval('' + cw) && Math.abs(eval('' + minl) + eval('' + mint)) < 10 && eval('' + nearest) != -1) {
sx+=' ... dragged to ' + nearest;
lastdrag=',' + cw + ',' + nearest + ',' + cw + ',';
//oplist[eval('' + nearest)].focus();
//oplist[eval('' + cw)].blur();
oplist[eval('' + cw)].close();
if (!nominal_numplayers) {
defstyle=defstyle.replace(cards[donelist[eval('' + cw)]].split('#')[0].split('gif')[0], cards[donelist[eval('' + cw)]].split('#')[0].split('gif')[0] + 'JUNK');
document.head.innerHTML+=defstyle;
}
}
console.log(cw + sx);
}
}
return '' + cw + sx;
}

function reputwas() {
document.title=wastitle;
}

function reassess() {
var retv='', ewq;
var retcols=[];
var ir=0;
if (window.localStorage) {
try {
retv=('' + window.localStorage.getItem('cards_usefocus_local')).replace(/^null$/g,'');
console.log('localStorage=' + retv);
if (retv != '' && retv != retv.replace(/^undefined/g,'')) {
window.localStorage.removeItem('cards_usefocus_local');
} else if (retv != '' && retv == retv.replace(/^undefined/g,'')) {
//alert('0:' + retv);
retcols=decodeURIComponent(retv).split('~');
sq=[];
asq=[];
for (ir=0; ir<retcols.length; ir++) {
sq.push(retcols[ir].split('?!')[0] + '?');
asq.push(retcols[ir].split('?!')[1]);
nomap=false;
given='';
}
return;
}
} catch(ewq) {
}
}
if (window.sessionStorage) {
try {
retv=('' + window.sessionStorage.getItem('cards_usefocus_session')).replace(/^null$/g,'');
console.log('sessionStorage=' + retv);
if (retv != '' && retv != retv.replace(/^undefined/g,'')) {
window.sessionStorage.removeItem('cards_usefocus_session');
} else if (retv != '' && retv == retv.replace(/^undefined/g,'')) {
//alert('1:' + retv);
retcols=decodeURIComponent(retv).split('~');
sq=[];
asq=[];
for (ir=0; ir<retcols.length; ir++) {
sq.push(retcols[ir].split('?')[0] + '?');
asq.push(retcols[ir].split('?')[1]);
nomap=false;
given='';
}
return;
}
} catch(ewq) {
}
}
}


function assess(what) {
var ewq, retv='';
if (what.toLowerCase() == 'memories') {
location.href=document.URL.split('?')[0].split('#')[0] + '?card_memories=y';
}
if (what.toLowerCase() == '?x') {
sslistq=[];
sslista=[];
if (window.sessionStorage) {
try {
window.sessionStorage.removeItem('cards_usefocus_session');
} catch(ewq) {
}
location.href=document.URL.split('#')[0].split('?')[0] + '?rand=' + Math.floor(Math.random() * 198765897);
return '';
}
return '';
} else if (what.toLowerCase() == '?!x') {
lslistq=[];
lslista=[];
if (window.localStorage) {
try {
window.localStorage.removeItem('cards_usefocus_local');
} catch(ewq) {
}
location.href=document.URL.split('#')[0].split('?')[0] + '?rand=' + Math.floor(Math.random() * 198765897);
return '';
}
return '';
} else if (what.toLowerCase().indexOf('?!') != -1) {
if (what.toLowerCase() == '?!') {
location.href=document.URL.split('#')[0].split('?')[0] + '?rand=' + Math.floor(Math.random() * 198765897);
return '';
}
if (window.localStorage) {
if (lslistq.length == 0) {
lslistq.push(what.split('?!')[0]);
lslista.push(what.split('?!')[1]);
window.localStorage.setItem('cards_usefocus_local', encodeURIComponent(what));
} else {
lslistq.push(what.split('?!')[0]);
lslista.push(what.split('?!')[1]);
window.localStorage.setItem('cards_usefocus_local', window.localStorage.getItem('cards_usefocus_local') + encodeURIComponent('~' + what));
}
}
return '';
} else if (what.toLowerCase().indexOf('?') != -1) {
if (what.toLowerCase() == '?') {
location.href=document.URL.split('#')[0].split('?')[0] + '?rand=' + Math.floor(Math.random() * 198765897);
return '';
}
if (window.sessionStorage) {
if (sslistq.length == 0) {
sslistq.push(what.split('?')[0]);
sslista.push(what.split('?')[1]);
window.sessionStorage.setItem('cards_usefocus_session', encodeURIComponent(what));
} else {
sslistq.push(what.split('?')[0]);
sslista.push(what.split('?')[1]);
window.sessionStorage.setItem('cards_usefocus_session', window.sessionStorage.getItem('cards_usefocus_session') + encodeURIComponent('~' + what));
}
}
return '';
} else {
firstbit='';
if (window.localStorage) {
try {
retv=('' + window.localStorage.getItem('cards_usefocus_local')).replace(/^null$/g,'');
if (retv != '' && nomap) { location.href=document.URL.split('#')[0].split('?')[0] + '?rand=' + Math.floor(Math.random() * 198765897); }
} catch(ewq) {
}
}
if (window.sessionStorage) {
try {
retv=('' + window.sessionStorage.getItem('cards_usefocus_session')).replace(/^null$/g,'');
if (retv != '' && nomap) { location.href=document.URL.split('#')[0].split('?')[0] + '?rand=' + Math.floor(Math.random() * 198765897); }
} catch(ewq) {
}
}
}
return what;
}

function blurb() {
if (wblurb == ' Hello Player 1' && theblurb == ' If you are player 2 rather than player 1 append space to your answer.') {
theblurb='';
wblurb='';
}
var twf=theblurb + wblurb + firstbit;
return twf;
}

function getnum() {
return numplayers;
}

function examinescore() {
var zs='';
var dolater=false;
var incscore=0; incgoes=1;
var dts=[];
if (document.title.indexOf('/') == -1) {
document.title=wastitle;
dts=wastitle.split('/');
} else {
dts=document.title.split('/');
}
if ((force || document.title.indexOf(':') == -1) && dts.length != 1) {
if (force) { force=false; }
dts[1]=dts[1].split(' ')[0].split('.')[0];
dts[0]=dts[0].split('.')[0];
if (wblurb == ' Hello Player 1' && theblurb == ' If you are player 2 rather than player 1 append space to your answer.') {
theblurb='';
wblurb='';
curplayer=1;
}
if (overallgoes == 2 && numplayers == 1) {
theblurb='';
wblurb='';
curplayer=1;
}
if (overallgoes == 2 && dts[0].indexOf(' ') == -1 && theblurb == ' If you are player 2 rather than player 1 append space to your answer.') {
theblurb='';
wblurb='';
curplayer=1;
}
if (dts[0] != clastscore) { // || dts[1] != clastgoes) {
overallgoes++; // 4 numplayers is 2
if (theblurb != '' && dts[0].indexOf(' ') == -1) {
curplayer=1;
wblurb=' Hello Player ' + eval(1 + eval(overallgoes % numplayers)) + '.'; // + zs;
theblurb='';
dolater=true; //lastgoes[0]++;
} else if (dts[0].indexOf(' ') == -1 && eval(overallgoes % numplayers) == 1 && numplayers != 1) {
curplayer=1;
dolater=true; //lastgoes[0]++;
}
if (1 == 1) { //dts[0].trim() != ('' + lastscore[eval(-1 + curplayer)])) {
if (dts[0].trim() != lastdts0.trim()) { incscore++; }
//if (dts[0].indexOf(' ') == -1 && dts[0].trim() != lastdts0.trim()) { lastscore[eval(-1 + curplayer)]+=incscore; }
//if (dts[0].indexOf(' ') == -1 && dts[0].trim() != lastdts0.trim()) { lastscore[eval(-1 + lastcurplayer)]+=incscore; }
if (dts[0].indexOf(' ') == -1 && dts[0].trim() != lastdts0.trim()) { lastscore[eval(eval(-1 + overallgoes) % numplayers)]+=incscore; }
if (curplayer != 1 && 1 == 7) { lastgoes[eval(numplayers - 1 + eval(overallgoes % numplayers))]++; }
if (dts[0].trim() != lastdts0.trim()) { overallscore++; }
} else {
if (curplayer != 1 && 1 == 7) { lastgoes[eval(numplayers - 1 + eval(overallgoes % numplayers))]++; }
}
if (dts[0].indexOf(' ') != -1) {
numplayers++;
//alert('new player');
lastscore.push(incscore);
curplayer=numplayers; //eval(1 + eval(overallgoes % numplayers));
if (curplayer == 1 && eval(1 + eval(overallgoes % numplayers)) == 1) {
lastgoes.push(eval(1 + lastgoes[0]));
} else {
lastgoes.push(lastgoes[0]);
}
theblurb=' If you are player ' + eval(1 + numplayers) + ' rather than player 1 append space to your answer.'; // + zs;
} else if (numplayers == 1 && overallgoes == 1) {
theblurb=' If you are player 2 rather than player 1 append space to your answer.'; // + zs;
} else if (numplayers == 1 && overallgoes > 1) {
theblurb=''; //' If you are player 2 rather than player 1 append space to your answer.'; // + zs;
} else if (theblurb != '') {
theblurb=' If you are player ' + eval(1 + numplayers) + ' rather than player 1 append space to your answer.'; // + zs;
curplayer=eval(0 + eval(overallgoes % numplayers)); // ?
if (eval(1 + eval(overallgoes % numplayers)) == 1) {
lastgoes[eval(-1 + numplayers)]=lastgoes[0];
}
if (numplayers != 1) { wblurb=' Hello Player ' + eval(1 + eval(overallgoes % numplayers)) + '.'; } // + zs;
theblurb='';
} else {
curplayer=eval(1 + eval(overallgoes % numplayers));
if (numplayers != 1) { wblurb=' Hello Player ' + eval(1 + eval(overallgoes % numplayers)) + '.'; } // + zs;
theblurb='';
}
if (curplayer == 1) { // && eval(1 + eval(overallgoes % numplayers)) == 1) {
//zs='!';
lastgoes[0]++;
dolater=false;
}
if (overallgoes == 2 && dts[0].indexOf(' ') == -1 && theblurb == ' If you are player 2 rather than player 1 append space to your answer.') {
theblurb='';
wblurb='';
curplayer=1;
}
lastdts0=dts[0].trim();
lastcurplayer=curplayer;
} else if (dts[1] != clastgoes) {
overallgoes++;
if (curplayer != 1 && 1 == 7) { lastgoes[eval(numplayers - 1 + eval(overallgoes % numplayers))]++; }
if (numplayers != 1) {
curplayer=eval(0 + eval(overallgoes % numplayers));
if (eval(1 + eval(overallgoes % numplayers)) == 1) {
lastgoes[eval(-1 + numplayers)]=lastgoes[0];
}
if (numplayers != 1) { wblurb=' Hello Player ' + eval(1 + eval(overallgoes % numplayers)) + '.'; } // + zs;
theblurb='';
} else if (numplayers == 1 && overallgoes == 1) {
theblurb=' If you are player 2 rather than player 1 append space to your answer.'; // + zs;
} else if (numplayers == 1 && overallgoes > 1) {
theblurb=''; //' If you are player 2 rather than player 1 append space to your answer.'; // + zs;
}
if (curplayer == 1) { // && eval(1 + eval(overallgoes % numplayers)) == 1) {
//zs='%';
lastgoes[0]++;
dolater=false;
}
lastdts0=dts[0].trim();
lastcurplayer=curplayer;
}
clastscore=dts[0].trim();
clastgoes=dts[1].trim();
// 4/4 2:2/3:3
if (numplayers != 1) {

var cd=overallgoes;
for (var qqiuy=0; qqiuy<numplayers; qqiuy++) {
lastgoes[qqiuy]=0;
}
var icd=0;

for (var ikn=0; ikn<overallgoes; ikn++) {
lastgoes[icd]++;
icd++;
if (eval('' + icd) == eval('' + numplayers)) { icd = 0; }
}

//while (cd > 0) {
//lastgoes[icd]++;
//icd++;
//if (icd == numplayers) { icd = 0; }
//cd--;
//}

dolater=false;

//if (eval(overallgoes % numplayers) == 0) {
//lastgoes[0]=eval(overallgoes / numplayers);
//}


}

if (1 == 2) {
if (eval(overallgoes % numplayers) == 0) {
for (var qiuy=0; qiuy<=eval(-1 + numplayers); qiuy++) {
lastgoes[qiuy]=lastgoes[0];
}
} else {
for (var iuy=0; iuy<=eval(-1 + curplayer); iuy++) {
lastgoes[iuy]=lastgoes[0];
}
}
}

//if (eval(overallgoes % numplayers) == 0 && numplayers != 1) {
//lastgoes[eval(-1 + numplayers)]=lastgoes[0];
//}
if (dolater) { lastgoes[0]++; }
if (numplayers > 1) {
infill='' + lastscore[0] + '/' + lastgoes[0];
for (var ijk=1; ijk<lastgoes.length; ijk++) {
infill=infill.replace('/', ':' + lastscore[ijk] + '/') + ':' + lastgoes[ijk];
}
document.title='' + overallscore + '.' + psecs + '/' + overallgoes + '.' + secs + ' ' + infill + ' is User Score/Goes - RJM Programming - April, 2021 ' + stcprefix;
wastitle=document.title;
} else {
document.title='' + overallscore + '.' + psecs + '/' + overallgoes + '.' + secs + ' is User: Score/Goes - RJM Programming - April, 2021 ' + stcprefix;
wastitle=document.title;
}
}
}

function dothis(inthing) {
stcprefix=String.fromCodePoint(eval('' + defstcp));
document.title=String.fromCodePoint(eval('' + defstcp)); //'🂾';

document.head.innerHTML+=defstyle; //"<style> html { background-color: yellow; font-size: 36px; background: URL('//www.rjmprogramming.com.au/rjmquiz_plus.jpg'); background-size: contain; } </style>";

for (ij=0; ij<spcps.length; ij++) {
if (spcps[ij].indexOf('' + eval(location.search.split('spcp=')[1] ? location.search.split('spcp=')[1].split('&')[0] : defstcp)) == 0) {
ji=ij;
}
}

if (ji >= 0) {
fi=document.createElement('link');
fi.rel='icon';
fi.href=cards[ji];

document.head.appendChild(fi);

}

}

function blater() {
if (1 == 2 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
window.addEventListener('touchstart', function(evt) {
evt.preventDefault();
var touches = evt.changedTouches;
//if (evt.touches) {
if (touches[0].pageX) {
iourx = touches[0].pageX;
ioury = touches[0].pageY;
} else if (touches[0].clientX) {
iourx = touches[0].clientX;
ioury = touches[0].clientY;
}
//alert('x:' + iourx);
//}
clickedmaybe();
}, false);
} else {
eles = document.querySelectorAll("*")
for (var ele of eles) {
//console.log('yes well');
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
ele.addEventListener('touchstart', function(evt) {
evt.preventDefault();
var touches = evt.changedTouches;
//if (evt.touches) {
if (touches[0].pageX) {
iourx = touches[0].pageX;
ioury = touches[0].pageY;
} else if (touches[0].clientX) {
iourx = touches[0].clientX;
ioury = touches[0].clientY;
}
//alert('x:' + iourx);
//}
clickedmaybe();
}, false);
ele.addEventListener('touchmove', function(evt) {
evt.preventDefault();
var touches = evt.changedTouches;
//if (evt.touches) {
if (touches[0].pageX) {
iourx = touches[0].pageX;
ioury = touches[0].pageY;
} else if (touches[0].clientX) {
iourx = touches[0].clientX;
ioury = touches[0].clientY;
}
//alert('x:' + iourx);
//}
clickedmaybe();
}, false);
ele.addEventListener('click', function(evt) {
evt.preventDefault();
var touches = evt.changedTouches;
//if (evt.touches) {
if (touches[0].pageX) {
iourx = touches[0].pageX;
ioury = touches[0].pageY;
} else if (touches[0].clientX) {
iourx = touches[0].clientX;
ioury = touches[0].clientY;
}
//alert('x:' + iourx);
//}
if (('' + iourx + ',' + ioury) == lastec && lastec != '' && notyet) {
location.href=document.URL.split('?')[0].split('#')[0] + '?card_memories=y';
} else if (lastec == '') {
setTimeout(antilastec, 2000);
setTimeout(antinotyet, 200);
notyet=false;
lastec='' + iourx + ',' + ioury;
} else {
setTimeout(antilastec, 2000);
setTimeout(antinotyet, 200);
notyet=false;
lastec='' + iourx + ',' + ioury;
}
clickedmaybe();
}, false);
} else {
ele.addEventListener('click', function(evt) {
if (evt.touches) {
if (evt.touches[0].pageX) {
iourx = evt.touches[0].pageX;
ioury = evt.touches[0].pageY;
} else {
iourx = evt.touches[0].clientX;
ioury = evt.touches[0].clientY;
}
//alert('' + iourx);
} else if (evt.clientX) {
iourx = evt.clientX; // - elemLeft;
ioury = evt.clientY; // - elemLeft;
} else if (!evt.touches) {
iourx = evt.pageX; // - elemLeft;
ioury = evt.pageX; // - elemLeft;
}
if (('' + iourx + ',' + ioury) == lastec && lastec != '' && notyet) {
location.href=document.URL.split('?')[0].split('#')[0] + '?card_memories=y';
} else if (lastec == '') {
setTimeout(antilastec, 2000);
setTimeout(antinotyet, 200);
notyet=false;
lastec='' + iourx + ',' + ioury;
} else {
setTimeout(antilastec, 2000);
setTimeout(antinotyet, 200);
notyet=false;
lastec='' + iourx + ',' + ioury;
}
clickedmaybe();
//alert('here');
});
ele.addEventListener('dblclick', function(evt) {
location.href=document.URL.split('?')[0].split('#')[0] + '?card_memories=y';
});
}
}
}
}

function secsu() {
var ewd;
if (eval('' + secs) == 0) {
if ((nominal_numplayers || document.URL.indexOf('onewindow=') != -1) || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
flexible=false;
} else {
flexible=true;
//console.log('Flexible=T');
}
setTimeout(blater, 2500);
}
if (eval('' + overallgoes) < fiftytwo && eval('' + fiftytwo) > 0) {
secs++;
} else if (document.title.indexOf('Congratulations') == -1) {
document.title+=' ... Congratulations! End of Game! Refresh webpage to try again.';
}
var decs=document.title.split('.');
if (eval('' + decs.length) >= 3) {
document.title=document.title.replace('.' + decs[2].split(' ')[0] + ' ', '.' + secs + ' ');
} else {
ps=document.title.split('/')[0].trim();
pg=document.title.split('/')[1].split(' ')[0];
if (ps.indexOf('.') == -1 || pg.indexOf('.') == -1) {
ps=eval('' + overallscore + '.' + psecs); //eval(document.title.split('/')[0].trim());
pg=eval('' + overallgoes + '.' + secs);
document.title=document.title.replace(document.title.split(' ')[0], '' + overallscore + '.' + psecs + '/' + '' + overallgoes + '.' + secs);
//console.log('document.title becomes ' + document.title);
} else {
ps=eval(ps);
pg=eval(pg);
}
}

if (flexible) {
if (document.hasFocus()) {
flexible=false;
//console.log('Flexible=F');
lastzkq='';
lastzkl='';
owidth=oowidth;
oheight=ooheight;
for (var igh=0; igh<oplist.length; igh++) {
opltlistl[igh]=oopltlistl[igh];
opltlistt[igh]=oopltlistt[igh];
if (oplist[igh]) {
//console.log('Flexible=F' + igh);
if (!oplist[igh].closed) {
try {
oplist[igh].close();
oplist[igh]=null;
} catch(ewd) {
}
} else {
oplist[igh]=null;
}
}
}
}
}
}

setInterval(secsu,1000);

</script>
</head>
</html>