6d5 < var localtz=Intl.DateTimeFormat().resolvedOptions().timeZone; 9,11d7 < var toggler=0, togspans=[]; < var defoffset=11; < var holdyourhorses=false; 75,126d70 < function spanize() { < var jspan=0; < if (eval('' + togspans.length) == 0) { < togspans=document.getElementsByTagName('span'); < } < if (!holdyourhorses) { < if (toggler == 0) { < toggler=1; < for (jspan=0; jspan') == -1) { < togspans[jspan].innerHTML=togspans[jspan].getAttribute('data-local'); < togspans[jspan].title=togspans[jspan].getAttribute('data-gmt'); < } < } < } else { < toggler=0; < for (jspan=0; jspan') == -1) { < togspans[jspan].innerHTML=togspans[jspan].getAttribute('data-gmt'); < togspans[jspan].title=togspans[jspan].getAttribute('data-local'); < } < } < } < } < setTimeout(spanize, 10000); < } < < function crlftospacing(insg) { < var outsg=insg; < var thingos=outsg.split('~~'); < for (var ijh=1; ijh
'); < } < while (outsg.indexOf(String.fromCharCode(13) + String.fromCharCode(10)) != -1) { < outsg=outsg.replace(String.fromCharCode(13) + String.fromCharCode(10), '
'); < } < while (outsg.indexOf(String.fromCharCode(13)) != -1) { < outsg=outsg.replace(String.fromCharCode(13), '
'); < } < //while (outsg.indexOf(String.fromCharCode(10) + String.fromCharCode(10)) != -1) { < // outsg=outsg.replace(String.fromCharCode(10) + String.fromCharCode(10), '
'); < //} 148,175c74 < outsg=outsg.replace(String.fromCharCode(10), '
'); < } < var saysatarr=outsg.split(' says at '); < for (var ij=1; ij' + thisgmtdt + ' '); < spancounter++; < //} else { < //alert('2:' + saysatarr[ij]); < } < } else if (4 == 4) { // new Date(milliseconds + 4*3600*1000 ... thanks to https://stackoverflow.com/questions/1050720/how-to-add-hours-to-a-date-object 12/12/2025 23 < thisgmtdt=saysatarr[ij].split(' GMT ')[0] + ' GMT'; < // Australia/Sydney stuff to follow < mdate=new Date(thisgmtdt.substring(6).substring(0,4) + "-" + thisgmtdt.substring(3).substring(0,2) + "-" + thisgmtdt.substring(0,2) + "T" + thisgmtdt.substring(11).substring(0,2) + ":" + thisgmtdt.substring(14).substring(0,2) + ":00"); < mmdate=new Date(mdate.getTime() + eval(defoffset * 3600 * 1000)); < thislocdt=daynames[eval('' + mmdate.getDay())] + ' ' + monthnames[eval('' + mmdate.getMonth())] + ' ' + ('0' + mmdate.getDate()).slice(-2) + ' ' + mmdate.getFullYear() + ' ' + ('0' + mmdate.getHours()).slice(-2) + ':' + + ('0' + mmdate.getMinutes()).slice(-2) + ":00 GMT 1100 (Australian Eastern Standard Time)"; < //alert(mmdate + ' ' + mdate + ' ' + thislocdt); < outsg=outsg.replace(' ' + thisgmtdt + ' ', ' ' + thisgmtdt + ' '); < spancounter++; < } < //} else if (saysatarr[ij].indexOf(' ...') != -1) { < // alert(saysatarr[ij]); < } --- > outsg=outsg.replace(String.fromCharCode(10), '
'); 177c76 < return '' + outsg.replace(/\\\\<\/span\>\\\<\/span\>\\/g, '
').replace(/\<\/a\>/g,' ') + ''; --- > return outsg; 538,539d436 < document.getElementById('localtz').value=localtz; < document.getElementById('localdt').value=('' + new Date()); 548,549d444 < < setTimeout(spanize, 2000);