View all files | ||||
Instant, up-to-date, and theme-able browser statistics for your presentations (so you don't have to update your slides the night before!)
Install via NPM: npm install caniuse-component -- include the js and css source.
To use this with Reveal.js, npm install, then apply this source as a plugin:
Then, include this element on your page:
| id | Applies styles to list | id="caniuse--result-list" | You only get one option unless you make your own |
| propName | CSS Property Name | data-propName="css-filters" | See Caniuse API and options |
| browsers | Browsers to check support from | data-browsers="firefox chrome safari" | edge, chrome, safari, ie, firefox, opera |
NPM scripts are used as the build system, so to develop, run: npm run dev. Consumable files are distributed in the root, and source files live within /src.
To contribute: Please clone this down and submit a PR, or open an issue. 😘