Skip to content

Commit

Permalink
fix: Run ECLint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Feb 5, 2019
1 parent b5c1153 commit 8d97b56
Show file tree
Hide file tree
Showing 142 changed files with 1,972 additions and 2,000 deletions.
1 change: 0 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
All documents in this Repository are licensed by contributors
under the
[W3C Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software).

550 changes: 275 additions & 275 deletions aria-practices-DeletedSectionsArchive.html

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions aria-practices.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/accordion/accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
<ul>
<li>Element that serves as an accordion header.</li>
<li>Each accordion header element contains a button that controls the visibility of its content panel.</li>
<li>The example uses heading level 3 so it fits correctly within the outline of the page; the example is contained in a section titled with a level 2 heading.</li>
<li>The example uses heading level 3 so it fits correctly within the outline of the page; the example is contained in a section titled with a level 2 heading.</li>
</ul>
</td>
</tr>
Expand Down
10 changes: 5 additions & 5 deletions examples/accordion/js/accordion.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* Simple accordion pattern example
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* Simple accordion pattern example
*/

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion examples/alert/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li><a href="https://github.com/w3c/aria-practices/projects/20">Related Issues</a></li>
<li><a href="../../#alert">Design Pattern</a></li>
</ul>
</nav>
</nav>
<main>
<h1>Alert Example</h1>
<p>
Expand Down
22 changes: 11 additions & 11 deletions examples/alert/js/alert.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
*/
window.addEventListener('load', function () {

var button = document.getElementById('alert-trigger');
Expand All @@ -12,13 +12,13 @@ window.addEventListener('load', function () {
});

/*
* @function addAlert
*
* @desc Adds an alert to the page
*
* @param {Object} event - Standard W3C event object
*
*/
* @function addAlert
*
* @desc Adds an alert to the page
*
* @param {Object} event - Standard W3C event object
*
*/

function addAlert (event) {

Expand Down
10 changes: 5 additions & 5 deletions examples/button/js/button.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* JS code for the button design pattern
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* JS code for the button design pattern
*/

var ICON_MUTE_URL = 'images/mute.svg#icon-mute';
var ICON_SOUND_URL = 'images/mute.svg#icon-sound';
Expand Down
23 changes: 11 additions & 12 deletions examples/carousel/carousel-1/carousel-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ <h2 id="ex_label">Example</h2>
<div class="carousel-inner">

<a class="previous carousel-control"
role="button"
tabindex="0"
aria-controls="myCarousel-items"
aria-label="Previous Slide">
role="button"
tabindex="0"
aria-controls="myCarousel-items"
aria-label="Previous Slide">
<svg width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon points="30 0 30 30 0 15"
stroke="white" fill="white" stroke-width="2"/>
</svg>
</a>

<a class="next carousel-control"
role="button"
tabindex="0"
aria-controls="myCarousel-items"
aria-label="Next Slide">
role="button"
tabindex="0"
aria-controls="myCarousel-items"
aria-label="Next Slide">
<svg width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon points="0 0 30 15 0 30"
stroke="white" fill="white" stroke-width="2"/>
Expand All @@ -88,7 +88,7 @@ <h2 id="ex_label">Example</h2>

<h3>
<a href="#" id="carousel-label-1">
Dynamic Europe: Amsterdam, Prague, Berlin
Dynamic Europe: Amsterdam, Prague, Berlin
</a>
</h3>

Expand Down Expand Up @@ -370,7 +370,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
<td>
<ul>
<li>Applied to a <code>div</code> element that contains all the slides.</li>
<li>Identifies the container element as a live region that is in the &quot;off&quot; state, meaning assistive technology users are not informed about changes to the region.</li>
<li>Identifies the container element as a live region that is in the &quot;off&quot; state, meaning assistive technology users are not informed about changes to the region.</li>
<li>The live region is off when the carousel is automatically rotating.</li>
</ul>
</td>
Expand All @@ -386,7 +386,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
<td>
<ul>
<li>Applied to a <code>div</code> element that contains all the slides.</li>
<li>Identifies the container element as a live region in the &quot;polite&quot; state, meaning assistive technology users are informed about changes to the region at the next available opportunity.</li>
<li>Identifies the container element as a live region in the &quot;polite&quot; state, meaning assistive technology users are informed about changes to the region at the next available opportunity.</li>
<li>This causes screen readers to automatically announce the content of slides when the next and previous slide buttons are activated.</li>
</ul>
</td>
Expand Down Expand Up @@ -522,4 +522,3 @@ <h2 id="sc1_label">HTML Source Code</h2>

</body>
</html>

19 changes: 9 additions & 10 deletions examples/carousel/carousel-1/js/carousel.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*
* File: Carousel.js
*
* Desc: Carousel widget that implements ARIA Authoring Practices
*
*/
* File: Carousel.js
*
* Desc: Carousel widget that implements ARIA Authoring Practices
*
*/

/*
* @constructor CarouselTablist
*
*
*/
* @constructor CarouselTablist
*
*
*/
var Carousel = function (domNode) {
this.domNode = domNode;

Expand Down Expand Up @@ -217,4 +217,3 @@ window.addEventListener('load', function (event) {
carousel.init();
}
}, false);

16 changes: 8 additions & 8 deletions examples/carousel/carousel-1/js/carouselButtons.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* File: carouselButton.js
*
* Desc: Carousel Button widget that implements ARIA Authoring Practices
*/
* File: carouselButton.js
*
* Desc: Carousel Button widget that implements ARIA Authoring Practices
*/

/*
* @constructor CarouselButton
*
*
*/
* @constructor CarouselButton
*
*
*/
var CarouselButton = function (domNode, carouselObj) {
this.domNode = domNode;

Expand Down
16 changes: 8 additions & 8 deletions examples/carousel/carousel-1/js/carouselItem.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* File: CarouselItem.js
*
* Desc: Carousel Tab widget that implements ARIA Authoring Practices
*/
* File: CarouselItem.js
*
* Desc: Carousel Tab widget that implements ARIA Authoring Practices
*/

/*
* @constructor CarouselItem
*
*
*/
* @constructor CarouselItem
*
*
*/
var CarouselItem = function (domNode, carouselObj) {
this.domNode = domNode;
this.carousel = carouselObj;
Expand Down
10 changes: 5 additions & 5 deletions examples/carousel/carousel-1/js/pauseButton.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* File: pasueButton.js
*
* Desc: Implements the pause button for the carousel widget
*
*/
* File: pasueButton.js
*
* Desc: Implements the pause button for the carousel widget
*
*/

var PauseButton = function (domNode, carouselObj) {
this.domNode = domNode;
Expand Down
4 changes: 2 additions & 2 deletions examples/checkbox/checkbox-1/checkbox-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ <h3 id="id-group-label">Sandwich Condiments</h3>

<div role="separator" id="ex_end_sep" aria-labelledby="ex_end_sep ex_label" aria-label="End of"></div>

</section>
</section>

<section>
<section>
<h2 id="kbd_label">Keyboard Support</h2>
<table aria-labelledby="kbd_label" class="def">
<thead>
Expand Down
27 changes: 13 additions & 14 deletions examples/checkbox/checkbox-1/js/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: Checkbox.js
*
* Desc: Checkbox widget that implements ARIA Authoring Practices
* for a menu of links
*
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: Checkbox.js
*
* Desc: Checkbox widget that implements ARIA Authoring Practices
* for a menu of links
*
*/

/*
* @constructor Checkbox
*
*
*/
* @constructor Checkbox
*
*
*/
var Checkbox = function (domNode) {

this.domNode = domNode;
Expand Down Expand Up @@ -81,4 +81,3 @@ Checkbox.prototype.handleFocus = function (event) {
Checkbox.prototype.handleBlur = function (event) {
this.domNode.classList.remove('focus');
};

4 changes: 2 additions & 2 deletions examples/checkbox/checkbox-2/checkbox-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>Checkbox Example (Mixed-State)</h1>
<h2 id="ex_label">Example</h2>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<fieldset>
<fieldset>
<legend>Sandwich Condiments</legend>
<div
role="checkbox"
Expand Down Expand Up @@ -195,7 +195,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</table>
</section>

<section>
<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<li>CSS: <a href="../css/checkbox.css" type="text/css">checkbox.css</a></li>
Expand Down
25 changes: 12 additions & 13 deletions examples/checkbox/checkbox-2/js/checkboxMixed.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: CheckboxMixed.js
*
* Desc: CheckboxMixed widget that implements ARIA Authoring Practices
* for a menu of links
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: CheckboxMixed.js
*
* Desc: CheckboxMixed widget that implements ARIA Authoring Practices
* for a menu of links
*/

/*
* @constructor CheckboxMixed
*
*
*/
* @constructor CheckboxMixed
*
*
*/
var CheckboxMixed = function (domNode) {

this.domNode = domNode;
Expand Down Expand Up @@ -156,4 +156,3 @@ CheckboxMixed.prototype.handleFocus = function (event) {
CheckboxMixed.prototype.handleBlur = function (event) {
this.domNode.classList.remove('focus');
};

25 changes: 12 additions & 13 deletions examples/checkbox/checkbox-2/js/controlledCheckbox.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: controlledCheckbox.js
*
* Desc: ControlledCheckbox widget that implements ARIA Authoring Practices
* for a mixed checkbox
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: controlledCheckbox.js
*
* Desc: ControlledCheckbox widget that implements ARIA Authoring Practices
* for a mixed checkbox
*/

/*
* @constructor ControlledCheckbox
*
*
*/
* @constructor ControlledCheckbox
*
*
*/
var ControlledCheckbox = function (domNode, controllerObj) {

this.domNode = domNode;
Expand Down Expand Up @@ -103,4 +103,3 @@ ControlledCheckbox.prototype.handleKeyup = function (event) {
ControlledCheckbox.prototype.handleClick = function (event) {
this.lastState = this.isChecked();
};

Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
List the keys supported in this example.
Recommendation: Copy the list from the keyboard section of the design pattern in aria-practices.html
and then reduce/simplify it to describe only what this example supports and how it behaves.
-->
-->
<ul>
<li><kbd>KEY_NAME</kbd>: function</li>
<li><kbd>KEY_NAME</kbd>: function</li>
Expand Down
2 changes: 1 addition & 1 deletion examples/coding-template/Example-Template.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
Use + to separate modifiers, e.g., <kbd>Control + Right Arrow</kbd>.
One key per row, e.g., do not combine <kbd>Up Arrow</kbd> and <kbd>Down Arrow</kbd> into a single row.
Do not use the word "key", e.g., do not write <kbd>Enter Key</kbd> or <kbd>Enter</kbd> key.
-->
-->
<table aria-labelledby="kbd_label" class="def">
<thead>
<tr>
Expand Down
Loading

0 comments on commit 8d97b56

Please sign in to comment.