aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip/custom-content.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tooltip/custom-content.html')
-rw-r--r--demos/tooltip/custom-content.html11
1 files changed, 2 insertions, 9 deletions
diff --git a/demos/tooltip/custom-content.html b/demos/tooltip/custom-content.html
index 286e75781..31352155d 100644
--- a/demos/tooltip/custom-content.html
+++ b/demos/tooltip/custom-content.html
@@ -25,7 +25,7 @@
</style>
<script>
$(function() {
- $( ".demo" ).tooltip({
+ $( document ).tooltip({
items: "img, [data-geo], [title]",
content: function() {
var element = $( this );
@@ -49,8 +49,6 @@
</head>
<body>
-<div class="demo">
-
<div class="ui-widget photo">
<div class="ui-widget-header ui-corner-all">
<h2>St. Stephen's Cathedral</h2>
@@ -74,14 +72,9 @@
<p>All images are part of <a href="http://commons.wikimedia.org/wiki/Main_Page">Wikimedia Commons</a>
and are licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/deed.en" title="Creative Commons Attribution-ShareAlike 3.0">CC BY-SA 3.0</a> by the copyright holder.</p>
-</div><!-- End demo -->
-
-
-
<div class="demo-description">
<p>Shows how to combine different event delegated tooltips into a single instance, by customizing the items and content options.</p>
<p>We realize you may want to interact with the map tooltips. This is a planned feature for a future version.</p>
-</div><!-- End demo-description -->
-
+</div>
</body>
</html>