diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/dtl/demos/demo_Animation.html | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-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/dojox/dtl/demos/demo_Animation.html')
-rw-r--r-- | includes/js/dojox/dtl/demos/demo_Animation.html | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/includes/js/dojox/dtl/demos/demo_Animation.html b/includes/js/dojox/dtl/demos/demo_Animation.html deleted file mode 100644 index 1a5e278..0000000 --- a/includes/js/dojox/dtl/demos/demo_Animation.html +++ /dev/null @@ -1,45 +0,0 @@ -<html> - <head> - <title>Testing dojox.dtl using animation to change attributes</title> - <script src="../../../dojo/dojo.js" djConfig="parseOnLoad: true, usePlainJson: true"></script> - <script> - dojo.require("dijit._Widget"); - dojo.require("dojox.dtl._HtmlTemplated"); - - dojo.declare("demo.Animation", [dijit._Widget, dojox.dtl._HtmlTemplated], - { - buffer: 0, // Note: Sensitivity is 0 by default, but this is to emphasize we're not doing any buffering - templatePath: dojo.moduleUrl("dojox.dtl.demos.templates", "animation.html"), - constructor: function(props, node){ - console.debug("constructor"); - this.x = 0; - this.y = 0; - }, - postCreate: function(){ - var anim = new dojo._Animation({ - curve: [0, 300], - rate: 10, - duration: 5000, - easing: dojo._defaultEasing - }); - dojo.connect(anim, "onAnimate", this, "_reDraw"); - anim.play(); - }, - _reDraw: function(obj){ - this.x = obj; - this.y = Math.sqrt(obj) * 10; - - dojo.style(this.blue, "left", this.x); - dojo.style(this.blue, "top", this.y + 10); - - this.render(); - } - }); - - dojo.require("dojo.parser"); - </script> - </head> - <body> - <div dojoType="demo.Animation" /> - </body> -</html>
\ No newline at end of file |