39c39
< #span::after {
---
> span::after {
93,115d92
< var wlens=10;
< var wlenb=20;
< var vocabulary=[""];
< var hangman=[""];
< var mode=0;
< var clue='';
< var maxanyone=7;
<
< var ihangman=0;
< var hangmanc=[
< " document.getElementById('dhangman').innerHTML+='
🙂
'; ",
< " document.getElementById('hr77').click(); document.getElementById('hr137').click(); ",
< " document.getElementById('hr119').click(); document.getElementById('hr77').click(); ",
< " document.getElementById('hr131').click(); document.getElementById('hr77').click(); ",
< " document.getElementById('hr137').click(); document.getElementById('hr234').click(); ",
< " document.getElementById('hr137').click(); document.getElementById('hr246').click(); ",
< " document.getElementById('hr235').click(); document.getElementById('hr256').click(); ",
< " document.getElementById('hr260').click(); document.getElementById('hr256').click(); ",
< " document.getElementById('hr230').click(); document.getElementById('hr235').click(); ",
< " document.getElementById('hr235').click(); document.getElementById('hr20').click(); ",
< " document.getElementById('hr290').style.display='none'; document.getElementById('hr260').click(); document.getElementById('hr235').click(); document.getElementById('phead').innerHTML='🤢'; document.getElementById('dhangman').innerHTML+='🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀
'; "
< ];
<
201c178
< if (('' + location.hash).indexOf('blank') == -1 && ('' + location.hash).indexOf('hangman') == -1 && ('' + location.hash).indexOf('square') == -1 && ('' + location.hash).indexOf('grid') == -1) {
---
> if (('' + location.hash).indexOf('blank') == -1 && ('' + location.hash).indexOf('square') == -1 && ('' + location.hash).indexOf('grid') == -1) {
215,217d191
< } else if (('' + location.hash).indexOf('hangman') != -1) {
< zero=0;
< location.href=document.URL.split('#')[0].split('?')[0] + '?wording=' + encodeURIComponent('Hangman Game') + '&question=%20' + location.hash;
238d211
< if (mode != 5) {
252c225
< }
---
>
257d229
< if (mode != 5) {
277d248
< }
311c282
< if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('hangman') != -1) {
---
> if (('' + location.hash).indexOf('blank') != -1) {
315c286
< if (bpointsx.length >= 4 && ('' + location.hash).indexOf('blank') != -1) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
---
> if (bpointsx.length >= 4) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
325c296
< if (bpointsx.length >= 4 && ('' + location.hash).indexOf('blank') != -1) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
---
> if (bpointsx.length >= 4) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
339c310
< if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('hangman') != -1) {
---
> if (('' + location.hash).indexOf('blank') != -1) {
343c314
< if (bpointsx.length >= 4 && ('' + location.hash).indexOf('blank') != -1) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
---
> if (bpointsx.length >= 4) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
353c324
< if (bpointsx.length >= 4 && ('' + location.hash).indexOf('blank') != -1) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
---
> if (bpointsx.length >= 4) { dobezier(bpointsx[0],bpointsy[0],bpointsx[1],bpointsy[1],bpointsx[2],bpointsy[2],bpointsx[3],bpointsy[3]); }
445,450d415
< if (('' + location.hash).indexOf('hangman') != -1) {
< if (('' + location.hash).indexOf('.') != -1) {
< goes=eval(('' + location.hash).split('.')[1]);
< score=eval(('' + location.hash).split('.')[0].split('hangman')[1]);
< }
< }
454c419
< if (document.URL.indexOf('?') == -1 && ('' + location.hash).indexOf('blank') == -1 && ('' + location.hash).indexOf('hangman') == -1 && ('' + location.hash).indexOf('square') == -1 && ('' + location.hash).indexOf('grid') == -1) { pickone(inqis); } else if (document.URL.indexOf('?') == -1 && (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('hangman') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1)) { inqis=' '; pickone(inqis); }
---
> if (document.URL.indexOf('?') == -1 && ('' + location.hash).indexOf('blank') == -1 && ('' + location.hash).indexOf('square') == -1 && ('' + location.hash).indexOf('grid') == -1) { pickone(inqis); } else if (document.URL.indexOf('?') == -1 && (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1)) { inqis=' '; pickone(inqis); }
464c429
< if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('hangman') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1) {
---
> if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1) {
501c466
< //if (hrcnt == 134 || hrcnt == 146) { alert(vdval + ' hr' + hrcnt + ': ' + thisv + ' ... ' + vstr); } // ?
---
> if (hrcnt == 134 || hrcnt == 146) { alert(vdval + ' hr' + hrcnt + ': ' + thisv + ' ... ' + vstr); }
556c521
< if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('hangman') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1) {
---
> if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1) {
567c532
< if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('hangman') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1) {
---
> if (('' + location.hash).indexOf('blank') != -1 || ('' + location.hash).indexOf('square') != -1 || ('' + location.hash).indexOf('grid') != -1) {
635c600
< document.getElementById('myh3').innerHTML = document.getElementById('myh3').innerHTML.replace(" - "," - Tracing Square Line Drawing Chinese Brain Twisters Vertex Pointing Game Square Pointing Game Grid Pointing Game Hangman Game ");
---
> document.getElementById('myh3').innerHTML = document.getElementById('myh3').innerHTML.replace(" - "," - Tracing Square Line Drawing Chinese Brain Twisters Vertex Pointing Game Square Pointing Game Grid Pointing Game ");
645d609
< if (('' + location.hash).indexOf('hangman') != -1) { playhangman(); }
649,660d612
< function playhangman() {
< if (vocabulary[0] == '') {
< mode=5;
< //alert('hangman');
< document.getElementById('imyword').src='//www.rjmprogramming.com.au/PHP/surprise.php?min=' + eval(1 + 10) + '&max=' + eval(1 + 20) + '&phrase=y&youllneverfindthis=y' + Math.floor(Math.random() * 134567);
< } else {
< mode=5;
< document.getElementById('imyword').src='//www.rjmprogramming.com.au/PHP/surprise.php?min=' + eval(1 + 10) + '&max=' + eval(1 + 20) + '&phrase=y&youllneverfindthis=y' + Math.floor(Math.random() * 134567);
< //alert(vocabulary[0]);
< }
< }
<
662c614
< if ((document.URL.split('#')[0] + location.hash) != tvi) { if (('' + tvi).replace('hangman','blank').indexOf('blank') != -1) { location.href=tvi; } else { location.href=tvi.replace('.htm#','.htm?rand=' + Math.floor(Math.random() * 123456) + '#').replace('.html#','.html?rand=' + Math.floor(Math.random() * 123456) + '#'); } }
---
> if ((document.URL.split('#')[0] + location.hash) != tvi) { location.href=tvi; }
701,800d652
< function maybeontop(swhat,swhatshort) {
< //alert(mode + ' swhatshort=' + swhatshort);
< if (mode == 5) { // hangman
< document.getElementById('sq').style.display='none';
< //alert(' ');
< document.getElementById('ontopsq').innerHTML=' ';
< if (document.getElementById('ihangman')) {
< document.getElementById('ihangman').src="//www.rjmprogramming.com.au/HTMLCSS/hangman_bg.html?curplayer=1&tosolve=" + encodeURIComponent(swhatshort) + "&clue=" + encodeURIComponent(clue);
< } else {
< document.getElementById('dhangman').innerHTML='
';
< document.getElementById('dhangman').style.display='block';
< }
< lookforend();
< }
< return swhat;
< }
<
< function handon() {
< location.href=document.URL.split('#')[0].split('?')[0] + '#hangman' + score + '.' + goes;
< }
<
< function hguess(gthis,othis) {
< var ifnd=0, fnd=false, newval='';
< for (ifnd=0; ifnd= hangmanc.length) {
< goes++;
< newval='';
< for (ifnd=0; ifnd' + vocabulary[0].substring(ifnd,eval(1 + ifnd)) + '';
< } else {
< newval+=document.getElementById('sletters').innerHTML.substring(ifnd,eval(1 + ifnd));
< }
< }
< document.getElementById('sletters').innerHTML=newval;
< document.getElementById('sletters').title=vocabulary[0];
< setTimeout(handon, 5000);
< } else if (document.getElementById('sletters').innerHTML.indexOf('_') != -1) {
< } else {
< score+=document.getElementById('sletters').innerHTML.length;
< goes++;
< setTimeout(handon, 5000);
< }
< }
<
< function checkwi(iois) {
< var okay=true, hiddenv='', hletters=' ', letters=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
< if (iois != null) {
< try {
< var aconto = (iois.contentWindow || iois.contentDocument);
< if (aconto != null) {
< if (aconto.document) { aconto = aconto.document; }
< if (aconto.body != null) {
< vocabulary[0] = aconto.body.innerHTML.replace('','').replace('','');
< if (vocabulary[0].indexOf('-') != -1) { okay=false; }
< if (mode == 5) {
< for (var iji=0; iji' + '' + '';
< }
< for (var ii=0; iiScore: ' + score + '/' + goes + ' Hint: ' + '' + hiddenv + ' ' + hletters;
< //document.getElementById('qh4').innerHTML=hletters;
< }
< hangman[0] = maybeontop('', vocabulary[0]);
< var ws=vocabulary[0].split(' ');
< for (var iws=0; iws maxanyone) { okay=false; }
< }
< //if (mode == 4) questions[0] = vocabulary[0];
< }
< }
< } catch(ee) {
< if (vocabulary[0] == '' && mode == 5) { okay=false; }
< }
< }
< //if (!okay) { document.getElementById('imyword').src='//www.rjmprogramming.com.au/PHP/surprise.php?min=' + eval(1 + wlens) + '&max=' + eval(1 + wlenb) + '&phrase=y&youllneverfindthis=y' + Math.floor(Math.random() * 134567); }
< if (!okay) { document.getElementById('imyword').src='../PHP/surprise.php?min=' + eval(1 + wlens) + '&max=' + eval(1 + wlenb) + '&phrase=y&youllneverfindthis=y' + Math.floor(Math.random() * 134567); }
< }
<
823,824d674
<
<