Modernizr-test-current-browser
Usage
This module shows a table with all the features Modernizr provides where each cell indicates if the current browser supports the feature or not.
If documentation about the feature could be distilled from the Modernizr Documentation, it will be shown when hovering the mouse cursor over (or tapping on touchscreens) the table row of the feature. This doesn't work 100% flawlessly, but most of the time I think it's quite handy despite this.
- Currently uses Modernizr v3.7.1.
- Uses Bitters.
- Uses Bourbon.
- Uses DataTables for formatting the features in a handy table with search capability and pagination.
- Uses Handlebars.js.
- Uses jQuery.
- Uses the jQuery Loader plugin.
- Uses the jQuery miniTip plugin.
- Uses the jQuery Touchable plugin.
- Uses Neat.
- Uses normalize-scss.
- Uses Sass (yes, it's really written as Sass, not SASS).
Set up to work on Apache. Could easily work in other web servers as well, however, some folders/files will be accessible from the web browser, because they have been protected with .htaccess files that only work in Apache. There should be no harm done, as there's not really sensitive information in those folders/files.
You'll need PHP as well.
Development
If you're further developing this module, you'll need:
- Composer, to get phpDocumentor (or get phpDocumentor by hand instead).
- gulp, for automating building, compiling, etc.
- JSDoc, to make the development documentation's welcome page and for documenting JavaScript.
- phpDocumentor, for documenting PHP (there's a simple PHP script that's used as a proxy to retrieve the Modernizr Documentation).
- Yarn, to get Modernizr, JSDoc, gulp and the dependencies 'gulpfile.js' needs (NPM could work too, but you'll have to change 'gulpfile.js' so it watches 'package-lock.json' instead of 'yarn.lock' in the 'watch-yarn.lock' task, unless you don't care about gulp and want to do stuff by hand).
- Run yarn. It will fetch all modules and dependencies present in 'package.json'.
- Run 'composer install' (or 'php composer.phar install' if you haven't installed Composer globally). It will fetch all packages and dependencies present in 'composer.json'. Alternatively, you can get phpDocumentor manually.
- Start gulp and keep it running. It watches several files for changes and automatically builds and compiles stuff, and such.
You can find the development documentation also on GitHub Pages.