From: Jean-Michel Sarlat Date: Tue, 15 Nov 2016 22:57:23 +0000 (+0100) Subject: Doc: modifications pour éviter le chargement double de jQuery X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=commitdiff_plain;h=bdba0db6252e54e1610f257bed5427b765bbc8b0;p=svganimation.git Doc: modifications pour éviter le chargement double de jQuery --- diff --git a/doc/index.xml b/doc/index.xml index c58c031..1b6a193 100644 --- a/doc/index.xml +++ b/doc/index.xml @@ -2,4 +2,10 @@ Documentation du projet SVGAnimation Syracuse + + + + + + diff --git a/doc/local.js b/doc/local.js new file mode 100644 index 0000000..afc09d9 --- /dev/null +++ b/doc/local.js @@ -0,0 +1,20 @@ +function charge(i,p,a,b) { + var anim = new Animation(i,p,a,b); + anim.loopOnload(); + var player = new Controle(anim); + player.connect(); +} + +function charge_anim2() { + var a = new Animation('anim2','../ellipsographe/svg/ellipsographe-',1,91); + a.loopOnload(); + var b = new Controle(a); + b.connect(); +} + +$(window).load(function() { + anim = new Animation('XXXX','../ellipsographe/svg/ellipsographe-',1,91); + anim.loopOnload(); + player = new Controle(anim); + player.connect(); +}); diff --git a/doc/page-html.tmpl b/doc/page-html.tmpl index 288cc6e..b8f5175 100644 --- a/doc/page-html.tmpl +++ b/doc/page-html.tmpl @@ -2,11 +2,10 @@ $body$ $if(toc)$ -
-
-  Sections  -
- $toc$ +
+
SVGAnimation (documentation)
+ $toc$ +
+
$endif$ -
\ No newline at end of file diff --git a/doc/page.html b/doc/page.html index ddd3932..c967e44 100644 --- a/doc/page.html +++ b/doc/page.html @@ -233,24 +233,23 @@ Charger l'animation

Le fichier SVGPlayerOne.js est fourni à la racine du projet SVGAnimation.

Exemples d'utilisation

-