Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/boards/anim
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2007-08-29 21:41:58 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2007-08-29 21:41:58 (GMT)
commit80f4afe96041638b474e87a2abc5777f3358aa9e (patch)
tree43b1fa9c96cc2cc4e185f9f2c185227100f9c529 /boards/anim
parent522b446f11e7feff791ac54c57d9d2b5699bb168 (diff)
Switched to GPL V3
svn path=/trunk/; revision=2909
Diffstat (limited to 'boards/anim')
-rw-r--r--boards/anim/animation.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/boards/anim/animation.js b/boards/anim/animation.js
index dcb9ca8..354b48c 100644
--- a/boards/anim/animation.js
+++ b/boards/anim/animation.js
@@ -3,7 +3,7 @@
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
- // the Free Software Foundation; either version 2 of the License, or
+ // the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
@@ -12,8 +12,7 @@
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
- // along with this program; if not, write to the Free Software
- // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ // along with this program; if not, see <http://www.gnu.org/Licenses/>.
//
// Utility file for anim.py to export gcompris anim in Mozilla SVG
@@ -128,19 +127,19 @@ function apply_frame(frame_no){
}
// create is at end because of viewBox/use need that.
if (AnimItemlist[i][1]['frame_' + frame_no]['create']){
- root.appendChild(AnimItemlist[i][0]);
+ root.appendChild(AnimItemlist[i][0]);
}
// z is after create, of course...
if (AnimItemlist[i][1]['frame_' + frame_no]['z']){
- set_z(AnimItemlist[i][0], AnimItemlist[i][1]['frame_' + frame_no]['z'][1] );
+ set_z(AnimItemlist[i][0], AnimItemlist[i][1]['frame_' + frame_no]['z'][1] );
}
}
}
}
-
+
function apply_attr(node, name, value){
- // alert(node.nodeName + " " + name + " " + value );
+ // alert(node.nodeName + " " + name + " " + value );
}
function speed_down() {
@@ -181,7 +180,7 @@ function stop_animation()
function animate()
{
- var id = root.suspendRedraw(1000);
+ var id = root.suspendRedraw(1000);
if (step == frames_total) {
reinit_animation();
@@ -219,11 +218,11 @@ function reinit_animation() {
time_base = f.getTime();
}
-
+
function set_z(node, index) {
index = parseInt(index) + base_stack;
- if (node.parentNode.childNodes[index] == node) return;
+ if (node.parentNode.childNodes[index] == node) return;
var parent = node.parentNode;
parent.removeChild(node);