From: Jean-Michel Sarlat Date: Sun, 13 Nov 2016 18:03:40 +0000 (+0100) Subject: Et zut! X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=commitdiff_plain;h=db08eee2240e6df1fa3dc319bb7c79db1ee506e8;p=svganimation.git Et zut! --- diff --git a/doc/page.html b/doc/page.html index e822d01..53bb237 100644 --- a/doc/page.html +++ b/doc/page.html @@ -10,7 +10,7 @@ player.connect(); } function charge_anim2() { - var a = new Animation('anim2'); + var a = new Animation('anim2','../ellipsographe/svg/ellipsographe-',1,91); a.loopOnload(); var b = new Controle(a); b.connect(); @@ -110,7 +110,7 @@ Chargement...

Il est possible de différer le chargement de l'animation en créant une fonction Javascript.

function charge_anim2() {
-  var a = new Animation('anim2');
+  var a = new Animation('anim2','svg/ellipsographe-',1,91);
   a.loopOnload();
   var b = new Controle(a);
   b.connect();
diff --git a/doc/page.md b/doc/page.md
index 9e3503b..26dd7c3 100644
--- a/doc/page.md
+++ b/doc/page.md
@@ -9,7 +9,7 @@
     player.connect();
   }
   function charge_anim2() {
-    var a = new Animation('anim2');
+    var a = new Animation('anim2','../ellipsographe/svg/ellipsographe-',1,91);
     a.loopOnload();
     var b = new Controle(a);
     b.connect();
@@ -206,7 +206,7 @@ Il est possible de différer le chargement de l'animation en créant une fonctio
 
 ~~~~~~~ { .javascript }
 function charge_anim2() {
-  var a = new Animation('anim2');
+  var a = new Animation('anim2','svg/ellipsographe-',1,91);
   a.loopOnload();
   var b = new Controle(a);
   b.connect();