Doc: Ne pas pusher trop vite...
authorMaxime Chupin (escudo) <chupin@fougeriens.org>
Sun, 13 Nov 2016 16:06:40 +0000 (17:06 +0100)
committerMaxime Chupin (escudo) <chupin@fougeriens.org>
Sun, 13 Nov 2016 16:06:40 +0000 (17:06 +0100)
doc/page.html
doc/page.md

index c150281..199dfa3 100644 (file)
     player.connect();
   }
   $(window).load(function() {
-    a1 = new Animation('anim1','../ellipsographe/svg/ellipsographe-',1,91);
-    a1.loopOnload();
-    b1 = new Controle(a1);
-    b1.connect();
+    anim = new Animation('XXXX','../ellipsographe/svg/ellipsographe-',1,91);
+    anim.loopOnload();
+    player = new Controle(anim);
+    player.connect();
     });
 </script>
 <p><strong>Participants :</strong> Chupin Maxime, Sarlat Jean-Michel.</p>
@@ -88,18 +88,18 @@ L'id&#233;e d'une telle librairie est venue du fait que le logiciel MetaPost per
 <span class="op">}</span>)<span class="op">;</span>
 <span class="op">&lt;</span><span class="ss">/script&gt;</span>
 <span class="ss">&lt;!--</span><span class="sc">[...]</span><span class="ss">--&gt;</span>
-<span class="ss">&lt;div id=&quot;anim1&quot;&gt;</span>
+<span class="ss">&lt;div id=&quot;XXXX&quot;&gt;</span>
 <span class="ss">  &lt;img src=&quot;svg/ellipsographe</span><span class="fl">-1.</span>svg<span class="st">&quot; alt=&quot;</span>animation1<span class="st">&quot;/&gt;</span>
-  <span class="op">&lt;</span>div <span class="kw">class</span><span class="op">=</span><span class="st">&quot;message&quot;</span> id<span class="op">=</span><span class="st">&quot;anim1_message&quot;</span><span class="op">&gt;</span>Chargement<span class="op">&lt;</span><span class="ss">/div&gt;</span>
-<span class="ss">  &lt;div id=&quot;anim1_boutons&quot;&gt;&lt;/div</span><span class="op">&gt;</span>
+  <span class="op">&lt;</span>div <span class="kw">class</span><span class="op">=</span><span class="st">&quot;message&quot;</span> id<span class="op">=</span><span class="st">&quot;XXXX_message&quot;</span><span class="op">&gt;</span><span class="va">Chargement</span>...<span class="op">&lt;</span><span class="ss">/div&gt;</span>
+<span class="ss">  &lt;div id=&quot;XXXX_boutons&quot;&gt;&lt;/div</span><span class="op">&gt;</span>
 <span class="op">&lt;</span><span class="ss">/div&gt;</span></code></pre></div>
 <p>dont le r&#233;sultat est :</p>
-<div id="anim1">
+<div id="XXXX">
 <img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1"/>
-<div id="anim1_message" class="message">
-Ellipsographe
+<div id="XXXX_message" class="message">
+Chargement...
 </div>
-<div id="anim1_boutons">
+<div id="XXXX_boutons">
 
 </div>
 </div>
index b05b46c..0fcf2c4 100644 (file)
@@ -9,10 +9,10 @@
     player.connect();
   }
   $(window).load(function() {
-    a1 = new Animation('anim1','../ellipsographe/svg/ellipsographe-',1,91);
-    a1.loopOnload();
-    b1 = new Controle(a1);
-    b1.connect();
+    anim = new Animation('XXXX','../ellipsographe/svg/ellipsographe-',1,91);
+    anim.loopOnload();
+    player = new Controle(anim);
+    player.connect();
     });
 </script>
 
@@ -181,19 +181,19 @@ $(window).load(function() {
 });
 </script>
 <!--[...]-->
-<div id="anim1">
+<div id="XXXX">
   <img src="svg/ellipsographe-1.svg" alt="animation1"/>
-  <div class="message" id="anim1_message">Chargement</div>
-  <div id="anim1_boutons"></div>
+  <div class="message" id="XXXX_message">Chargement...</div>
+  <div id="XXXX_boutons"></div>
 </div>
 ~~~~~~~
 
 dont le résultat est :
 
-<div id="anim1">
+<div id="XXXX">
   <img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1"/>
-  <div class="message" id="anim1_message">Ellipsographe</div>
-  <div id="anim1_boutons"></div>
+  <div class="message" id="XXXX_message">Chargement...</div>
+  <div id="XXXX_boutons"></div>
 </div>
 
 

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.