petermichaux / grail

A simple JavaScript library to find DOM nodes by CSS selectors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grail

A simple JavaScript library to find DOM nodes by CSS selectors.

Examples

grail.find('#abc');
grail.find('div.alpha');
grail.findAll('div', document.body);
grail.findAll('.alpha');

Downloads

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

Status

Stable.

Browser Support

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

Dependencies

None.

Source Code

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

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

A simple JavaScript library to find DOM nodes by CSS selectors.

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 93.4%Language:CSS 6.5%Language:Makefile 0.1%