Skip to content

Commit

Permalink
Merge pull request #3407 from w3c/tidy-up-techniques-code
Browse files Browse the repository at this point in the history
Trying to fix random error
  • Loading branch information
alastc authored Sep 19, 2023
2 parents 8cd308e + 2952ae9 commit cca5023
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions techniques/client-side-script/SCR14.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2>Examples</h2>
<section class="example">
<h3>Updating screen reader settings for stock price update alerts</h3>
<p>The script below will update a stock value in an aria-live component every 10 seconds. If the user presses the "Turn Announcements Off" button, their screen reader will stop making announcements when the stock value changes; if they press the "Turn Announcements On" button, the announcements will start again.</p>

<section id="the-javascript">
<h4>The JavaScript</h4>

<pre xml:space="preserve"><code class="language-javascript">&lt;script&gt;
Expand Down Expand Up @@ -64,7 +64,8 @@ <h4>The JavaScript</h4>
}, 10000)
});
&lt;/script&gt;</code></pre>

</section>
<section id="the-html">
<h4>The <abbr title="HyperText Markup Language">HTML</abbr></h4>

<pre xml:space="preserve"><code class="language-html">&lt;body&gt;
Expand All @@ -81,8 +82,8 @@ <h4>The <abbr title="HyperText Markup Language">HTML</abbr></h4>
Turn Announcements Off&lt;/button&gt;
&lt;/div&gt;
&lt;/body&gt;</code></pre>
<p class="working-example">Working example of this code: <a href="../../working-examples/script-toggle-aria-alerts/">Demonstration of toggling ARIA alerts</a>.</p>
</section>
<p class="working-example">Working example of this code: <a href="../../working-examples/script-toggle-aria-alerts/">Demonstration of toggling ARIA alerts</a>.</p>

</section>
</section><section id="tests"><h2>Tests</h2>
Expand Down

0 comments on commit cca5023

Please sign in to comment.