Skip to content

Commit 2a27499

Browse files
committed
Tooltip demos: Renamed delgation mixbag.
1 parent ab703d7 commit 2a27499

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

demos/tooltip/delegation-mixbag.html renamed to demos/tooltip/custom-content.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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>
@@ -18,6 +18,10 @@
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() {
@@ -26,7 +30,7 @@
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&center=" +
3135
element.text() + "'>";
3236
}

demos/tooltip/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)