aboutsummaryrefslogtreecommitdiffstats
path: root/demos/draggable/scroll.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-09-10 09:17:58 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-10 09:17:58 -0400
commit6cf45dd25a98f98c91a4000345fc5597f9929939 (patch)
tree192ef4a8128f42d980c5415136a0dca0057aa4d4 /demos/draggable/scroll.html
parent98fb8c836220730bb9d7c0d73d6766d2b898d773 (diff)
downloadjquery-ui-6cf45dd25a98f98c91a4000345fc5597f9929939.tar.gz
jquery-ui-6cf45dd25a98f98c91a4000345fc5597f9929939.zip
Draggable demos: Coding standards.
Diffstat (limited to 'demos/draggable/scroll.html')
-rw-r--r--demos/draggable/scroll.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/demos/draggable/scroll.html b/demos/draggable/scroll.html
index c7033b34e..560cb435e 100644
--- a/demos/draggable/scroll.html
+++ b/demos/draggable/scroll.html
@@ -1,27 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8" />
+ <meta charset="utf-8">
<title>jQuery UI Draggable - Auto-scroll</title>
- <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
- <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <style type="text/css">
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+ <script src="../../jquery-1.4.2.js"></script>
+ <script src="../../ui/jquery.ui.core.js"></script>
+ <script src="../../ui/jquery.ui.widget.js"></script>
+ <script src="../../ui/jquery.ui.mouse.js"></script>
+ <script src="../../ui/jquery.ui.draggable.js"></script>
+ <link rel="stylesheet" href="../demos.css">
+ <style>
#draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
</style>
- <script type="text/javascript">
+ <script>
$(function() {
- $("#draggable").draggable({ scroll: true });
- $("#draggable2").draggable({ scroll: true, scrollSensitivity: 100 });
- $("#draggable3").draggable({ scroll: true, scrollSpeed: 100 });
+ $( "#draggable" ).draggable({ scroll: true });
+ $( "#draggable2" ).draggable({ scroll: true, scrollSensitivity: 100 });
+ $( "#draggable3" ).draggable({ scroll: true, scrollSpeed: 100 });
});
</script>
</head>
<body>
+
<div class="demo">
<div id="draggable" class="ui-widget-content">
@@ -40,12 +41,11 @@
</div><!-- End demo -->
-<div class="demo-description">
-<p>
-Automatically scroll the document when the draggable is moved beyond the viewport. Set the <code>scroll</code> option to true to enable auto-scrolling, and fine-tune when scrolling is triggered and its speed with the <code>scrollSensitivity</code> and <code>scrollSpeed</code> options.
-</p>
+<div class="demo-description">
+<p>Automatically scroll the document when the draggable is moved beyond the viewport. Set the <code>scroll</code> option to true to enable auto-scrolling, and fine-tune when scrolling is triggered and its speed with the <code>scrollSensitivity</code> and <code>scrollSpeed</code> options.</p>
</div><!-- End demo-description -->
+
</body>
</html>