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 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
- < title > jQuery UI Tooltip - Default demo </ title >
5
+ < title > jQuery UI Tooltip - Custom content </ title >
6
6
< link rel ="stylesheet " href ="../../themes/base/jquery.ui.all.css ">
7
7
< script src ="../../jquery-1.5.1.js "> </ script >
8
8
< script src ="../../ui/jquery.ui.core.js "> </ script >
18
18
.photo .ui-widget-header {
19
19
margin : 1em 0 ;
20
20
}
21
+ .map {
22
+ width : 350px ;
23
+ height : 350px ;
24
+ }
21
25
</ style >
22
26
< script >
23
27
$ ( function ( ) {
26
30
content : function ( ) {
27
31
var element = $ ( this ) ;
28
32
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?" +
30
34
"zoom=11&size=350x350&maptype=terrain&sensor=false¢er=" +
31
35
element . text ( ) + "'>" ;
32
36
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ <h4>Examples</h4>
14
14
< li > < a href ="forms.html "> Forms with tooltips</ a > </ li >
15
15
< li > < a href ="tracking.html "> Track the mouse</ a > </ li >
16
16
< 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 >
18
18
< li > < a href ="video-player.html "> Video Player</ a > </ li >
19
19
</ ul >
20
20
</ div >
You can’t perform that action at this time.
0 commit comments