Wednesday, 30 September 2009

html

$$$$!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
$$$$html xmlns="http://www.w3.org/1999/xhtml">
$$$$head>
££££$$$$meta http-equiv="content-type" content="text/html; charset=utf-8"/>
££££$$$$title>Geography One$$$$/title>
££££$$$$script src="../googleAnalytics.js" type="text/javascript">$$$$/script>
$$$$script src="http://maps.google.com/maps?file=api&v=2&" type="text/javascript">$$$$/script>
££££$$$$script type"text/javascript">
££££££££window.onload=initialize;
££££££££window.onunload=GUnload;

££££££££var gdir;
££££££££var secs;
££££££££var addrFile;
££££££££var linesLength;
££££££££var count;
££££££££var elapse;
££££££££var lines = [];
££££££££var secsOut = [];
££££££££
££££££££function initialize() {
££££££££££££if (GBrowserIsCompatible()) {
££££££££££££££££gdir = new GDirections();
££££££££££££££££GEvent.addListener(gdir, "load", secsOnDirLoad);
££££££££££££££££GEvent.addListener(gdir, "error", handleErrors);

££££££££££££}
££££££££}

££££££££function begin(type) {
££££££££££££addrFile = document.getElementById("addr1").value;
££££££££££££lines = IO(addrFile).split(/\r?\n/g);
££££££££££££count = -1;
££££££££££££linesLength = lines.length;
££££££££££££x = setDirections();
££££££££}
££££££££
££££££££function setDirections() {
££££££££££££count = count + 1;
££££££££££££if (count $$$$ linesLength) {
££££££££££££££££alert(lines[count]);
££££££££££££££££elapsed = new Date();
££££££££££££££££gdir.load(lines[count]);
££££££££££££}
££££££££££££if (count == linesLength) {
££££££££££££££££var testOut = ""
££££££££££££££££for (i=0;i$$$$secsOut.length;i++) {
££££££££££££££££££££testOut = testOut + secsOut[i] + "$$$$br >";
££££££££££££££££}
££££££££££££££££££££var anElement = document.getElementById("theOutput");
££££££££££££££££££££if (anElement){
££££££££££££££££££££££££anElement.innerHTML = testOut;
££££££££££££££££££££}
££££££££££££££££££££alert("Done");
££££££££££££}
££££££££}

££££££££function secsOnDirLoad() {
££££££££££££secs = new String(gdir.getDuration().seconds);
££££££££££££secsOut[count] = secs;
££££££££££££pausExec(2000)
££££££££££££alert(secsOut[count]);££££
££££££££££££x = setDirections();
££££££££}

££££££££function pausExec(millis) {
££££££££££££var curTime = null;

££££££££££££do { curTime = new Date(); }
££££££££££££while(curTime-elapsed $$$$ millis);
££££££££}

££££££££function IO(U, V) {
££££££££ var X = !window.XMLHttpRequest ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
££££££££ X.open(V ? 'PUT' : 'GET', U, false );
££££££££ X.setRequestHeader('Content-Type', 'text/html')
££££££££ X.send(V ? V : '');
££££££££££££return X.responseText;
££££££££}

££££££££function handleErrors() {
££££££££££££££££alert("An error occurred.\n Error code: " + gdir.getStatus().code);
££££££££}


$$$$/script>

$$$$/head>
$$$$body>
££££$$$$form name="inForm" >
££££$$$$table>
££££$$$$tr>
££££££££$$$$td style="vertical-align:top;">
££££££££££££$$$$div id="doSomething" style="text-align:left; margin: 1em 1em;" >
££££££££££££££££$$$$p>File: $$$$input type="text" size="50" id="addr1" name="from" value="U:\"/>$$$$/p>
££££££££££££££££$$$$input name="submit" type="submit" value=" Go " onclick='begin("addr"); return false;' />
££££££££££££$$$$/div>
££££££££££££$$$$div id="theOutput">$$$$/div>
££££££££$$$$/td>
££££££££$$$$td>
££££££££$$$$/td>
££££$$$$/tr>
££££$$$$/table>
££££$$$$/form>
$$$$/body>

$$$$/html>

This message is confidential and the information must not be used, disclosed, or copied to any other person who is not entitled to receive it. If you have received this message in error please notify the sender and then delete it.


The original of this email was scanned for viruses by the Government Secure Intranet virus scanning service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2009/09/0052.) On leaving the GSi this email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.

No comments:

Post a Comment