6,66c6
<
---
>
138d77
< //alert(fromo.options[fromo.selectedIndex].title);
264,266c203
< if (pt != tablestuff) {
< document.getElementById('result').innerHTML=tablestuff;
< }
---
> if (pt != tablestuff) document.getElementById('result').innerHTML=tablestuff;
273d209
< document.getElementById('result').title='Timezone and Latitude and Longitude and Trip Planner functionalities';
330c266
< var pk, pktwo, gpk, gpktwo, thisregion=document.getElementById('region').value;
---
> var pk, pktwo, thisregion=document.getElementById('region').value;
360,361d295
< gpk=pk[1].split('"GMT" : "');
< gpktwo=gpk[1].split('"');
363c297
< placet.push(pktwo[0].replace("−", "-") + ":" + tpl[0].replace(afters[0] + '/', '') + ":" + gpktwo[0].replace("−", "-") + ":" + afters[0]);
---
> placet.push(pktwo[0].replace("−", "-") + ":" + tpl[0].replace(afters[0] + '/', ''));
365c299
< placet.push(thistimezone.replace("−", "-") + ":" + tpl[0].replace(afters[0] + '/', '') + ":" + gpktwo[0].replace("−", "-") + ":" + afters[0]);
---
> placet.push(thistimezone.replace("−", "-") + ":" + tpl[0].replace(afters[0] + '/', ''));
368c302
< placet.push(thistimezone.replace("−", "-") + ":" + tpl[0].replace(afters[0] + '/', '') + ":" + gpktwo[0].replace("−", "-") + ":" + afters[0]);
---
> placet.push(thistimezone.replace("−", "-") + ":" + tpl[0].replace(afters[0] + '/', ''));
543,544c477
< document.getElementById('result').innerHTML=wasresult;
< document.getElementById('result').title='Timezone and Latitude and Longitude and Trip Planner functionalities';
---
> document.getElementById('result').innerHTML=wasresult;
562,571d494
< function dc(chuh, subclass) {
< var retval="";
< if (subclass == 'hour' && chuh.length == 1) chuh='0' + chuh;
< for (var iy=0; iy';
< }
< //alert(retval);
< return retval;
< }
<
579,583d501
< var vst=document.getElementById('timezone').value;
< var vsr=document.getElementById('region').value;
< var tries=300;
< var ok=false;
< var numis, pbits;
586,588c504,505
< while (!ok) {
< numis=Math.floor(Math.random() * placet.length);
< pbits=placet[numis].split(':');
---
> var numis=Math.floor(Math.random() * placet.length);
> var pbits=placet[numis].split(':');
593,622d509
< if ((pbits.length > 2 && vst != "") || (pbits.length > 3 && vsr != "")) {
< if (pbits.length > 3 && vsr != "") {
< //document.title='Region try ' + vsr.toLowerCase() + " vs " + pbits[3].toLowerCase();
< if (vsr.toLowerCase() != pbits[3].toLowerCase()) {
< ok=false;
< } else {
< ok=true;
< if (pbits[2].length == vst.length && pbits[2].replace("−", "-") == vst.replace("−", "-") && vst != "") {
< //document.title='Timezone okay';
< ok = true;
< } else if (vst != "") {
< //document.title='Timezone fail';
< ok = false;
< }
< }
< } else if (vst != "") {
< if (pbits[2].length == vst.length && pbits[2].replace("−", "-") == vst.replace("−", "-") && vst != "") {
< //document.title='Timezone Okay';
< ok = true;
< } else if (vst != "") {
< //document.title='Timezone Fail';
< ok = false;
< }
< }
< } else {
< ok=true;
< }
< if (!ok) tries--;
< if (tries == 0) ok=true;
< }
625,629d511
< var t;
<
< if (eval(tries) <= 0) {
< t = setTimeout(startTime, 500);
< } else {
639,640c521,522
< document.getElementById('result').innerHTML = "
| " + placebit + " | " + dc("" + h, 'hour') + ": | " + dc("" + m, 'minute') + ": | " + dc("" + s, 'second') + "
";
< t = setTimeout(startTime, 500);
---
> document.getElementById('result').innerHTML = "
" + placebit + h + ":" + m + ":" + s + "
";
> var t = setTimeout(startTime, 500);
643d524
< }
720c601
<
---
>