p5.js-website-OLD icon indicating copy to clipboard operation
p5.js-website-OLD copied to clipboard

example / feature support indication in ref / site

Open lmccart opened this issue 11 years ago • 5 comments

some things, like web audio and capture don't work in certain browsers. it would be good to display this on the reference as well as on the examples (or have them not show up) based on browser.

lmccart avatar Aug 18 '14 13:08 lmccart

I think the way to do this would be to include Modernizr.js and then add checks to specific functions to display warning text or an icon accordingly.

http://diveintohtml5.info/detect.html

lmccart avatar Jul 28 '15 02:07 lmccart

ohhhh, nice! I'll dive into this after dom jobs are complete and the downloadable reference

futuremarc avatar Jul 28 '15 03:07 futuremarc

raaad

lmccart avatar Jul 28 '15 03:07 lmccart

Another option is to integrate with caniuse.com's raw browser/feature support data to show how well a feature is supported across different browsers. For p5 authors, this could be particularly useful as it wouldn't just tell them whether a feature is supported on their current browser, but how well their potential audience will be able to experience the sketch as well.

toolness avatar Nov 20 '15 11:11 toolness

yeah that would be rad

lmccart avatar Nov 20 '15 12:11 lmccart