A JavaScript library providing cross-browser support for content selection.
Using bower
bower install --save ContentSelect
Using npm
npm install --save ContentSelect
To build the library you'll need to use Grunt. First install the required node modules (grunt-cli must be installed):
git clone https://github.com/GetmeUK/ContentSelect.git
cd ContentSelect
npm install
Then run grunt build
to build the project.
To test the library you'll need to use Jasmine. First install Jasmine:
git clone https://github.com/pivotal/jasmine.git
mkdir ContentSelect/jasmine
mv jasmine/dist/jasmine-standalone-2.0.3.zip ContentSelect/jasmine
cd ContentSelect/jasmine
unzip jasmine-standalone-2.0.3.zip
Then open ContentSelect/SpecRunner.html
in a browser to run the tests.
Alternatively you can use grunt jasmine
to run the tests from the command line.
Full documentation is available at http://getcontenttools.com/api/content-select
- Chrome
- Firefox
- IE9+