222c222
< $ifmaybe="";
---
> $ifmaybe="";
229,232c229,232
< $qlabels='"' . $qone . '","Tongue Twisters","Haiku","Animal Categorization","Vocabulary Phrases","Hangman","Survey"';
< $qarrays='"questions","tongue_twisters","haiku","animal_categorization","vocabulary","hangman","survey"';
< $qdelims='"?","~","`","`","`","`","?"';
< $qcols='"yellow","lightgreen","lightblue","lightgray","pink","cyan","orange"';
---
> $qlabels='"' . $qone . '","Tongue Twisters","Haiku","Animal Categorization","Vocabulary Phrases","Survey"';
> $qarrays='"questions","tongue_twisters","haiku","animal_categorization","vocabulary","survey"';
> $qdelims='"?","~","`","`","`","?"';
> $qcols='"yellow","lightgreen","lightblue","lightgray","pink","orange"';
339,344d338
< var woo=null;
< var perr=false;
<
< var clue='';
<
< var curplayer=1;
356d349
< var hangman=[""];
398,433d390
<
< function lookforend() {
< if (document.getElementById('shangman')) {
< if (document.getElementById('shangman').innerHTML == '') {
< setTimeout(lookforend,2000);
< } else {
< scores[0]+=eval(document.getElementById('shangman').innerHTML.replace('Score:','').replace('/',',').replace(' ','').split(',')[0]);
< scores[1]+=eval(document.getElementById('shangman').innerHTML.replace('Score:','').replace('/',',').replace(' ','').split(',')[1]);
< document.getElementById('score').innerHTML='Score: ' + scores[0] + '/' + scores[1];
< document.getElementById('shangman').innerHTML='';
< curplayer=eval(3 - curplayer);
< pickq();
< }
< }
< }
<
< function cluey(swhatshort) {
< document.getElementById('ihangman').src="//www.rjmprogramming.com.au/HTMLCSS/hangman_bg.html?curplayer=" + curplayer + "&tosolve=" + encodeURIComponent(swhatshort) + "&clue=" + encodeURIComponent(clue);
< }
<
< 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=" + curplayer + "&tosolve=" + encodeURIComponent(swhatshort) + "&clue=" + encodeURIComponent(clue);
< } else {
< document.getElementById('dhangman').innerHTML='