Skip to content

Commit

Permalink
Add codepen button to 6 more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerie Young committed Oct 30, 2020
1 parent 7b64a06 commit d6cb77e
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 19 deletions.
8 changes: 5 additions & 3 deletions examples/checkbox/checkbox-1/checkbox-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ <h1>Checkbox Example (Two State)</h1>
</ul>

<section>
<h2 id="ex_label">Example</h2>
<div class="example-header">
<h2 id="ex_label">Example</h2>
</div>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>

<div id="ex1">
Expand Down Expand Up @@ -177,7 +179,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>

<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<ul id="css_js_files">
<li>
CSS: <a href="../css/checkbox.css" type="text/css">checkbox.css</a>
</li>
Expand All @@ -195,7 +197,7 @@ <h3 id="sc1_label">Simple Two-State Checkbox Example</h3>
<div id="sc1_end_sep" role="separator" aria-labelledby="sc1_end_sep sc1_label" aria-label="End of HTML for"></div>

<script>
sourceCode.add('sc1', 'ex1');
sourceCode.add('sc1', 'ex1', 'ex_label', 'css_js_files');
sourceCode.make();
</script>
</section>
Expand Down
8 changes: 5 additions & 3 deletions examples/checkbox/checkbox-2/checkbox-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ <h1>Checkbox Example (Mixed-State)</h1>
<li><a href="../checkbox-1/checkbox-1.html">Checkbox (Two State)</a>: Simple two state checkbox.</li>
</ul>
<section>
<h2 id="ex_label">Example</h2>
<div class="example-header">
<h2 id="ex_label">Example</h2>
</div>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<fieldset>
Expand Down Expand Up @@ -197,7 +199,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>

<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<ul id="css_js_files">
<li>CSS: <a href="../css/checkbox.css" type="text/css">checkbox.css</a></li>
<li>Javascript: <a href="js/checkboxMixed.js" type="text/javascript">checkboxMixed.js</a></li>
<li>Javascript: <a href="js/controlledCheckbox.js" type="text/javascript">controlledCheckbox.js</a></li>
Expand All @@ -210,7 +212,7 @@ <h2 id="sc1_label">HTML Source Code</h2>
<pre><code id="sc1"></code></pre>
<div role="separator" id="sc1_end_sep" aria-labelledby="sc1_end_sep sc1_label" aria-label="End of"></div>
<script>
sourceCode.add('sc1', 'ex1');
sourceCode.add('sc1', 'ex1', 'ex_label', 'css_js_files');
sourceCode.make();
</script>
</section>
Expand Down
10 changes: 6 additions & 4 deletions examples/menu-button/menu-button-actions-active-descendant.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ <h1>Actions Menu Button Example Using aria-activedescendant</h1>
<li><a href="menu-button-links.html">Navigation Menu Button</a>: A button that opens a menu of items that behave as links.</li>
</ul>
<section>
<h2 id="ex_label">Example</h2>
<div class="example-header">
<h2 id="ex_label">Example</h2>
</div>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<div class="menu_button">
Expand Down Expand Up @@ -321,9 +323,9 @@ <h3 id="rps2_label">Menu</h3>
<section>
<h2>Javascript and CSS Source Code</h2>

<ul>
<ul id="css_js_files">
<li>CSS: <a href="css/menuButtonAction.css" type="text/css">MenubuttonAction.css</a></li>
<li>Javascript: <a href="js/Menubutton2.js" type="text/javascript">Menubutton2.js</a></li>
<li>Javascript: <a href="js/Menubutton.js" type="text/javascript">Menubutton2.js</a></li>
<li>Javascript: <a href="js/MenuItemActionActivedescendant.js" type="text/javascript">MenuItemActionActivedescendant.js</a></li>
<li>Javascript: <a href="js/PopupMenuActionActivedescendant.js" type="text/javascript">PopupMenuActionActivedescendant.js</a></li>
</ul>
Expand All @@ -339,7 +341,7 @@ <h2 id="sc1_label">HTML Source Code</h2>
If you change the ID of either the 'ex1' div or the 'sc1' div, be sure to update the sourceCode.add function parameters.
-->
<script>
sourceCode.add('sc1', 'ex1');
sourceCode.add('sc1', 'ex1', 'ex_label', 'css_js_files');
sourceCode.make();
</script>
</section>
Expand Down
8 changes: 5 additions & 3 deletions examples/menu-button/menu-button-actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ <h1>Actions Menu Button Example Using <code>element.focus()</code></h1>
<li><a href="menu-button-links.html">Navigation Menu Button</a>: A button that opens a menu of items that behave as links.</li>
</ul>
<section>
<h2 id="ex_label">Example</h2>
<div class="example-header">
<h2 id="ex_label">Example</h2>
</div>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<div class="menu_button">
Expand Down Expand Up @@ -302,7 +304,7 @@ <h3 id="rps2_label">Menu</h3>
<section>
<h2>Javascript and CSS Source Code</h2>

<ul>
<ul id="css_js_files">
<li>CSS: <a href="css/menuButtonAction.css" type="text/css">MenubuttonAction.css</a></li>
<li>Javascript: <a href="js/Menubutton.js" type="text/javascript">Menubutton.js</a></li>
<li>Javascript: <a href="js/MenuItemAction.js" type="text/javascript">MenuItemAction.js</a></li>
Expand All @@ -320,7 +322,7 @@ <h2 id="sc1_label">HTML Source Code</h2>
If you change the ID of either the 'ex1' div or the 'sc1' div, be sure to update the sourceCode.add function parameters.
-->
<script>
sourceCode.add('sc1', 'ex1');
sourceCode.add('sc1', 'ex1', 'ex_label', 'css_js_files');
sourceCode.make();
</script>
</section>
Expand Down
8 changes: 5 additions & 3 deletions examples/tabs/tabs-1/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ <h1>Example of Tabs with Automatic Activation</h1>
</ul>

<section>
<h2 id="ex_label">Example</h2>
<div class="example-header">
<h2 id="ex_label">Example</h2>
</div>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<div class="tabs">
Expand Down Expand Up @@ -298,7 +300,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>

<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<ul id="css_js_files">
<li>CSS: <a href="../css/tabs.css" type="tex/css">tabs.css</a></li>
<li>Javascript: <a href="js/tabs.js" type="text/javascript">tabs.js</a></li>
</ul>
Expand All @@ -310,7 +312,7 @@ <h2 id="sc1_label">HTML Source Code</h2>
<pre><code id="sc1"></code></pre>
<div role="separator" id="sc1_end_sep" aria-labelledby="sc1_end_sep sc1_label" aria-label="End of"></div>
<script>
sourceCode.add('sc1', 'ex1');
sourceCode.add('sc1', 'ex1', 'ex_label', 'css_js_files');
sourceCode.make();
</script>
</section>
Expand Down
8 changes: 5 additions & 3 deletions examples/tabs/tabs-2/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ <h1>Example of Tabs with Manual Activation</h1>
</ul>

<section>
<h2 id="ex_label">Example</h2>
<div class="example-header">
<h2 id="ex_label">Example</h2>
</div>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<div class="tabs">
Expand Down Expand Up @@ -301,7 +303,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>

<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<ul id="css_js_files">
<li>CSS: <a href="../css/tabs.css" type="tex/css">tabs.css</a></li>
<li>Javascript: <a href="js/tabs.js" type="text/javascript">tabs.js</a></li>
</ul>
Expand All @@ -313,7 +315,7 @@ <h2 id="sc1_label">HTML Source Code</h2>
<pre><code id="sc1"></code></pre>
<div role="separator" id="sc1_end_sep" aria-labelledby="sc1_end_sep sc1_label" aria-label="End of"></div>
<script>
sourceCode.add('sc1', 'ex1');
sourceCode.add('sc1', 'ex1', 'ex_label', 'css_js_files');
sourceCode.make();
</script>
</section>
Expand Down

0 comments on commit d6cb77e

Please sign in to comment.