cvs: presentations /slides/intro php_world.xml
| From: | Rasmus Lerdorf | Date: | Wed, 24 Oct 2007 14:17:42 +0000 |
| Subject: | cvs: presentations /slides/intro php_world.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1436@lists.php.net to get a copy of this message | ||
rasmus Wed Oct 24 14:17:42 2007 UTC
Modified files:
/presentations/slides/intro php_world.xml
Log:
Show the code
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_world.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/intro/php_world.xml
diff -u presentations/slides/intro/php_world.xml:1.1 presentations/slides/intro/php_world.xml:1.2
--- presentations/slides/intro/php_world.xml:1.1 Wed Oct 24 14:11:52 2007
+++ presentations/slides/intro/php_world.xml Wed Oct 24 14:17:42 2007
@@ -1,7 +1,8 @@
<slide title="World">
<break lines="1" />
-<example hide="1" result="1" fontsize="1.4em"
rfontsize="1em" marginright="0em" marginleft="1.5em"
type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script>
+<example result="1" fontsize="1.2em" rfontsize="1em"
marginright="0em" marginleft="1.5em"
type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script>
<script type="text/javascript" src="http://lerdorf.com/ymap_canvas_fix.js"></script>
+
<div id="jsmapContainer" style="height: 600px; width:
980px;"></div>
<div id="buttonContainer" style="padding: 0.5em;">
<form>
@@ -17,14 +18,16 @@
<input type="button" id="3" value="Sunnyvale"
onclick="mark('Sunnyvale, CA');"></input>
</form>
</div>
+
<script type="text/javascript">
+var markers = new Array();
+var first = 1;
+var last = null;
var Pin = new YImage();
Pin.src = 'http://www.lerdorf.com/red_pin.png';
Pin.size = new YSize(32,27);
Pin.offset = new YCoordPoint(1,4);
-var markers = new Array();
-var first = 1;
-var last = '';
+
var geoDone = function(o) {
jsmap.panToLatLon(o.GeoPoint);
if(!first) {
@@ -33,7 +36,8 @@
}
first = 0;
last = o.GeoPoint;
-}
+};
+
var mark = function(loc) {
if(!markers[loc]) {
jsmap.addOverlay(new YMarker(loc, Pin));
@@ -43,6 +47,7 @@
last = markers[loc];
}
};
+
var jsmap = new YMap('jsmapContainer');
jsmap.addZoomLong();
jsmap.addTypeControl();