aboutsummaryrefslogtreecommitdiffstats
path: root/demos/droppable
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-12-30 16:23:34 +0000
committerRichard Worth <rdworth@gmail.com>2008-12-30 16:23:34 +0000
commitae282a966561584be9785c9b5898b2e63635de01 (patch)
tree782185efb1fbd334fcfb75170b19903754303464 /demos/droppable
parentf68e99afab2b4331d181d80d6251230bccfd75eb (diff)
downloadjquery-ui-ae282a966561584be9785c9b5898b2e63635de01.tar.gz
jquery-ui-ae282a966561584be9785c9b5898b2e63635de01.zip
set svn:eol-style to native
Diffstat (limited to 'demos/droppable')
-rw-r--r--demos/droppable/revert.html94
1 files changed, 47 insertions, 47 deletions
diff --git a/demos/droppable/revert.html b/demos/droppable/revert.html
index 4c7333127..0f181ce1c 100644
--- a/demos/droppable/revert.html
+++ b/demos/droppable/revert.html
@@ -1,47 +1,47 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>jQuery UI Droppable - revert</title>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../jquery-1.2.6.js"></script>
- <script type="text/javascript" src="../../ui/ui.core.js"></script>
- <script type="text/javascript" src="../../ui/ui.draggable.js"></script>
- <script type="text/javascript" src="../../ui/ui.droppable.js"></script>
- <style type="text/css">
- .ui-widget-header { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
- .ui-widget-content { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px; }
- </style>
- <script type="text/javascript">
- $(function() {
-
- $("#draggable").draggable({ revert: 'valid' });
- $("#draggable2").draggable({ revert: 'invalid' });
-
- $("#droppable").droppable({
- activeClass: 'ui-state-hover',
- hoverClass: 'ui-state-active',
- drop: function(event, ui) {
- $(this).addClass('ui-state-highlight').find('p').html('Dropped!');
- }
- });
-
- });
- </script>
-</head>
-<body>
-
-<div id="draggable" class="ui-widget-content">
- <p>I revert when I'm dropped</p>
-</div>
-
-<div id="draggable2" class="ui-widget-content">
- <p>I revert when I'm not dropped</p>
-</div>
-
-<div id="droppable" class="ui-widget-header">
- <p>Drop me here</p>
-</div>
-
-</body>
-</html>
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Droppable - revert</title>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.draggable.js"></script>
+ <script type="text/javascript" src="../../ui/ui.droppable.js"></script>
+ <style type="text/css">
+ .ui-widget-header { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
+ .ui-widget-content { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px; }
+ </style>
+ <script type="text/javascript">
+ $(function() {
+
+ $("#draggable").draggable({ revert: 'valid' });
+ $("#draggable2").draggable({ revert: 'invalid' });
+
+ $("#droppable").droppable({
+ activeClass: 'ui-state-hover',
+ hoverClass: 'ui-state-active',
+ drop: function(event, ui) {
+ $(this).addClass('ui-state-highlight').find('p').html('Dropped!');
+ }
+ });
+
+ });
+ </script>
+</head>
+<body>
+
+<div id="draggable" class="ui-widget-content">
+ <p>I revert when I'm dropped</p>
+</div>
+
+<div id="draggable2" class="ui-widget-content">
+ <p>I revert when I'm not dropped</p>
+</div>
+
+<div id="droppable" class="ui-widget-header">
+ <p>Drop me here</p>
+</div>
+
+</body>
+</html>