6,7d5 < var notsofast=true; < var nextq=-1; 68c66 < uprefix.replace('?title=','?title=GB' + encodeURIComponent(';')) + "&guess=Belfast&question=" + encodeURIComponent("Which airport would you get to to see The Giant Staircase?") + "&data=%20[~Liverpool~,66],%20[~Manchester~,66],%20[~Belfast~,66],%20[~London~,66],%20[~Glasgow~,66]", --- > uprefix.replace('?title=','?title=GB' + encodeURIComponent(';')) + "&guess=Belfast%20City&question=" + encodeURIComponent("Which airport would you get to to see The Giant Staircase?") + "&data=%20[~Liverpool~,66],%20[~Manchester~,66],%20[~Belfast~,66],%20[~London~,66],%20[~Glasgow~,66]", 86c84 < uprefix + "&guess=Vanuatu&question=" + encodeURIComponent("Which of these countries is in the Pacific Ocean?") + "&data=%20[~Jamaica~,66],%20[~Trinidad%20and%20Tobago~,66],%20[~Cuba~,66],%20[~Iceland~,66],%20[~Bermuda~,66],%20[~Vanuatu~,66],%20[~Sri Lanka~,66],%20[~Seychelles~,66],%20[~Ireland~,66],%20[~Cyprus~,66],%20[~Malta~,66],%20[~Madagascar~,66]", --- > uprefix + "&guess=Vanuatu&question=" + encodeURIComponent("Which of these countries is in the Pacific Ocean?") + "&data=%20[~Jamaica~,60],%20[~Trinidad and Tobago~,66],%20[~Cuba~,66],%20[~Iceland~,66],%20[~Bermuda~,66],%20[~Vanuatu~,66],%20[~Sri Lanka~,66],%20[~Seychelles~,66],%20[~Ireland~,66],%20[~Cyprus~,66],%20[~Malta~,66],%20[~Madagascar~,66]", 124,135d121 < function ourprompt(blurb, def) { < var ourps=''; < if (notsofast) { < document.getElementById('message').innerHTML=''; < return 'ourps=prompt(blurb, def)'; < } else { < document.getElementById('message').innerHTML='

' + blurb + '


'; < notsofast=true; < } < return ourps; < } < 142d127 < notsofast=false; 148c133 < document.getElementById('mydiv').innerHTML=document.getElementById('mydiv').innerHTML.split('
')[0] + '
'; --- > document.getElementById('mydiv').innerHTML=document.getElementById('mydiv').innerHTML.split('
')[0] + '
'; 173,179d157 < function filliframe() { < document.getElementById('message').innerHTML=''; < document.getElementById('myquiziframe').style.display='block'; < document.getElementById('myquiziframe').src=url_array[thisq]; < lastq=thisq; < } < 181,185d158 < var opret=''; < if (nextq >= 0) { < thisq=nextq; < nextq=-1; < } else { 189d161 < } 193,198d164 < cscore='Score: 0/0'; < document.getElementById('score').innerHTML=cscore; < filliframe(); < } else { < opret=ourprompt(decodeURIComponent(url_array[thisq].split('&question=')[1].split('&')[0]),decodeURIComponent(url_array[thisq].split('&guess=')[1].split('&')[0])); < if (opret != '') filliframe(); 200,268c166,168 < //document.getElementById('myquiziframe').style.display='block'; < //document.getElementById('myquiziframe').src=url_array[thisq]; < //lastq=thisq; < } < < function premapthis(cv) { < var vbit, ibit, sbits, selbitis=document.getElementById('ccode').innerHTML.replace(/value='/g,'value=').replace(/value="/g,'value=').toUpperCase(); < if (cv != '') { < //alert(selbitis); < if (selbitis.indexOf(' VALUE=' + cv.toUpperCase()) != -1) { < sbits=document.getElementById('ccode').innerHTML.replace(/value='/g,'value=').replace(/value="/g,'value=').split(' value=' + cv.toUpperCase()); < if (sbits[1].indexOf(' - ') != -1) { < ibit=sbits[1].split(' - ')[1].split('<')[0]; < document.getElementById('icountry').value=ibit.replace("~","'"); < } < } < } < } < < function mapthis(cv) { < var vbit, ibit, sbits, selbitis=document.getElementById('ccode').innerHTML.toUpperCase(); < if (cv != '') { < if (selbitis.indexOf(' - ' + cv.toUpperCase()) != -1) { < sbits=selbitis.split(' - ' + cv.toUpperCase()); < ibit=document.getElementById('ccode').innerHTML.substring(eval(sbits[0].length + 3)).split('<')[0]; < vbit=sbits[0].split(' VALUE=')[eval(-1 + sbits[0].split(' VALUE=').length)].replace("'",'').replace("'",' ').replace('"','').replace('"',' ').replace('>',' ').split(' ')[0]; < document.getElementById('ccode').value=vbit; < //alert(ibit + ' vs ' + cv); < if (ibit != cv) document.getElementById('icountry').value=ibit.replace("~","'"); < } < } < } < < function addthis() { < var retval="", things, ithings; < var ccountry=document.getElementById('icountry').value; < var ccode=document.getElementById('ccode').value; < var ccity=document.getElementById('icity').value; < var clist=document.getElementById('ilist').value; < var cquestion=document.getElementById('iquestion').value; < < if (ccity != '') { < if (clist.toLowerCase().indexOf(ccity.toLowerCase()) == -1) { < return retval; < } < } else if (clist.toLowerCase().indexOf(ccountry.toLowerCase()) == -1) { < return retval; < } < if (cquestion == '') return retval; < things=clist.split(','); < retval="&data=%20[~" + encodeURIComponent(things[0]) + "~,66]"; < for (ithings=1; ithings <
<

Your Worldwide Country Quiz

--- > >
>

Your Worldwide Country Quiz

277,533c177,178 <
<

Score: 0/0 Thanks to pixabay for today's background image.

<
< --- >

Score: 0/0

>