File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22< html lang ="en ">
33< head >
44 < meta charset ="utf-8 ">
5- < title > jQuery UI Tooltip - Default demo </ title >
5+ < title > jQuery UI Tooltip - Custom content </ title >
66 < link rel ="stylesheet " href ="../../themes/base/jquery.ui.all.css ">
77 < script src ="../../jquery-1.5.1.js "> </ script >
88 < script src ="../../ui/jquery.ui.core.js "> </ script >
1818 .photo .ui-widget-header {
1919 margin : 1em 0 ;
2020 }
21+ .map {
22+ width : 350px ;
23+ height : 350px ;
24+ }
2125 </ style >
2226 < script >
2327 $ ( function ( ) {
2630 content : function ( ) {
2731 var element = $ ( this ) ;
2832 if ( element . is ( "[data-geo]" ) ) {
29- return "<img src='http://maps.google.com/maps/api/staticmap?" +
33+ return "<img class='map' src='http://maps.google.com/maps/api/staticmap?" +
3034 "zoom=11&size=350x350&maptype=terrain&sensor=false¢er=" +
3135 element . text ( ) + "'>" ;
3236 }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ <h4>Examples</h4>
1414 < li > < a href ="forms.html "> Forms with tooltips</ a > </ li >
1515 < li > < a href ="tracking.html "> Track the mouse</ a > </ li >
1616 < li > < a href ="custom-animation.html "> Custom animation</ a > </ li >
17- < li > < a href ="delegation-mixbag .html "> Delegation Mixbag </ a > </ li >
17+ < li > < a href ="custom-content .html "> Custom content </ a > </ li >
1818 < li > < a href ="video-player.html "> Video Player</ a > </ li >
1919 </ ul >
2020</ div >
You can’t perform that action at this time.
0 commit comments