Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit e9049ef

Browse files
Merge pull request #3 from brunopulis/master
Markdown
2 parents 0922b6a + 0d9ed1c commit e9049ef

File tree

4 files changed

+76
-95
lines changed

4 files changed

+76
-95
lines changed

CHANGELOG

Lines changed: 0 additions & 82 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## v1.4* (2011-12-03)
2+
3+
* Made ARIA properties the means by which data about the tab interface is stored (rather than internal variables)
4+
* Cleaned up some of the code and optimized it
5+
* Made sure that even if an iterator isn’t supplied, the code works well
6+
7+
## v1.3* (2011-04-05)
8+
9+
* Adjusted tabbing to remove the tabpanels from the tab flow
10+
* Added "Enter" functionality to focus tabpanel from tab
11+
* Added ability to circle back to the beginning (or end) of the tablist when the end is reached
12+
13+
## v1.2* (2010-09-29)
14+
15+
* move to HTML5 section elements from divs
16+
* added HTML5 header to the allowed header indication elements
17+
18+
## v1.1* (2010-09-29)
19+
20+
* Change to ARIA spec: adding aria-controls
21+
22+
## v1.0* (2010-08-11)
23+
24+
* Switch to 1.0
25+
* Fix to ARIA implementation
26+
* Adding minified version
27+
28+
## v0.4.4* (2009-07-17)
29+
30+
* Made a few tweaks to the ARIA stuff
31+
32+
## v0.4.3* (2009-06-28)
33+
34+
* Simplified some of the JavaScript by reducing variables, combining declarations, etc.
35+
* Cleaned up the class names a bit
36+
* Adjusted the demo to reflect the new class names and to use namespaced CSS
37+
38+
## v0.4.2* (2009-04-20)
39+
40+
* Changed the source order for the tabs (so they come before the panels, which will be more helpful in ARIA use)
41+
* Changed the keyboard trigger to onkeydown
42+
43+
## v0.4.1* (2009-04-20)
44+
45+
* Added support for nested elements within a tab
46+
47+
## v0.4* (2009-04-20)
48+
49+
* Added support for ARIA Roles and States
50+
51+
## v0.3* (2007-06-17)
52+
53+
* Removed Prototype dependency, made most methods and properties private
54+
55+
## v0.2* (unreleased)
56+
57+
## v0.1* (2006-12-07)
58+
59+
* Initial script

MIT-LICENSE renamed to MIT-LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1717
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1818
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1919
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README renamed to README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
== TabInterface
1+
# TabInterface
22

33
TabInterface generates all of the code necessary to create an accessible tabbed interface in JavaScript.
44

5-
== Current Version
5+
## Current Version
66

7-
1.3 (5 April 2011)
7+
* 1.3 (5 April 2011)
88

9-
== Requirements
9+
## Requirements
1010

1111
None.
1212

13-
== License
13+
## Use
1414

15-
TabInterface is distributed under the liberal MIT License.
15+
To use, simply include TabInterface.js (found in ./min) and then classify elements you want tabbed as "tabbed". Then add a new anonymous function to your load event (`window` or DOM). For example:
1616

17-
== Use
17+
## Demo
1818

19-
To use, simply include TabInterface.js (found in ./min) and then classify elements you want tabbed as "tabbed". Then add a new anonymous function to your load event (`window` or DOM). For example:
19+
A demo is included in the ./demo directory.
2020

21+
```javascript
2122
if( typeOf( TabInterface ) != 'undefined' &&
2223
document.getElementById &&
2324
document.getElementsByTagName &&
@@ -36,15 +37,18 @@ if( typeOf( TabInterface ) != 'undefined' &&
3637
}
3738
} );
3839
}
39-
40+
```
4041
Many libraries, such as Prototype and jQuery, offer nicer-looking means of collecting elements by CLASS and and those could certainly be substituted for the brute force testing seen above.
4142

4243
Note: Tab labels will be either the header content or the heading's TITLE value.
4344

44-
== How it works
45+
## How it works
4546

4647
Content is split using the first heading level (H1-H6) or HEADING element encountered within the "tabbed" container.
4748

48-
== Demo
49+
## Changelog
50+
[See the changes](CHANGELOG.md)
51+
52+
## License
4953

50-
A demo is included in the ./demo directory.
54+
TabInterface is distributed under the liberal [MIT License](LICENSE.md)

0 commit comments

Comments
 (0)