8,30c8
< #nw { text-shadow: 1px 1px 2px #2d2f15; padding: 5 15 15 5; }
<
< button:active {
< border: 5px dotted pink;
< }
<
< button:focus {
< border: 5px dashed pink;
< }
<
< input:placeholder-shown {
< background-color: ivory;
< border: 2px solid darkorange;
< border-radius: 5px;
< }
<
< input[type=password]:empty {
< background-color: #f9f9f9;
< border: 2px solid orange;
< border-radius: 5px;
< }
<
< input[type=password] { font-size: 24px; background-color: white !important; }
---
> input[type=password] { font-size: 24px; }
246d223
< var four='4';
252d228
< var littlew='';
266d241
< var nogolist=',pshav,';
277d251
< var ready=true;
288,314d261
< const prompt = (inone, intwo) => {
< var retvalis=null;
< var outone='' + inone.trim();
< if (('' + inone).indexOf(' (containing ') != -1) {
< if ((' ' + outone).slice(-1) == '.') { outone+=' A'; } else { outone+=' and a'; }
< retvalis=window.prompt('' + outone + ' non-blank answer will do a dictionary search for ' + versus + ' if you like.', intwo);
< if (retvalis == null) { retvalis=''; }
< if (retvalis.trim() != '') { window.open('//www.thefreedictionary.com/' + versus.toLowerCase(),'_blank','top=200,left=200,width=600,height=600'); }
< return retvalis;
< }
< return window.prompt('' + inone, '' + intwo);
< };
<
<
< const alert = (inone) => {
< var retvalis=null;
< var outone='' + inone.trim();
< if (('' + inone).indexOf(' (containing ') != -1) {
< if ((' ' + outone).slice(-1) == '.') { outone+=' A'; } else { outone+=' and a'; }
< retvalis=ourprompt('' + outone + ' non-blank answer will do a dictionary search for ' + versus + ' if you like.', '');
< if (retvalis == null) { retvalis=''; }
< if (retvalis.trim() != '') { window.open('//www.thefreedictionary.com/' + versus.toLowerCase(),'_blank','top=200,left=200,width=600,height=600'); }
< return retvalis;
< }
< return window.alert('' + inone);
< };
<
412c359
< if (1 == 3) { document.getElementById('myh3').innerHTML='RJM Programming - December, 2022'; }
---
> document.getElementById('myh3').innerHTML='RJM Programming - December, 2022';
475c422
< document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=' + four + '&max=8' + littlew + '&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
---
> document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=4&max=8&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
497,501d443
< if (eval(-1 + glfrom.length) < 4) {
< four='' + eval(-1 + glfrom.length);
< } else {
< four='4';
< }
520,522c462,464
< document.getElementById('nw').innerHTML=' ' + letterlist + ' ';
< document.getElementById('pwd1').placeholder='word with '.slice(-1) + letterlist;
< document.getElementById('pwd2').placeholder='word with '.slice(-1) + letterlist;
---
> document.getElementById('nw').innerHTML=letterlist;
> document.getElementById('pwd1').placeholder='word with ' + letterlist;
> document.getElementById('pwd2').placeholder='word with ' + letterlist;
526,527c468,469
< document.getElementById('pwd1').placeholder='word with '.slice(-1) + letterlist;
< document.getElementById('pwd2').placeholder='word with '.slice(-1) + letterlist;
---
> document.getElementById('pwd1').placeholder='word with ' + letterlist;
> document.getElementById('pwd2').placeholder='word with ' + letterlist;
535c477
< return 'word with '.slice(-1) + letterlist;
---
> return 'word with ' + letterlist;
539d480
< if (!ready) { setTimeout(scorevs,1000); return ''; }
555c496
< alert('Word (containing ' + letterlist + ') we were thinking of, at first, was ' + versus);
---
> alert('Word we were thinking of, at first, was ' + versus);
601c542
< alert('Well done, ' + player1 + ', scoring ' + subscore[1] + ' for ' + vsone + ' (containing ' + letterlist + ') and well done, ' + player2 + ', scoring ' + subscore[2] + ' for ' + vstwo + '.');
---
> alert('Well done, ' + player1 + ', scoring ' + subscore[1] + ' for ' + vsone + ' and well done, ' + player2 + ', scoring ' + subscore[2] + ' for ' + vstwo + '.');
622c563
< anans=prompt('Well done, ' + player2 + ', scoring ' + subscore[2] + ' for ' + vstwo + ' ( containing ' + letterlist + ' ). And, ' + player1 + ', if you are sure of your ' + vsone + ' word, we are willing to award you ' + subscore[1] + ' if you answer Y.', '');
---
> anans=prompt('Well done, ' + player2 + ', scoring ' + subscore[2] + ' for ' + vstwo + '. And, ' + player1 + ', if you are sure of your ' + vsone + ' word, we are willing to award you ' + subscore[1] + ' if you answer Y.', '');
645c586
< alert('Well done, ' + player2 + ', scoring ' + subscore[2] + ' for ' + vstwo + ' (containing ' + letterlist + ').');
---
> alert('Well done, ' + player2 + ', scoring ' + subscore[2] + ' for ' + vstwo + '.');
666c607
< anans=prompt('Well done, ' + player1 + ', scoring ' + subscore[1] + ' for ' + vsone + ' ( containing ' + letterlist + ' ). And, ' + player2 + ', if you are sure of your ' + vstwo + ' word, we are willing to award you ' + subscore[2] + ' if you answer Y.', '');
---
> anans=prompt('Well done, ' + player1 + ', scoring ' + subscore[1] + ' for ' + vsone + '. And, ' + player2 + ', if you are sure of your ' + vstwo + ' word, we are willing to award you ' + subscore[2] + ' if you answer Y.', '');
688c629
< alert('Well done, ' + player1 + ', scoring ' + subscore[1] + ' for ' + vsone + ' (containing ' + letterlist + ').');
---
> alert('Well done, ' + player1 + ', scoring ' + subscore[1] + ' for ' + vsone + '.');
692c633
< alert('Compare ' + vsone + ' (out of the running) to ' + vstwo + ' (out of the running) ... Word (containing ' + letterlist + ') which we were thinking of, at first, was ' + versus);
---
> alert('Compare ' + vsone + ' (out of the running) to ' + vstwo + ' (out of the running) ... Word we were thinking of, at first, was ' + versus);
698c639
< document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=' + four + '&max=8' + littlew + '&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
---
> document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=4&max=8&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
704c645
< if (initsec <= finsec) { document.getElementById('myprogress').value='' + initsec; }
---
> document.getElementById('myprogress').value='' + initsec;
708,719c649
< ready=true;
< if (!valid[1] && vsone.trim() != '') {
< ready=false;
< setTimeout(scorevs, eval(-11000 + 12000));
< checkword(vsone, -1);
< } else if (!valid[2] && vstwo.trim() != '') {
< ready=false;
< setTimeout(scorevs, eval(-5000 + 6000));
< checkword(vstwo, -2);
< } else {
< scorevs();
< }
---
> if (!valid[1] && vsone.trim() != '') { checkword(vsone, -1); setTimeout(scorevs, 12000); } else if (!valid[2] && vstwo.trim() != '') { checkword(vstwo, -2); setTimeout(scorevs, 6000); } else { scorevs(); }
741,744d670
< if (nogolist.indexOf(',' + getletters(bconto.body.innerHTML).toLowerCase() + ',') != -1 || eval('' + bconto.body.innerHTML.length) < 3) {
< iois.src=iois.src+='&huh' + Math.floor(Math.random() * 19878654) + '=y';
< return '';
< }
781c707
< document.getElementById('numletters').innerHTML='English ' + ((document.URL.indexOf('little=') != -1) ? 'beginner word' : 'word') + ' with ' + getblurbw(versus.length + ' letters') + '
';
---
> document.getElementById('numletters').innerHTML='English ' + getblurbw(versus.length + ' letter word') + '
';
953c879
< document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=' + four + '&max=8' + littlew + '&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
---
> document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=4&max=8&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
1081c1007
< document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=' + four + '&max=8' + littlew + '&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
---
> document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=4&max=8&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
1099d1024
< ready=false;
1101,1103c1026
< return '';
< }
< ready=true;
---
> }
1114,1115c1037
< //zhr.open('get', '/PHP/surprise.php?min=4&max=8' + littlew + '&youllneverfindthis=y&hastobe=' + ww.toLowerCase(), true);
< zhr.open('get', '/PHP/surprise.php?min=' + four + '&max=8&youllneverfindthis=y&hastobehard=' + ww.toLowerCase() + '&hastobe=' + ww.toLowerCase(), true);
---
> zhr.open('get', '/PHP/surprise.php?min=4&max=8&youllneverfindthis=y&hastobe=' + ww.toLowerCase(), true);
1120c1042
< zform.append('min', four);
---
> zform.append('min', '4');
1123d1044
< zform.append('hastobehard', ww.toLowerCase());
1125,1127d1045
< //if (littlew != '') {
< // zform.append('littlewords', 'y');
< //}
1275c1193
< document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=' + four + '&max=8' + littlew + '&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
---
> document.getElementById('myiframehastobe').src='/PHP/surprise.php?min=4&max=8&youllneverfindthis=y'; // + '&hastobe=' + wordguess.toLowerCase();
1312,1320d1229
< littlew=location.search.split('little=')[1] ? '&littlewords=y' : '';
< if (littlew != '') {
< document.getElementById('aeasy').href=document.URL.replace('little=', 'big=');
< document.getElementById('aeasy').title='Harder words';
< //document.getElementById('myiframehastobe').src=document.getElementById('myiframehastobe').src.replace('&', littlew + '&');
< //document.getElementById('myiframe').src=document.getElementById('myiframe').src.replace('&', littlew + '&');
< } else {
< document.getElementById('aeasy').href=((document.URL).split('#')[0] + '&little=y').replace('.html&', '.html?').replace('.htm&', '.htm?').replace('.php&', '.php?').replace('/&', '/?').replace('/LettersIn&', '/LettersIn?');
< }
1443d1351
< if (document.getElementById('pwd2').value.trim() != '') {
1445d1352
< document.getElementById('pwd2').setAttribute('data-answeris', vstwo);
1450,1451d1356
< pfocus();
< }
1453d1357
< if (document.getElementById('pwd1').value.trim() != '') {
1455d1358
< document.getElementById('pwd1').setAttribute('data-answeris', vsone);
1459,1460d1361
< pfocus();
< }
1470c1371
<