22d21 < var qx=0, qy=0, qlastx=0, qlasty=0; 27,33d25 < var xlworld = 'world'; < var xuworld = 'World'; < var xuubits=document.URL.split('.htm'); < var xuuubits=xuubits[0].split('/'); < xlworld=xuuubits[eval(-1 + xuuubits.length)]; < xuworld=xlworld.substring(0,1).toUpperCase() + xlworld.substring(1); < 36a29,69 > function capture(toh, tos, toe) { > if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { > if (document.getElementById('myiemail').value.indexOf('@') == -1) { > var femail = prompt('Please supply the Email To address', ''); > if (femail == null) femail = ''; > if (femail.indexOf('@') != -1) { > fixmyemail(femail, 0); > } > } > } else { > if (document.getElementById('myiemail').value.indexOf('@') != -1) { > document.getElementById('mode').value = ''; > document.getElementById('ismobile').value = 'y'; > document.getElementById('myisubject').style.display = 'inline'; > document.getElementById('myiemail').style.display = 'inline'; > document.getElementById('myform').action = document.getElementById('myform').action.replace('?mode=1', ''); > document.getElementById('myform').action = document.getElementById('myform').action.replace('mode=1', 'mode='); > //document.getElementById('myemail').href = '#' + document.getElementById('myemail').href; > } > } > var pretoh = elem.toDataURL("image/png",0); > //toh.value = pretoh.substr(22, pretoh.length); > var xbits=pretoh.split(','); > //toh.value = pretoh.substr(eval(pretoh.indexOf(',') + 1), pretoh.length); > //alert(xbits[0]); > toh.value = pretoh.replace(xbits[0] + ',', ''); > if (1 == 1) { > tos.click(); > } else { > document.getElementById('myform').submit(); > } > var things = document.URL.split("?"); > toe.href = toe.href + (things[0] + "/~").replace("world.html/~", document.getElementById('myfname').value).replace("index.html/~", document.getElementById('myfname').value).replace("//~", "/" + document.getElementById('myfname').value).replace("/~", "/" + document.getElementById('myfname').value); > if (document.getElementById('to').value.indexOf('@') != -1 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { > toe=toe; > } else { > toe.click(); > } > } > > 65,72c98 < var huh=""; < if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < huh=huh; < } else { < if (document.URL.indexOf('?') == -1) { < huh=prompt("If you've zoomed your window, please answer Y and then click on London to scale. Then click away at places where you want to go.", ""); < } < } --- > var huh=prompt("If you've zoomed your window, please answer Y and then click on London to scale. Then click away at places where you want to go.", ""); 83,184d108 < < function couldbe() { < < var name1='', name2=''; < < qy = location.search.split('lat=')[1] ? eval(location.search.split('lat=')[1].split('&')[0]) : 0; < qx = location.search.split('long=')[1] ? eval(location.search.split('long=')[1].split('&')[0]) : 0; < if (eval(qx) == 0 && eval(qy) == 0) { < qy = location.search.split('lat1=')[1] ? eval(location.search.split('lat1=')[1].split('&')[0]) : 0; < qx = location.search.split('long1=')[1] ? eval(location.search.split('long1=')[1].split('&')[0]) : 0; < } < if (document.URL.indexOf('2=0000.0') == -1) { < qlasty = location.search.split('lat2=')[1] ? eval(location.search.split('lat2=')[1].split('&')[0]) : 0; < qlastx = location.search.split('long2=')[1] ? eval(location.search.split('long2=')[1].split('&')[0]) : 0; < } < < if (eval(qx) != 0 || eval(qy) != 0) { < name1 = location.search.split('name=')[1] ? location.search.split('name=')[1].split('&')[0] : ''; < name1 = location.search.split('name1=')[1] ? location.search.split('name1=')[1].split('&')[0] : name1; < ourlat = qy; < ourlong = qx; < qx = eval(eval(ourlong) / 147.325 * eval((348.0 * (londonx / london_x))) + eval(londonx)); < qy = eval((eval(ourlat) - eval(51.5)) / (-94.3806) * eval((257.0 * (londony / london_y))) + eval(londony)); < if (context != null) { < context.strokeStyle='red'; //element.colour; < context.fillStyle='yellow'; //element.colour; < context.fillRect(qx, qy, 5,5); < if (name1 != '') { < context.strokeStyle='blue'; //element.colour; < context.font = "16px Verdana"; //cf; < context.strokeText(decodeURIComponent(name1),eval(qx + 7), eval(qy + 7)); < } < context.strokeStyle='red'; //document.getElementById('mycolour').value; < } < } < if (eval(qlastx) != 0 || eval(qlasty) != 0) { < name2 = location.search.split('name2=')[1] ? location.search.split('name2=')[1].split('&')[0] : ''; < ourlat = qlasty; < ourlong = qlastx; < qlastx = eval(eval(ourlong) / 147.325 * eval((348.0 * (londonx / london_x))) + eval(londonx)); < qlasty = eval((eval(ourlat) - eval(51.5)) / (-94.3806) * eval((257.0 * (londony / london_y))) + eval(londony)); < context.fillStyle='yellow'; //element.colour; < context.fillRect(qlastx, qlasty, 5,5); < if (name2 != '') { < if (context != null && name2 != '') { < context.strokeStyle='blue'; //document.getElementById('mycolour').value; < context.font = "16px Verdana"; //cf; < context.strokeText(decodeURIComponent(name2),eval(qlastx + 7), eval(qlasty + 7)); < } < context.strokeStyle='red'; //document.getElementById('mycolour').value; < } < } < < if ((qx != qlastx || qy != qlasty) && (Math.abs(qlastx) > 0.00001 || Math.abs(qlasty) > 0.00001)) { < if (document.getElementById('divannotation')) document.getElementById('divannotation').style.display='block'; < if (document.getElementById('divannotation')) document.getElementById('myisubject').style.display = 'inline'; < if (document.getElementById('divannotation')) document.getElementById('myiemail').style.display = 'inline'; < < if (context != null) { < var three=2; < while ((qx != qlastx || qy != qlasty) && (Math.abs(qlastx) > 0.00001 || Math.abs(qlasty) > 0.00001)) { < context.fillStyle='yellow'; //element.colour; < context.fillRect(qlastx, qlasty, 5,5); < if (name2 != '') { < if (context != null && name2 != '') { < context.strokeStyle='blue'; //document.getElementById('mycolour').value; < context.font = "16px Verdana"; //cf; < context.strokeText(decodeURIComponent(name2),eval(qlastx + 7), eval(qlasty + 7)); < } < context.strokeStyle='red'; //document.getElementById('mycolour').value; < } < < context.fillStyle='red'; //element.colour; < context.strokeStyle='red'; //document.getElementById('mycolour').value; < context.beginPath(); < context.moveTo(qx,qy); < context.lineTo(qlastx,qlasty); < context.stroke(); < qx=qlastx; < qy=qlasty; < three++; < qlasty = location.search.split('lat' + three + '=')[1] ? eval(location.search.split('lat' + three + '=')[1].split('&')[0]) : 0; < qlastx = location.search.split('long' + three + '=')[1] ? eval(location.search.split('long' + three + '=')[1].split('&')[0]) : 0; < name2 = location.search.split('name' + three + '=')[1] ? location.search.split('name' + three + '=')[1].split('&')[0] : ''; < if (qlastx != 0 || qlasty != 0) { < ourlat = qlasty; < ourlong = qlastx; < qlastx = eval(eval(ourlong) / 147.325 * eval((348.0 * (londonx / london_x))) + eval(londonx)); < qlasty = eval((eval(ourlat) - eval(51.5)) / (-94.3806) * eval((257.0 * (londony / london_y))) + eval(londony)); < } < } < < < < } < } < < //x=0; < //y=0; < //lastx=0; < //lasty=0; < } 197c121 < if (document.getElementById('myfname')) document.getElementById('myfname').value = xlworld + "_" + yyyy + "_" + mm + "_" + hh + "_" + minm + "_" + ss + ".png"; --- > if (document.getElementById('myfname')) document.getElementById('myfname').value = "world_" + yyyy + "_" + mm + "_" + hh + "_" + minm + "_" + ss + ".png"; 296d219 < couldbe(); 366a290 > 375,376c299,300 <

World Clickaround


< --- >

World Clickaround


>