caniuse-component

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

  • 所有者: una/caniuse-component
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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](https://github.com/nyalab/caniuse-api) and [options](https://github.com/Fyrd/caniuse/tree/master/features-json), **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](https://github.com/nyalab/caniuse-api)
- [Browser Logos](https://github.com/alrra/browser-logos/)

主要指標

概覽
名稱與所有者una/caniuse-component
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證
所有者活动
創建於2016-07-07 02:06:53
推送於2022-06-12 14:58:15
最后一次提交2022-06-12 10:58:15
發布數2
最新版本名稱0.1.5 (發布於 )
第一版名稱0.1.3 (發布於 )
用户参与
星數133
關注者數4
派生數9
提交數31
已啟用問題?
問題數5
打開的問題數3
拉請求數3
打開的拉請求數5
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?