mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip demo: Use static map instead of interactive map.
This commit is contained in:
parent
27a4fdd8ed
commit
e5186dc930
@ -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¢er=" +
|
||||
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">
|
||||
|
Loading…
Reference in New Issue
Block a user