p5.js-website-OLD
p5.js-website-OLD copied to clipboard
example / feature support indication in ref / site
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.
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
ohhhh, nice! I'll dive into this after dom jobs are complete and the downloadable reference
raaad
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.
yeah that would be rad