From bdba0db6252e54e1610f257bed5427b765bbc8b0 Mon Sep 17 00:00:00 2001 From: Jean-Michel Sarlat Date: Tue, 15 Nov 2016 23:57:23 +0100 Subject: [PATCH] =?utf8?q?Doc:=20modifications=20pour=20=C3=A9viter=20le?= =?utf8?q?=20chargement=20double=20de=20jQuery?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- doc/index.xml | 6 ++++++ doc/local.js | 20 ++++++++++++++++++++ doc/page-html.tmpl | 11 +++++------ doc/page.html | 39 +++++++++++++++++++-------------------- 4 files changed, 50 insertions(+), 26 deletions(-) create mode 100644 doc/local.js 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

-