3d2
<
9d7
< var owidth=20, oheight=20;
14d11
< var force=false;
28,29d24
< var defstyle="";
< var eles=[];
40,46d34
< var iourx=-1, ioury=-1;
< var aminmiddle=false;
< var da='';
< var dp='';
< var def='', os='', ps='', pg='';
< var lastzkq='', lastzkl='';
<
105c93
< var dragorder=[], dragorderbig=[], curdrag=0;
---
> var dragorder=[], curdrag=0;
165d152
< dragorderbig.push(eval(spcps[eval(-1 + jc)].split('/')[0]));
228,230c215
< if (1 == 2) {
< document.head.innerHTML+="";
< }
---
> document.head.innerHTML+="";
238,241c223,224
< 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("
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+=\"\"; if (document.hasFocus()) { if (window.opener.wond(" + eval(-1 + oplist.length) + ")) { setTimeout(pa,2000); } else { pa(); } } else { pa(); } ");
---
> eval("oplist.push(window.open('" + uis + "', '_blank', '" + hackString + "left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
> //oplist[eval(-1 + oplist.length)].document.write(" 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+=\"\"; if (document.hasFocus()) { if (window.opener.wond(" + eval(-1 + oplist.length) + ")) { setTimeout(pa,2000); } else { pa(); } } else { pa(); } ");
246,250d228
< }
<
< if (oplist[0]) {
< document.head.innerHTML+="";
< }
266d243
< if (oplist[0]) {
268,280d244
< }
<
< 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;
< oleft=Math.floor(eval(235 / factorx));
< thisleft=Math.floor(eval(235 / factorx));
< otop==Math.floor(eval(100 / factory));;
< thistop==Math.floor(eval(100 / factory));;
< }
<
288d251
< //if (!oplist[0]) {
290,292d252
< //}
<
< if (1 == 2 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
299,306d258
< } 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
< } else {
< thisleft+=Math.floor(eval(eval(eval(screen.width * factorx) - eval(235 / factorx)) / eval(2 + eval(2 * thirteen + 1)))); // thirteen
< }
< }
309,310c261
< eval("oplist.push(windowopen('" + uis + "', '_blank', '" + hackString + "left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
< if (oplist[eval(-1 + oplist.length)]) {
---
> eval("oplist.push(window.open('" + uis + "', '_blank', '" + hackString + "left=" + thisleft + ",top=" + thistop + ",width=20,height=20'))");
316d266
< }
319,334d268
< if (!oplist[0]) {
< owidth=eval('' + eval('' + opltlistl[1]) - eval('' + opltlistl[0]));
< oheight=eval('' + eval('' + opltlistt[9]) - eval('' + opltlistt[0]));
< 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 (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:');
< } 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('; } ', ',linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)),url(//www.rjmprogramming.com.au/rjmquiz_plus.jpg); } '); // + ' ' + owidth + ' ' + oheight
< document.head.innerHTML+=defstyle;
< } else if (oplist[0]) {
339d272
< }
341d273
< if (oplist[0]) {
343,345d274
< } else {
< examinescore();
< }
351c280,281
< }
---
> if (1 == 6) {
> document.title=String.fromCodePoint(eval(location.search.split('spcp=')[1] ? location.search.split('spcp=')[1].split('&')[0] : defstcp)); //'🂾';
353,378c283,285
< 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 + '.');
---
> for (ij=0; ij if (spcps[ij].indexOf('' + eval(location.search.split('spcp=')[1] ? location.search.split('spcp=')[1].split('&')[0] : defstcp)) == 0) {
> ji=ij;
380,383d286
< 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;
385,405d287
< 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();
< }
< }
407,427c289,297
< 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 (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);
< }
< }
---
> if (ji >= 0) {
> document.head.innerHTML+="";
>
> fi=document.createElement('link');
> fi.rel='icon';
> fi.href=cards[ji];
>
> document.head.appendChild(fi);
>
429,447d298
< 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';
449,520d299
< }
< examinescore();
< }
<
< function popupsim(zkq, zkl) {
< aminmiddle=false;
< for (var ihj=0; ihj html { background:URL('" + cards[zkl] + "'); background-size:contain; background-repeat:no-repeat; } ";
< if (zkq != lastzkq || zkl != lastzkl) {
< lastzkq=zkq;
< lastzkl=zkl;
< pa();
< }
< }
<
<
< function clickedmaybe() {
< if (('' + iourx) != '-1' && ('' + ioury) != '-1') {
< if (!oplist[0]) {
< console.log('here at x=' + iourx + ' and y=' + ioury + ' ' + opltlistl[0] + ',' + opltlistt[0]);
< for (var iuh=0; iuh= eval('' + opltlistl[iuh]) && eval('' + ioury) >= eval('' + opltlistt[iuh])) {
< 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 windowopen(one, two, three) {
< if (document.URL.indexOf('onewindow=') != -1 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
< console.log('Here ' + kq);
< opltlistl.push((three.split('left=')[1].split(',')[0].split(')')[0].split('.')[0] + '.' + one.split('spcp=')[1].split('&')[0]));
< opltlistt.push((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('width=')[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) + '; } '; // + ' ' + 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(' + 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) + '; } '; // + ' ' + 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('; } ', ',url(' + cards[eval('' + donelist[eval(0 + ijk)])] + ') ' + (' ' + ('' + opltlistl[eval(-1 + opltlistl.length)]).split('.')[0] + 'px ' + ('' + opltlistt[eval(-1 + opltlistt.length)]).split('.')[0] + '' + 'px').substring(0,1) + '; } '); // + ' ' + owidth + ' ' + oheight
< }
< //console.log('defstyle=' + defstyle);
< //document.head.innerHTML+=defstyle;
< return null;
< }
< return window.open(one, two, three);
692,695c471
< 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,'')) {
---
> if (retv != '') {
714,717c490
< 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,'')) {
---
> if (retv != '') {
840,841c613
< if ((force || document.title.indexOf(':') == -1) && dts.length != 1) {
< if (force) { force=false; }
---
> if (document.title.indexOf(':') == -1 && dts.length != 1) {
882d653
< //alert('new player');
1010c781
< document.head.innerHTML+=defstyle; //"";
---
> document.head.innerHTML+="";
1029,1121d799
< 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);
< //}
< 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;
< }
< clickedmaybe();
< //alert('here');
< });
< }
< }
< }
< }
<
1123,1125d800
< if (secs == 0) {
< setTimeout(blater, 2500);
< }
1130,1141d804
< } 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);
< }