Skip to content

Commit cd46c0b

Browse files
patrickhlaukekfranqueiro
authored andcommitted
Update techniques/client-side-script/SCR38.html
1 parent 96181d8 commit cd46c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

techniques/client-side-script/SCR38.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>Examples</h2>
3131
<section class="example">
3232
<h3>Using JavaScript</h3>
3333
<p>The example uses JavaScript in the "accToggle.js" file to store the initial pre-enhanced version of the web page, created solely from the HTML in the source code, so that it can act as a "conforming alternate version" for any later enhanced versions of the web page; and inserts a toggle link into all enhanced versions of the web page which allows a user to revert the web page back to the stored pre-enhanced "Conforming Alternate Version". Note: The "sayhello.js" file is simply there as an example payload external file, and is to be replaced by any other external scripts which are desired.</p>
34-
<p>The script in the acctoggle.js file stores the pre-enhanced version - assigning the version the url postfix #accessible. Clicking the "WCAG 2 conforming alternate version" link (inserted as the first child of the <code>body</code> element in any enhanced versions) changes the url to include the postfix "#accessible" which then resets the html located in the <code>body</code> element and the <code>head</code> element to pre-enhanced code. The pre-enhanced state can be reached from the link, or directly from a url typed into the browser. In addition, a link is inserted into the pre-enhanced "Conforming Alternate Version" which allows the user to re-enhance the web page (something which can also be done using the web browser's back button).</p>
34+
<p>The script in the acctoggle.js file stores the pre-enhanced version - assigning the version the url postfix <code>#accessible</code>. Clicking the "WCAG 2 conforming alternate version" link (inserted as the first child of the <code>body</code> element in any enhanced versions) changes the URL to include the postfix <code>#accessible</code> which then resets the html located in the <code>body</code> element and the <code>head</code> element to pre-enhanced code. The pre-enhanced state can be reached from the link, or directly from a URL typed into the browser. In addition, a link is inserted into the pre-enhanced "Conforming Alternate Version" which allows the user to re-enhance the web page (something which can also be done using the web browser's back button).</p>
3535
<section id="the-javscript">
3636
<h4>acctoggle.js JavaScript:</h4>
3737
<pre xml:space="preserve"><code class="language-javascript">window.onload = function(event) {

0 commit comments

Comments
 (0)