GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - una/caniuse-component: Slides with live caniuse data so you can always have up-to-date info for presentations

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.babelrc
.babelrc
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 
scripts.js
scripts.js
 
 
styles.css
styles.css
 
 

Repository files navigation

Caniuse Component

Instant, up-to-date, and theme-able browser statistics for your presentations (so you don't have to update your slides the night before!)

Here is a Demo 😄

  • customizable style based on a variable system
  • adaptive text color based on background source
  • automatic browser logos & caniuse data
  • not compatible with IE 6/7

Usage

Node Implementation

Install via NPM: npm install caniuse-component -- include the js and css source.

Reveal.js Implementation

To use this with Reveal.js, npm install, then apply this source as a plugin:

Reveal.initialize({
  // setup things here:
  // ...

  // plugins here:
  dependencies: [
    { src: '../node_modules/caniuse-component/scripts.js', async: true },
    { src: '../node_modules/caniuse-component/styles.css' }
  ]
});

Then, include this element on your page:

<ul id="caniuse--result-list"
    data-propName="css-filters"
    data-browsers="opera safari firefox chrome edge">
</ul>
name function usage options
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

Development & Contribution

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. 😘

Credits

  • Caniuse API
  • Browser Logos

About

Slides with live caniuse data so you can always have up-to-date info for presentations

una.github.io/caniuse-component/

Resources

Readme
Activity

Stars

130 stars

Watchers

3 watching

Forks

9 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.