~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to lib/jquery/jquery.ui-1.7.1/development-bundle/demos/droppable/default.html

  • Committer: V. Keith Hughitt
  • Date: 2009-03-26 19:20:57 UTC
  • Revision ID: hughitt1@kore-20090326192057-u0x8rf8sf5lmmnwh
nightly build 03-26-2009: Using alpha-channel JPEG 2000 dataset

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype html>
 
2
<html lang="en">
 
3
<head>
 
4
        <title>jQuery UI Droppable - Default Demo</title>
 
5
        <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
 
6
        <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
 
7
        <script type="text/javascript" src="../../ui/ui.core.js"></script>
 
8
        <script type="text/javascript" src="../../ui/ui.draggable.js"></script>
 
9
        <script type="text/javascript" src="../../ui/ui.droppable.js"></script>
 
10
        <link type="text/css" href="../demos.css" rel="stylesheet" />
 
11
        <style type="text/css">
 
12
        #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
 
13
        #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
 
14
        </style>
 
15
        <script type="text/javascript">
 
16
        $(function() {
 
17
                $("#draggable").draggable();
 
18
                $("#droppable").droppable({
 
19
                        drop: function(event, ui) {
 
20
                                $(this).addClass('ui-state-highlight').find('p').html('Dropped!');
 
21
                        }
 
22
                });
 
23
 
 
24
        });
 
25
        </script>
 
26
</head>
 
27
<body>
 
28
<div class="demo">
 
29
        
 
30
<div id="draggable" class="ui-widget-content">
 
31
        <p>Drag me to my target</p>
 
32
</div>
 
33
 
 
34
<div id="droppable" class="ui-widget-header">
 
35
        <p>Drop here</p>
 
36
</div>
 
37
 
 
38
</div><!-- End demo -->
 
39
 
 
40
<div class="demo-description">
 
41
 
 
42
<p>Enable any DOM element to be droppable, a target for draggable elements.</p>
 
43
 
 
44
</div><!-- End demo-description -->
 
45
</body>
 
46
</html>