function charge(i,p,a,b) {
var anim = new Animation(i,p,a,b);
anim.loopOnload();
+ var player = new Controle(anim);
+ player.connect();
}
</script>
<p><strong>Participants :</strong> Chupin Maxime, Sarlat Jean-Michel.</p>
<script type="text/javascript" src="js/SVGAnimation.js"></script></code></pre>
<p>La librairie <code>SVGAnimation.js</code> dépend de <code>JQuery</code>, il faut donc charger charger cette bibliothèque JavaScript avant.</p>
<h2 id="lobjet-animation">L'objet <code>Animation</code></h2>
-<div id="anim1" style="margin:10px auto;padding:10px;width:370px;border:2px solid #AAA;border-radius:4px">
+<div id="anim1" style="margin:10px auto;padding:10px;width:350px;border:2px solid #AAA;border-radius:4px">
<img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1" style="width:330px;height:240px"/>
<div id="anim1_message" class="message">
Ellipsographe
function charge(i,p,a,b) {
var anim = new Animation(i,p,a,b);
anim.loopOnload();
+ var player = new Controle(anim);
+ player.connect();
}
</script>
## L'objet `Animation`
-<div id="anim1" style="margin:10px auto;padding:10px;width:370px;border:2px solid #AAA;border-radius:4px">
+<div id="anim1" style="margin:10px auto;padding:10px;width:350px;border:2px solid #AAA;border-radius:4px">
<img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1" style="width:330px;height:240px"/>
<div class="message" id="anim1_message">Ellipsographe</div>
<div id="anim1_boutons"><button onclick="charge('anim1','../ellipsographe/svg/ellipsographe-',1,91);">Charger l'animation</button></div>