summaryrefslogtreecommitdiff
path: root/includes/js/dojo/tests/dnd/test_custom_constraints.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojo/tests/dnd/test_custom_constraints.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojo/tests/dnd/test_custom_constraints.html')
-rw-r--r--includes/js/dojo/tests/dnd/test_custom_constraints.html51
1 files changed, 0 insertions, 51 deletions
diff --git a/includes/js/dojo/tests/dnd/test_custom_constraints.html b/includes/js/dojo/tests/dnd/test_custom_constraints.html
deleted file mode 100644
index 9140914..0000000
--- a/includes/js/dojo/tests/dnd/test_custom_constraints.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Dojo custom constraint test</title>
- <style type="text/css">
- @import "../../resources/dojo.css";
-
- body {
- padding: 1em;
- }
-
- .moveable {
- background: #FFFFBF;
- border: 1px solid black;
- width: 300px;
- padding: 10px 20px;
- margin: 0px;
- cursor: pointer;
- }
- </style>
- <script type="text/javascript" src="../../dojo.js" djConfig="isDebug: true"></script>
- <script type="text/javascript" src="../../dnd/move.js"></script>
- <script type="text/javascript">
- dojo.require("dojo.dnd.move");
-
- var STEP = 50;
-
- var init = function(){
- // 1st way
- var m1 = new dojo.dnd.Moveable("moveable1");
- m1.onMove = function(mover, leftTop){
- leftTop.l -= leftTop.l % STEP;
- leftTop.t -= leftTop.t % STEP;
- dojo.marginBox(mover.node, leftTop);
- };
- // 2nd way
- var m2 = new dojo.dnd.Moveable("moveable2");
- dojo.connect(m2, "onMoving", function(mover, leftTop){
- leftTop.l -= leftTop.l % STEP;
- leftTop.t -= leftTop.t % STEP;
- });
- };
- dojo.addOnLoad(init);
- </script>
-</head>
-<body>
- <h1>Dojo custom constraint test</h1>
- <p class="moveable" id="moveable1"><strong>This paragraph stops at 50x50 grid knots:</strong> Donec ac odio sed pede aliquet auctor. Donec et lectus. Praesent feugiat ultrices enim. Morbi lectus. Donec vestibulum posuere libero. Donec quam enim, nonummy a, auctor vitae, placerat id, massa. Vivamus vulputate luctus nibh. Donec dolor orci, sagittis ac, pretium sed, ornare sit amet, pede. Vestibulum leo justo, pellentesque sit amet, tristique sed, tempor eu, felis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam scelerisque velit vel sem. Curabitur vulputate. Morbi pretium porta dui.</p>
- <p class="moveable" id="moveable2"><strong>This paragraph stops at 50x50 grid knots:</strong> Donec ac odio sed pede aliquet auctor. Donec et lectus. Praesent feugiat ultrices enim. Morbi lectus. Donec vestibulum posuere libero. Donec quam enim, nonummy a, auctor vitae, placerat id, massa. Vivamus vulputate luctus nibh. Donec dolor orci, sagittis ac, pretium sed, ornare sit amet, pede. Vestibulum leo justo, pellentesque sit amet, tristique sed, tempor eu, felis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam scelerisque velit vel sem. Curabitur vulputate. Morbi pretium porta dui.</p>
-</body>
-</html>