6,9c6,9 < var qs=["Which countries comprise Indochina?|Which countries border the Gulf of Thailand?", < "Which are primary colours?|Which are secondary colours?", < "In order which are 6th, 7th and 8th longest rivers in the world?|In order which are 1st, 2nd and 3rd longest rivers in the world?", < "How many in a baker's dozen?|What is the base number of hexidecimal numbers?", --- > var qs=["Which countries comprise Indochina?", > "Which are primary colours?", > "In order which are 6th, 7th and 8th longest rivers in the world?", > "How many in a baker's dozen?", 11c11 < "Which of these capital cities are South American ones?|Which of these capital cities are European ones?", --- > "Which of these capital cities are South American ones?", 14,17c14,17 < "That's odd?!|Feel like getting even?!", < "Which cloud types can result in drizzle?|Which cloud types result in no precipitation?", < "Of the main taxonomic ranks below which categorizes Homo?|Of the main taxonomic ranks below which categorizes Cnidaria?", < "Which set of three consecutive rock types are Metamorphic rocks?|Which set of three consecutive rock types are Sedimentary rocks?|Which set of three consecutive rock types are Igneous rocks?", --- > "That's odd?!", > "Which cloud types can result in drizzle?", > "Of the main taxonomic ranks below which categorizes Homo?", > "Which set of three consecutive rock types are Metamorphic rocks?", 32,35c32,35 < var as=["Cambodia, Laos, Myanmar, Thailand, Vietnam|Thailand, Vietnam, Cambodia", < "yellow, blue, red|orange, purple, green", < "Yellow,ParanĂ¡,Congo|Nile,Amazon,Yangtze", < "13|16", --- > var as=["Cambodia, Laos, Myanmar, Thailand, Vietnam", > "yellow, blue, red", > "Yellow,ParanĂ¡,Congo", > "13", 37c37 < "Montevideo, Caracas, Lima, Georgetown, Sucre|Paris, Copenhagen", --- > "Montevideo, Caracas, Lima, Georgetown, Sucre", 40,43c40,43 < "15, 81, 9, 63, 33, 21, 45, 31|72, 84, 38, 42, 14, 88, 56", < "Stratocumulus, Stratus|Cirrus, Cirrocumulus, Cirrostratus", < "genus|phylum or division", < "slate, marble, schist|limestone, sandstone, shale|pumice, gabbro, granite" --- > "15, 81, 9, 63, 33, 21, 45, 31", > "Stratocumulus, Stratus", > "genus", > "slate, marble, schist" 46d45 < var repeated=false; 54,55d52 < var zero=0, zeroes=[0]; < var snum=1; 61,77c58,59 < if (('' + zeroes.length) == '0') { < document.getElementById('score').innerHTML='Score: ' + score + '/' + goes + suffix; < gmlist=''; < document.getElementById('answer').size='1'; < document.getElementById('answer').innerHTML=savedih; < validcall=false; < inthegame=false; < pickq(); < return ''; < } < var answs=gmlist.split(','); < var rw=[]; < var i=-1; < for (var ijk=0; ijk if (gmlist.toLowerCase() == document.getElementById('answer').getAttribute('data-title').toLowerCase().replace(/\ /g,'')) { > score+=eval('' + document.getElementById('answer').getAttribute('data-title').toLowerCase().split(',').length); 79,83c61,65 < } else if (document.getElementById('answer').getAttribute('data-title').split('|')[zeroes[zero]].toLowerCase().indexOf(' ') != -1 && eval(1 + ijk) == eval('' + zeroes.length)) { < rw=(',' + document.getElementById('answer').getAttribute('data-title').split('|')[zeroes[zero]] + ',').replace(/\,\ /g,','); < for (i=0; i } else if (document.getElementById('answer').getAttribute('data-title').toLowerCase().indexOf(' ') != -1) { > var answs=gmlist.split(','); > var rw=document.getElementById('answer').getAttribute('data-title'); > for (var i=0; i rw=rw.replace(answs[i], ''); 85,87c67,68 < //alert(rw.replace(/\,/g, '').replace(/\ /g, '')); < if (rw.replace(/\|/g, '').replace(/\,/g, '').replace(/\ /g, '') == '' && eval(1 + ijk) == eval('' + zeroes.length)) { < score+=eval('' + document.getElementById('answer').getAttribute('data-title').split('|')[zeroes[zero]].toLowerCase().replace(/\|/g,',').split(',').length); --- > if (rw.replace(/\,/g, '').replace(/\ /g, '') == '') { > score+=eval('' + document.getElementById('answer').getAttribute('data-title').toLowerCase().split(',').length); 91,94d71 < if (eval(1 + ijk) == eval('' + zeroes.length)) { < zero=zeroes[eval(1 + ijk)]; < } < } 132d108 < //document.getElementById('answer').setAttribute('data-title', wor(as[apick])); 135,186c111 < document.getElementById('theq').innerHTML=maybesel(qs[apick]); < } < < function wor(ap) { < var thingos=ap.replace(/\ /g,'').replace(/\|/g,',').split(','); < var sofara=',' + thingos[0] + ','; < repeated=false; < for (var iij=1; iij'; < for (var isel=0; isel', ''); < seltd=''; < } < //alert(seloh); < return seloh; < } < } < < function oureval(sin) { < zero=-1; < zeroes=[]; < for (var i=0; i 1) { < document.getElementById('answer').setAttribute('data-title', wor(document.getElementById('answer').getAttribute('data-title'))); < } < return zero; --- > document.getElementById('theq').innerHTML=qs[apick]; 189,234d113 < function without(zl) { < if (document.getElementById('selt')) { < if (('' + zeroes.length) == ('' + document.getElementById('selt').size)) { < //alert('before: ' + document.getElementById('answer').getAttribute('data-title')); < if (document.getElementById('answer').getAttribute('data-title').indexOf(',') == -1) { < document.getElementById('answer').setAttribute('data-title',wor(document.getElementById('answer').getAttribute('data-title').replace(/\|/g, ', '))); < } else if (document.getElementById('answer').getAttribute('data-title').indexOf(' ') != -1) { < document.getElementById('answer').setAttribute('data-title',wor(document.getElementById('answer').getAttribute('data-title').replace(/\|/g, ', '))); < } else { < document.getElementById('answer').setAttribute('data-title',wor(document.getElementById('answer').getAttribute('data-title').replace(/\|/g, ','))); < } < //alert('afeter: ' + document.getElementById('answer').getAttribute('data-title')); < zl=1; < zero=0; < zeroes=[zero]; < } else if (eval('' + zeroes.length) > 1) { < var dgis='', dgdelim=','; < //alert('Before: ' + document.getElementById('answer').getAttribute('data-title')); < if (document.getElementById('answer').getAttribute('data-title').indexOf(',') == -1) { < dgdelim=', '; //document.getElementById('answer').setAttribute('data-title',document.getElementById('answer').getAttribute('data-title').replace(/\|/g, ', ')); < } else if (document.getElementById('answer').getAttribute('data-title').indexOf(' ') != -1) { < dgdelim=', '; //document.getElementById('answer').setAttribute('data-title',document.getElementById('answer').getAttribute('data-title').replace(/\|/g, ', ')); < } else { < dgdelim=','; //document.getElementById('answer').setAttribute('data-title',document.getElementById('answer').getAttribute('data-title').replace(/\|/g, ',')); < } < for (var jj=0; jj var invl=invlo.value + '|'; 243c122 < if ((',' + gmlist.replace(/\ /g,'') + ',').indexOf(',' + invl.split('|')[0].replace(/\ /g,'') + ',') == -1) { --- > if (gmlist.indexOf(invl.split('|')[0]) == -1) { 250,253d128 < } else if (repeated) { < //alert('gmlist=' + gmlist); < isvalid=true; < gmlist+=',' + invl.split('|')[0]; 274d148 < //alert(1); 276,282c150 < adone=false; < if (sin.options[i].innerText.split(String.fromCodePoint(10004)).length > 1) { < if (sin.options[i].innerText.split(String.fromCodePoint(10004))[1].trim() != '') { < adone=true; < } < } < if (!adone) { sin.options[i].innerText=sin.options[i].innerText.split(String.fromCodePoint(10004))[0] + String.fromCodePoint(10004); } --- > sin.options[i].innerText=sin.options[i].innerText.split(String.fromCodePoint(10004))[0] + String.fromCodePoint(10004); 285,286c153 < //if (gmlist.indexOf((sin.options[i].value + '|').split('|')[0]) == -1) { < if ((',' + gmlist.replace(/\ /g,'') + ',').indexOf(',' + (sin.options[i].value + '|').split('|')[0].replace(/\ /g,'') + ',') == -1) { --- > if (gmlist.indexOf((sin.options[i].value + '|').split('|')[0]) == -1) { 292d158 < if ((sin.options[i].innerText + ' ').indexOf(' ' + gmlist.split(',').length + ' ') == -1) { 295,304d160 < //alert(3); < } < } else { < adone=false; < if (sin.options[i].innerText.split(String.fromCodePoint(10004)).length > 1) { < if (sin.options[i].innerText.split(String.fromCodePoint(10004))[1].trim() != '') { < adone=true; < } < } < //alert('adone=' + adone); 309d164 < //alert(2); 311,312d165 < //} else { < //alert(7); 314,322c167 < } else if (invl.indexOf(sin.options[i].value) == 0) { < adone=false; < if (sin.options[i].innerText.split(String.fromCodePoint(10004)).length > 1) { < if (sin.options[i].innerText.split(String.fromCodePoint(10004))[1].trim() != '') { < adone=true; < } < } < //alert('5:' + morethanone + ':' + invl + ' adone=' + adone + ' gmlist=' + gmlist); < } --- > } 327d171 < if ((invlo.innerText + ' ').indexOf(' ' + gmlist.split(',').length + ' ') == -1) { 329d172 < } 332d174 < //alert(8); 336d177 < //alert(9); 340d180 < //alert(0); 357c197 < --- >