aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/tooltip/custom-content.html (renamed from demos/tooltip/delegation-mixbag.html)8
-rw-r--r--demos/tooltip/index.html2
2 files changed, 7 insertions, 3 deletions
diff --git a/demos/tooltip/delegation-mixbag.html b/demos/tooltip/custom-content.html
index 689175b0f..e84a7104b 100644
--- a/demos/tooltip/delegation-mixbag.html
+++ b/demos/tooltip/custom-content.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title>jQuery UI Tooltip - Default demo</title>
+ <title>jQuery UI Tooltip - Custom content</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.5.1.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
@@ -18,6 +18,10 @@
.photo .ui-widget-header {
margin: 1em 0;
}
+ .map {
+ width: 350px;
+ height: 350px;
+ }
</style>
<script>
$(function() {
@@ -26,7 +30,7 @@
content: function() {
var element = $( this );
if ( element.is( "[data-geo]" ) ) {
- return "<img src='http://maps.google.com/maps/api/staticmap?" +
+ return "<img class='map' src='http://maps.google.com/maps/api/staticmap?" +
"zoom=11&size=350x350&maptype=terrain&sensor=false&center=" +
element.text() + "'>";
}
diff --git a/demos/tooltip/index.html b/demos/tooltip/index.html
index 460c494e3..6e7c6836e 100644
--- a/demos/tooltip/index.html
+++ b/demos/tooltip/index.html
@@ -14,7 +14,7 @@
<li><a href="forms.html">Forms with tooltips</a></li>
<li><a href="tracking.html">Track the mouse</a></li>
<li><a href="custom-animation.html">Custom animation</a></li>
- <li><a href="delegation-mixbag.html">Delegation Mixbag</a></li>
+ <li><a href="custom-content.html">Custom content</a></li>
<li><a href="video-player.html">Video Player</a></li>
</ul>
</div>