41,57d40 < var numerator='', denominator='', operator='', operators=['+','-','*','/','%']; < var pluseq=1; < < var bonusmode=(document.URL.indexOf('bonus=') != -1 ? decodeURIComponent(document.URL.split('bonus=')[1].split('&')[0].split('#')).replace(/\+/g,' ') : ''); < var defq=(document.URL.indexOf('question=') != -1 ? decodeURIComponent(document.URL.split('question=')[1].split('&')[0].split('#')).replace(/\+/g,' ') : ''); < var defa=(document.URL.indexOf('answer=') != -1 ? decodeURIComponent(document.URL.split('answer=')[1].split('&')[0].split('#')).replace(/\+/g,' ') : ''); < var bcblurb=' At any answer append + modus operandi bonus Scoring Mode as per + is Extra Maths Question ++ is Extra Your Own Question.'; < if (bonusmode != '') { < if (eval('' + bonusmode.length) == 1) { < bcblurb=' Your game is set to Extra Maths Question modus operandi.'; < } else { < bcblurb=' Your game is set to Extra User Question modus operandi.'; < } < } < var blen=eval('' + bcblurb.length); < var invitb=''; < 255,261d237 < < function qanda() { < if (eval('' + bonusmode.length) > 0) { < return '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer')); < } < return ''; < } 266,345d241 < < function setbm(tow) { < bonusmode='' + tow; < if (eval('' + bonusmode.length) == 1) { < document.getElementById('hbonus').innerHTML='  Extra Maths questions  '; < document.getElementById('ibonus').title='Place extra Maths question here if you do not like this default one you use as bonus scoring question.'; < } else if (eval('' + bonusmode.length) == 2) { < document.getElementById('hbonus').innerHTML='  Extra User questions  '; < document.getElementById('ibonus').title='Place extra User question here if you do not like this default one you use as bonus scoring question.'; < } < } < < function xsim(osel) { < if (osel.value == '1') { < document.getElementById(osel.id.replace('c','h')).innerHTML='  Extra Maths questions  '; < bonusmode='x'; < document.getElementById('ibonus').title='Place extra Maths question here if you do not like this default one you use as bonus scoring question.'; < denominator=eval(-782 + eval('' + Math.floor(Math.random() * 1564))); < numerator=eval(-782 + eval('' + Math.floor(Math.random() * 1564))); < if (denominator == 0) { < operator=operators[Math.floor(Math.random() * 3)]; < } else { < if (eval(numerator % denominator) == 0) { < operator=operators[Math.floor(Math.random() * eval('' + operators.length))]; < } else { < operator=operators[Math.floor(Math.random() * 3)]; < } < } < if (defq != '') { < document.getElementById('myguess').setAttribute('data-question', defq); < document.getElementById('myguess').setAttribute('data-answer', (defa + ' ')); < defq=''; < defa=''; < } else { < document.getElementById('myguess').setAttribute('data-question', 'What is ' + numerator + ' ' + operator + ' ' + denominator + ' ?'); < document.getElementById('myguess').setAttribute('data-answer', '' + eval('' + numerator + ' ' + operator + ' ' + denominator)); < } < bcblurb=' '; < invitb='?bonus=x'; < document.getElementById('ibonus').placeholder=document.getElementById('myguess').getAttribute('data-question'); < if (woois) { < woois.setbm(bonusmode); < woois.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < woois.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } else if (window.opener) { < //alert(56); < window.opener.setbm(bonusmode); < window.opener.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < window.opener.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } < } else if (osel.value == '2') { < document.getElementById(osel.id.replace('c','h')).innerHTML='  Extra User questions  '; < bonusmode='xx'; < document.getElementById('ibonus').title='Place extra User question here if you do not like this default one you use as bonus scoring question.'; < if (defq != '') { < document.getElementById('myguess').setAttribute('data-question', defq); < document.getElementById('myguess').setAttribute('data-answer', (defa + ' ')); < defq=''; < defa=''; < } else { < document.getElementById('myguess').setAttribute('data-question', 'What year is it?'); < document.getElementById('myguess').setAttribute('data-answer', '' + new Date().getFullYear()); < } < bcblurb=' '; < invitb='?bonus=xx'; < document.getElementById('ibonus').placeholder=document.getElementById('myguess').getAttribute('data-question'); < if (woois) { < woois.setbm(bonusmode); < woois.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < woois.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } else if (window.opener) { < //alert(256); < window.opener.setbm(bonusmode); < window.opener.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < window.opener.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } < } < } < < 348,355c244 < var selbit='', jsel=0, bonusbit=''; < if (bonusmode == '') { < bonusbit='    '; < } else if (eval('' + bonusmode.length) == 1) { < bonusbit='  Extra Maths questions  '; < } else if (eval('' + bonusmode.length) == 2) { < bonusbit='  Extra User questions  '; < } --- > var selbit='', jsel=0; 362c251 < return selbit + bonusbit; --- > return selbit; 410,498d298 < function setdefq(tow) { < defq='' + tow; < } < < function setdefa(tow) { < defa='' + tow; < } < < function resetq(useforce) { < if (eval('' + bonusmode.length) == 0) { < bonusmode=(document.URL.indexOf('bonus=') != -1 ? decodeURIComponent(document.URL.split('bonus=')[1].split('&')[0].split('#')).replace(/\+/g,' ') : ''); < bcblurb=' At any answer append + modus operandi bonus Scoring Mode as per + is Extra Maths Question ++ is Extra Your Own Question.'; < if (bonusmode != '') { < if (eval('' + bonusmode.length) == 1) { < bcblurb=' Your game is set to Extra Maths Question modus operandi.'; < } else { < bcblurb=' Your game is set to Extra User Question modus operandi.'; < } < } < blen=eval('' + bcblurb.length); < invitb=''; < } < if (eval('' + bonusmode.length) == 1) { < denominator=eval(-782 + eval('' + Math.floor(Math.random() * 1564))); < numerator=eval(-782 + eval('' + Math.floor(Math.random() * 1564))); < if (denominator == 0) { < operator=operators[Math.floor(Math.random() * 3)]; < } else { < if (eval(numerator % denominator) == 0) { < operator=operators[Math.floor(Math.random() * eval('' + operators.length))]; < } else { < operator=operators[Math.floor(Math.random() * 3)]; < } < } < document.getElementById('ibonus').style.display='inline-block'; < document.getElementById('ibonus').title='Place extra Maths question here if you do not like this default one you use as bonus scoring question.'; < if (defq != '') { < document.getElementById('myguess').setAttribute('data-question', defq); < document.getElementById('myguess').setAttribute('data-answer', (defa + ' ')); < defq=''; < defa=''; < } else { < document.getElementById('myguess').setAttribute('data-question', 'What is ' + numerator + ' ' + operator + ' ' + denominator + ' ?'); < document.getElementById('myguess').setAttribute('data-answer', '' + eval('' + numerator + ' ' + operator + ' ' + denominator)); < } < if (document.getElementById('ibonus').placeholder != document.getElementById('myguess').getAttribute('data-question') || useforce) { < document.getElementById('ibonus').placeholder=document.getElementById('myguess').getAttribute('data-question'); < document.getElementById('ibonus').value=''; < } < bcblurb=' '; < invitb='?bonus=x'; < if (useforce) { < if (woois) { < woois.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < woois.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } else if (window.opener) { < window.opener.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < window.opener.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } < } < } else if (eval('' + bonusmode.length) == 2) { < document.getElementById('ibonus').title='Place extra User question here if you do not like this default one you use as bonus scoring question.'; < document.getElementById('ibonus').style.display='inline-block'; < if (defq != '') { < document.getElementById('myguess').setAttribute('data-question', defq); < document.getElementById('myguess').setAttribute('data-answer', (defa + ' ')); < defq=''; < defa=''; < } else { < document.getElementById('myguess').setAttribute('data-question', 'What year is it?'); < document.getElementById('myguess').setAttribute('data-answer', '' + new Date().getFullYear()); < } < if (document.getElementById('ibonus').placeholder != document.getElementById('myguess').getAttribute('data-question') || useforce) { < document.getElementById('ibonus').placeholder=document.getElementById('myguess').getAttribute('data-question'); < document.getElementById('ibonus').value=''; < } < bcblurb=' '; < invitb='?bonus=xx'; < if (useforce) { < if (woois) { < woois.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < woois.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } else if (window.opener) { < window.opener.setdefa(document.getElementById('myguess').getAttribute('data-answer')); < window.opener.setdefq(document.getElementById('myguess').getAttribute('data-question')); < } < } < } < } 519c319 < 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 + bcblurb, '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'); 522,570d321 < if (decis != null) { < if ((' ' + decis).slice(-1) == '+') { < bonusmode='x'; < document.getElementById('ibonus').title='Place extra Maths question here if you do not like this default one you use as bonus scoring question.'; < denominator=eval(-782 + eval('' + Math.floor(Math.random() * 1564))); < numerator=eval(-782 + eval('' + Math.floor(Math.random() * 1564))); < if (denominator == 0) { < operator=operators[Math.floor(Math.random() * 3)]; < } else { < if (eval(numerator % denominator) == 0) { < operator=operators[Math.floor(Math.random() * eval('' + operators.length))]; < } else { < operator=operators[Math.floor(Math.random() * 3)]; < } < } < if (defq != '') { < document.getElementById('myguess').setAttribute('data-question', defq); < document.getElementById('myguess').setAttribute('data-answer', (defa + ' ')); < defq=''; < defa=''; < } else { < document.getElementById('myguess').setAttribute('data-question', 'What is ' + numerator + ' ' + operator + ' ' + denominator + ' ?'); < document.getElementById('myguess').setAttribute('data-answer', '' + eval('' + numerator + ' ' + operator + ' ' + denominator)); < } < bcblurb=' '; < invitb='?bonus=x'; < if ((' ' + decis).slice(-2) == '++') { < bonusmode='xx'; < document.getElementById('ibonus').title='Place extra User question here if you do not like this default one you use as bonus scoring question.'; < if (defq != '') { < document.getElementById('myguess').setAttribute('data-question', defq); < document.getElementById('myguess').setAttribute('data-answer', (defa + ' ')); < defq=''; < defa=''; < } else { < document.getElementById('myguess').setAttribute('data-question', 'What year is it?'); < document.getElementById('myguess').setAttribute('data-answer', '' + new Date().getFullYear()); < } < bcblurb=' '; < invitb='?bonus=xx'; < decis=decis.replace(/\+\+$/g,''); < setbm(bonusmode); < } else { < decis=decis.replace(/\+$/g,''); < setbm(bonusmode); < } < document.getElementById('ibonus').placeholder=document.getElementById('myguess').getAttribute('data-question'); < } < } 613c364 < woois=window.open(document.URL.split('?')[0].split('#')[0] + '?itype=' + eval(1 + theiw) + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&blankatend=y', '_blank', 'top=50,left=50,width=' + eval(-100 + screen.width) + ',height=' + eval(-100 + screen.height)); --- > 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)); 632c383 < 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()) + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + encodeURIComponent(youare) + whataboutyourown('&itype=' + eval(1 + theiw)) + '&rand=' + Math.floor(Math.random() * 16754)); --- > 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)); 656c407 < anchor.href = 'sms:' + decis.trim() + '&body=' + encodeURIComponent(document.URL.split('?')[0].split('#')[0] + '?iam=' + encodeURIComponent(decis.trim()) + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + encodeURIComponent(youare) + whataboutyourown('&itype=' + eval(1 + theiw)) + '&rand=' + Math.floor(Math.random() * 19876754)); --- > 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)); 670c421 < window.open(document.URL.split('?')[0].split('#')[0] + '?iam=%40' + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + decis.trim() + '&rand=' + Math.floor(Math.random() * 1989675) + whataboutyourown('#itype=' + eval(1 + eval('' + theiw))), '_top'); --- > 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'); 675c426 < location.href=document.URL.split('?')[0].split('#')[0] + '?iam=%40' + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + decis.trim() + '&rand=' + Math.floor(Math.random() * 1989675) + whataboutyourown('#itype=' + eval(1 + eval('' + theiw))); --- > 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))); 716c467 < woois=window.open(document.URL.split('?')[0].split('#')[0] + '?itype=' + eval(1 + theiw) + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&blankatend=y', '_blank', 'top=50,left=50,width=' + eval(-100 + screen.width) + ',height=' + eval(-100 + screen.height)); --- > 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)); 729,730c480,481 < //alert('1:' + holdon + './clairvoyance_game.php?iam=' + encodeURIComponent(youare) + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + encodeURIComponent(otheris)); < document.getElementById('ifplay').src='./clairvoyance_game.php?iam=' + encodeURIComponent(youare) + (invitb != '' ? (invitb + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + encodeURIComponent(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); 732,733c483,484 < //alert('2:' + holdon + './clairvoyance_game.php?iam=' + encodeURIComponent(youare) + (invitb != '' ? (invitb.replace('?','&') + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + encodeURIComponent(otheris)); < document.getElementById('ifplay').src='./clairvoyance_game.php?iam=' + encodeURIComponent(youare) + (invitb.replace('?','&') != '' ? (invitb + '&question=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-question')) + '&answer=' + encodeURIComponent(document.getElementById('myguess').getAttribute('data-answer'))) : '') + '&playwith=' + encodeURIComponent(otheris); --- > //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); 775c526 < score+=pluseq; --- > score++; 778d528 < if (eval('' + bonusmode.length) > 1) { resetq(true); } 805,815d554 < if (document.getElementById('myguess').getAttribute('data-question') != '' || document.getElementById('myguess').getAttribute('data-answer') != '') { < //document.getElementById('sbonus').style.display='inline-block'; < document.getElementById('ibonus').style.display='inline-block'; < } < if (document.getElementById('yourguess').getAttribute('data-question') != '' || document.getElementById('yourguess').getAttribute('data-answer') != '') { < //document.getElementById('sbonus').style.display='inline-block'; < document.getElementById('ibonus').style.display='inline-block'; < } < if (defq != '' && eval('' + bonusmode.length) > 0) { < resetq(false); < } 937c676 < function washing(inscore,inq,ina) { --- > function washing(inscore) { 951,954d689 < if (('' + inq).replace(/^undefined/g,'').replace(/^null/g,'') != '') { < defq=decodeURIComponent(inq).replace(/\+/g,' ').replace(/\ \ \ /g,' + '); < defa=decodeURIComponent(ina).replace(/\+/g,' ').replace(/\ \ \ /g,' + '); < } 993,994c728,729 < 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) + qanda() + '&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) + qanda() + '&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); "); --- > 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); "); 1000c735 < document.getElementById('ifpiam').src=document.getElementById('ifpiam').src.split('?')[0] + '?pck=' + pck + '&to=' + encodeURIComponent(document.getElementById('otheris').value) + '¬=' + encodeURIComponent(document.URL) + qanda() + '&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); "); --- > 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); "); 1002c737 < document.getElementById('ifpiamtwo').src=document.getElementById('ifpiamtwo').src.split('?')[0] + '?pck=' + pck + '&to=' + encodeURIComponent(document.getElementById('iam').value) + '¬=' + encodeURIComponent(document.URL) + qanda() + '&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); "); --- > 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); "); 1008,1009c743 < score+=pluseq; < pluseq=1; --- > score++; 1014,1015d747 < score+=eval(-1 + pluseq); < pluseq=1; 1019,1023c751 < score+=pluseq; < pluseq=1; < } else { < score+=eval(-1 + pluseq); < pluseq=1; --- > score++; 1031d758 < if (eval('' + bonusmode.length) > 0) { resetq(true); } 1080,1081c807 < score+=pluseq; < pluseq=1; --- > score++; 1083,1084d808 < score+=eval(-1 + pluseq); < pluseq=1; 1087d810 < if (eval('' + bonusmode.length) > 0) { resetq(true); } 1164c887 < ds+=(""); 1166c889 < ds+=(""); --- > ds+=(""); 1169c892 < ds+=(""); --- > ds+=(""); 1729,1785d1451 < function getquestion() { < return '' + document.getElementById('myguess').getAttribute('data-question'); < } < < function getanswer() { < return '' + document.getElementById('myguess').getAttribute('data-answer'); < } < < function bonusask(inpo) { < var qisis='', nsol=''; < if (inpo.value != '') { < if (document.getElementById('tdstatus').innerHTML.indexOf('Select a ') == 0) { < qisis=inpo.value; < inpo.placeholder=qisis; < document.getElementById('myguess').setAttribute('data-question', '' + qisis); < inpo.value=''; < if (eval('' + bonusmode.length) == 1) { < document.getElementById('myguess').setAttribute('data-answer', ' '); < qisis=qisis.toLowerCase(); < qisis=qisis.replace(/^what\ is\ /g,''); < qisis=qisis.replace(/\?$/g,''); < if (qisis.trim() != '') { < try { < nsol=eval('' + qisis.trim()); < if (('' + nsol).replace(/^undefined/g,'').replace(/^NaN/g,'').replace(/^null/g,'').trim() != '') { < document.getElementById('myguess').setAttribute('data-answer', '' + nsol); < } < } catch(erdf) { < } < } < } else if (eval('' + bonusmode.length) == 2) { < document.getElementById('myguess').setAttribute('data-answer', ' '); < } < if (('' + document.getElementById('myguess').getAttribute('data-answer')).trim() == '') { < nsol=prompt('So, what would be a suitable and precise answer for player partner to answer with?', ''); < if (nsol != null) { < if (nsol.trim() != '') { < document.getElementById('myguess').setAttribute('data-answer', '' + nsol); < } < } < } < } else if (('' + document.getElementById('myguess').getAttribute('data-answer')).trim() != '') { // (document.getElementById('tdstatus').innerHTML.indexOf('Select a ') == 0) { < if (('' + inpo.value).trim().toLowerCase() == ('' + document.getElementById('myguess').getAttribute('data-answer')).toLowerCase()) { < pluseq+=2; < pluseq+=Math.floor(Math.random() * 3); < } else { < pluseq=-1; < } < if (eval('' + bonusmode.length) == 1) { < document.getElementById('myguess').setAttribute('data-answer', ' '); < } else if (eval('' + bonusmode.length) == 2) { < document.getElementById('myguess').setAttribute('data-answer', ' '); < } < } < } < } < 1818c1484 <

Score: 0/0

         

--- >

Score: 0/0

1829,1830c1495,1496 < < --- > > 1872d1537 < if (document.URL.indexOf('bonus=') != -1 && document.URL.replace('bonus=#','bonus=&').indexOf('bonus=&') == -1) { resetq(true); } 1879c1544 < document.write(""); 1881c1546 < document.write(""); --- > document.write(""); 1884,1885c1549 < if (document.URL.indexOf('bonus=') != -1 && document.URL.replace('bonus=#','bonus=&').indexOf('bonus=&') == -1) { resetq(true); } < document.write(""); --- > document.write("");