aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/canvasrenderingcontext2d/direction/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/canvasrenderingcontext2d/direction/index.html')
-rw-r--r--files/fr/web/api/canvasrenderingcontext2d/direction/index.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/files/fr/web/api/canvasrenderingcontext2d/direction/index.html b/files/fr/web/api/canvasrenderingcontext2d/direction/index.html
index 7c79ad92e9..e4dae769e1 100644
--- a/files/fr/web/api/canvasrenderingcontext2d/direction/index.html
+++ b/files/fr/web/api/canvasrenderingcontext2d/direction/index.html
@@ -36,7 +36,7 @@ translation_of: Web/API/CanvasRenderingContext2D/direction
<h2 id="Exemples">Exemples</h2>
-<h3 id="Using_the_direction_property" name="Using_the_direction_property">Utilisation de la propriété <code>direction</code></h3>
+<h3 id="Using_the_direction_property">Utilisation de la propriété <code>direction</code></h3>
<p>Ceci est seulement un fragment de code simple utilisant la propriété <code>direction</code> pour indiquer un réglage de ligne de base différent.</p>
@@ -57,10 +57,9 @@ ctx.strokeText('Hello world', 0, 100);
<p>Modifiez le code ci-dessous et voyez vos changements mis à jour en temps réel dans le canevas :</p>
-<div class="hidden">
-<h6 id="Playable_code" name="Playable_code">Playable code</h6>
+<h4 id="code_jouable">Code jouable</h4>
-<pre class="brush: html">&lt;canvas id="canvas" width="400" height="200" class="playable-canvas"&gt;&lt;/canvas&gt;
+<pre class="brush: html hidden">&lt;canvas id="canvas" width="400" height="200" class="playable-canvas"&gt;&lt;/canvas&gt;
&lt;div class="playable-buttons"&gt;
  &lt;input id="edit" type="button" value="Edit" /&gt;
  &lt;input id="reset" type="button" value="Reset" /&gt;
@@ -71,7 +70,7 @@ ctx.direction = 'ltr';
ctx.strokeText('Hello world', 0, 100);&lt;/textarea&gt;
</pre>
-<pre class="brush: js">var canvas = document.getElementById('canvas');
+<pre class="brush: js hidden">var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
var textarea = document.getElementById('code');
var reset = document.getElementById('reset');
@@ -95,9 +94,8 @@ edit.addEventListener('click', function() {
textarea.addEventListener('input', drawCanvas);
window.addEventListener('load', drawCanvas);
</pre>
-</div>
-<p>{{ EmbedLiveSample('Playable_code', 700, 360) }}</p>
+<p>{{EmbedLiveSample('code_jouable', 700, 360)}}</p>
<h2 id="Spécifications">Spécifications</h2>