FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow file textShow revision historyShow/hide recent activityInformation
//depot/projects/wardrive-map/map.html

Diffs between #2 and #3

@@ -25,8 +25,18 @@
2525 return new ActiveXObject("Microsoft.XMLHTTP");
2626 }
2727
28 function makeMarker(p, html) {
29 var m = new GMarker(p);
28 function pin(color) {
29 var icon = new GIcon();
30 icon.image = "icons/" + color + ".png";
31 icon.iconSize = new GSize(12, 20);
32 icon.iconAnchor = new GPoint(6, 20);
33 icon.infoWindowAnchor = new GPoint(5, 1);
34 return icon;
35 }
36 var openPin = pin("green"), wepPin = pin("red");
37
38 function makeMarker(p, icon, html) {
39 var m = new GMarker(p, icon);
3040 GEvent.addListener(m, "click", function() { m.openInfoWindowHtml(html); });
3141 return m;
3242 }
@@ -41,7 +51,8 @@
4151 parseFloat(nets[i].getAttribute("lat")));
4252 var html = "<b>" + nets[i].getAttribute("ssid") + "</b><br/>ch " +
4353 nets[i].getAttribute("chan");
44 map.addOverlay(makeMarker(p, html));
54 var icon = nets[i].getAttribute("wep") == "1" ? wepPin : openPin;
55 map.addOverlay(makeMarker(p, icon, html));
4556 }
4657 document.getElementById("status").innerHTML = nets.length + " networks";
4758 };

P4Web/LINUX26X86/2005.1/82295 · Copyright © 1995-2005 Perforce Software · ttul.org