Skip to content

Discerning members of high society choose the Aristocrat JavaScript library to manipulate their class attributes.

License

Notifications You must be signed in to change notification settings

petermichaux/aristocrat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aristocrat

Discerning members of high society choose the Aristocrat JavaScript library to manipulate their class attributes.

Examples

aristocrat.addClass(document.body, 'king');
aristocrat.removeClass(document.body, 'king');
aristocrat.toggleClass(document.body, 'king');
aristocrat.hasClass(document.body, 'king');

Downloads

See http://peter.michaux.ca/downloads/aristocrat/ for production ready builds.

Status

Ready.

Browser Support

Tested working in IE6 and newer browsers by a variety of manufacturers.

Dependencies

None.

Source Code

GitHub: https://github.com/petermichaux/aristocrat

Build

To build the production ready files, you need JSMin or any other tool with the same command line interface. Then just type "make" at the command line and look in the build directory for the results.

For the record, this is how I installed JSMin. Note that I have /Users/peter/bin in my PATH.

$ cd ~/tmp
$ curl -O https://raw.github.com/douglascrockford/JSMin/master/jsmin.c
$ gcc -o jsmin jsmin.c
$ mv jsmin ~/bin
$ rm jsmin.c
$ which jsmin
/Users/peter/bin/jsmin

Tests

To run the automated tests, open tst/runner.html in a web browser.

Author

Peter Michaux
petermichaux@gmail.com
http://peter.michaux.ca/
@petermichaux

License

Simplified BSD License. See the included LICENSE file for details.

About

Discerning members of high society choose the Aristocrat JavaScript library to manipulate their class attributes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published