22a23 > 24d24 < $alturlis="//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=CITYGOESHERE&onclick=y&width=149&height=97&country=City&popularity=Intensity&aregeographicals=y&guess=&data=%20[LAT|LONG|~CITYGOESHERE~,1]%20"; 41d40 < $what=str_replace("Czech Republic", "Czechia", $what); 146d144 < $ctyisotwo=str_replace("Czech Republic", "Czechia", $ctyisotwo); 208,211d205 < $latcol=-1; < $longcol=-1; < $latis=""; < $longis=""; 221,228d214 < if ($latcol == -1 && substr(($hbits[$i] . " "),0,3) == "lat") { < $latcol=$i; < if (substr(($hbits[1 + $i] . " "),0,1) == "l") { < $longcol=(1 + $i); < } else if (substr(($hbits[-1 + $i] . " "),0,1) == "l") { < $longcol=(-1 + $i); < } < } 232,235d217 < if ($longcol >= 0 && $latcol >= 0) { < $latis="|" . str_replace('"','',explode(",",$bits[$i])[$latcol]) . ","; < $longis=str_replace('"','',explode(",",$bits[$i])[$longcol]); < } 238c220 < $citiesarr[sizeof($citiesarr)]=str_replace('"','',explode('","',$bits[$i])[$citycol]) . $latis . $longis; --- > $citiesarr[sizeof($citiesarr)]=str_replace('"','',explode('","',$bits[$i])[$citycol]); 240c222 < $citiesarr[sizeof($citiesarr)]=explode(",",$bits[$i])[$citycol] . $latis . $longis; --- > $citiesarr[sizeof($citiesarr)]=explode(",",$bits[$i])[$citycol]; 368,369c350 < global $citiesarr, $countriesarr, $alturlis; < $thisurlis=""; --- > global $citiesarr, $countriesarr; 377,380d357 < if (strpos($citiesarr[$i], "|") !== false) { // geodata there < $thisurlis=" data-hinturl='" . str_replace('CITYGOESHERE', urlencode(explode("|",$citiesarr[$i])[0]), str_replace('LAT', explode(",",explode("|",$citiesarr[$i])[1])[0], str_replace('LONG', explode(",",explode("|",$citiesarr[$i])[1])[1], $alturlis))) . "'"; < $ret=str_replace("", "", $ret); < } else { 382d358 < } 420c396 < score++; document.getElementById('score').innerHTML='Score: ' + score + ' Goes: ' + goes + '
'; --- > score++; document.getElementById('score').innerHTML='Score: ' + score + ' Goes: ' + goes; 426c402 < document.getElementById('score').innerHTML='Score: ' + score + ' Goes: ' + goes + ' '; --- > document.getElementById('score').innerHTML='Score: ' + score + ' Goes: ' + goes; 469,473d444 < if (('' + ois.getAttribute('data-hinturl')).replace(/^null$/g,'').replace(/\+/g,' ') != '') { < document.getElementById('dhint').innerHTML=' ❓'; < } else { < document.getElementById('dhint').innerHTML=''; < } 476,478d446 < function iframehint(oisgetAttributedatahinturl) { < document.getElementById('dhint').innerHTML=''; < } \n 506c474 < var optl=[], joptl=0, jdone=false, findings='', findingsd='', lendiff='', lendiffd='', pfix='', ppfix='', ppdo=true; --- > var optl=[], joptl=0, jdone=false, findings='', findingsd='', lendiff='', lendiffd='', pfix='', ppfix=''; 508,512c476 < if (event.keyCode == 63) { < if (document.getElementById('hinta')) { < document.getElementById('hinta').click(); < } < } else if (event.keyCode >= 65 && event.keyCode <= 90) { --- > if (event.keyCode >= 65 && event.keyCode <= 90) { 521d484 < ppdo=false; 530,531c493 < } < if (ppdo) { --- > } else { 561d522 < document.getElementById('thcountry').innerHTML='Country'; 587c548 < if (optl[joptl].value != '' && (ppfix + optl[joptl].innerHTML.toLowerCase()).indexOf(kbsofar.toLowerCase()) == 0 && ('' + optl[joptl].outerHTML).indexOf(' data-iso=') != -1) { --- > if (optl[joptl].value != '' && (ppfix + optl[joptl].innerHTML.toLowerCase()).indexOf(kbsofar.toLowerCase()) == 0 && ('' + optl[joptl].outerHTML).indexOf(' data-') != -1) { 611d571 < document.getElementById('thcountry').innerHTML='Country'; 639c599 <