26
26
content : function ( ) {
27
27
var element = $ ( this ) ;
28
28
if ( element . is ( "[data-geo]" ) ) {
29
- return $ ( "<iframe>" , {
30
- width : 425 ,
31
- height : 350 ,
32
- frameborder : 0 ,
33
- scrolling : "no" ,
34
- marginheight : 0 ,
35
- marginwidth : 0 ,
36
- src : "http://maps.google.com/maps?ll=" + element . attr ( "data-geo" ) +
37
- "&z=11&t=p&output=embed"
38
- } ) ;
29
+ return "<img src='http://maps.google.com/maps/api/staticmap?" +
30
+ "zoom=11&size=350x350&maptype=terrain&sensor=false¢er=" +
31
+ element . text ( ) + "'>" ;
39
32
}
40
33
if ( element . is ( "[title]" ) ) {
41
34
return element . attr ( "title" ) ;
55
48
< div class ="ui-widget photo ">
56
49
< div class ="ui-widget-header ui-corner-all ">
57
50
< h2 > St. Stephen's Cathedral</ h2 >
58
- < h3 > < a href ="http://maps.google.com/maps?q=vienna,+austria&z=11 " data-geo =" 48.208174,16.373819 " > Vienna, Austria</ a > </ h3 >
51
+ < h3 > < a href ="http://maps.google.com/maps?q=vienna,+austria&z=11 " data-geo > Vienna, Austria</ a > </ h3 >
59
52
</ div >
60
53
< a href ="http://en.wikipedia.org/wiki/File:Wien_Stefansdom_DSC02656.JPG ">
61
54
< img src ="images/st-stephens.jpg " alt ="St. Stephen's Cathedral " class ="ui-corner-all ">
@@ -65,7 +58,7 @@ <h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo="48.20
65
58
< div class ="ui-widget photo ">
66
59
< div class ="ui-widget-header ui-corner-all ">
67
60
< h2 > Tower Bridge</ h2 >
68
- < h3 > < a href ="http://maps.google.com/maps?q=london,+england&z=11 " data-geo =" 51.500152,-0.126236 " > London, England</ a > </ h3 >
61
+ < h3 > < a href ="http://maps.google.com/maps?q=london,+england&z=11 " data-geo > London, England</ a > </ h3 >
69
62
</ div >
70
63
< a href ="http://en.wikipedia.org/wiki/File:Tower_bridge_London_Twilight_-_November_2006.jpg ">
71
64
< img src ="images/tower-bridge.jpg " alt ="Tower Bridge " class ="ui-corner-all ">
0 commit comments