aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-30 15:55:41 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-30 15:55:59 -0400
commite5186dc9309cddf4a70bad37de4b4c71d2018f5c (patch)
tree0c9b8e8985d0392d6a677f6bf2ac960dfdb069ea /demos/tooltip
parent27a4fdd8ed4fe7733ea139022c04bd7ef8033cba (diff)
downloadjquery-ui-e5186dc9309cddf4a70bad37de4b4c71d2018f5c.tar.gz
jquery-ui-e5186dc9309cddf4a70bad37de4b4c71d2018f5c.zip
Tooltip demo: Use static map instead of interactive map.
Diffstat (limited to 'demos/tooltip')
-rw-r--r--demos/tooltip/delegation-mixbag.html17
1 files changed, 5 insertions, 12 deletions
diff --git a/demos/tooltip/delegation-mixbag.html b/demos/tooltip/delegation-mixbag.html
index 5b1fa4119..689175b0f 100644
--- a/demos/tooltip/delegation-mixbag.html
+++ b/demos/tooltip/delegation-mixbag.html
@@ -26,16 +26,9 @@
content: function() {
var element = $( this );
if ( element.is( "[data-geo]" ) ) {
- return $( "<iframe>", {
- width: 425,
- height: 350,
- frameborder: 0,
- scrolling: "no",
- marginheight: 0,
- marginwidth: 0,
- src: "http://maps.google.com/maps?ll=" + element.attr( "data-geo" ) +
- "&z=11&t=p&output=embed"
- });
+ return "<img src='http://maps.google.com/maps/api/staticmap?" +
+ "zoom=11&size=350x350&maptype=terrain&sensor=false&center=" +
+ element.text() + "'>";
}
if ( element.is( "[title]" ) ) {
return element.attr( "title" );
@@ -55,7 +48,7 @@
<div class="ui-widget photo">
<div class="ui-widget-header ui-corner-all">
<h2>St. Stephen's Cathedral</h2>
- <h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo="48.208174,16.373819">Vienna, Austria</a></h3>
+ <h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo>Vienna, Austria</a></h3>
</div>
<a href="http://en.wikipedia.org/wiki/File:Wien_Stefansdom_DSC02656.JPG">
<img src="images/st-stephens.jpg" alt="St. Stephen's Cathedral" class="ui-corner-all">
@@ -65,7 +58,7 @@
<div class="ui-widget photo">
<div class="ui-widget-header ui-corner-all">
<h2>Tower Bridge</h2>
- <h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo="51.500152,-0.126236">London, England</a></h3>
+ <h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo>London, England</a></h3>
</div>
<a href="http://en.wikipedia.org/wiki/File:Tower_bridge_London_Twilight_-_November_2006.jpg">
<img src="images/tower-bridge.jpg" alt="Tower Bridge" class="ui-corner-all">