Comments (7)
I think this will be addressed with an option to either show things "display" based, meaning display that feature's supported browsers (like caniuse current works), or "detect" based, meaning we detect/sniff their browser and report if it can use that feature.
from html5please-api.
oo sounds good!
from html5please-api.
Compare the results.
Something for everyone.
http://sandbox.thewikies.com/caniuse/canvas+json.html
- IE6 and IE7 will be prompted "Almost there! Please update your browser to support the requested features."
- Other browsers will be prompted "Congratulations! Your browser supports the requested features."
http://sandbox.thewikies.com/caniuse/apng.html
- Firefox and Opera will be prompted "Congratulations! Your browser supports the requested features."
- Other browsers will be prompted "Oh no! Please use another browser to use the requested features."
Petite payloads.
http://sandbox.thewikies.com/caniuse/apng.js
- payload is way smaller
{"client":{"id":"chrome","name":"Chrome","version":"16.0.912.77","mobile":false,"supported":false},"browsers":[{"id":"firefox","name":"Firefox","version":"3","url":"http:\/\/www.firefox.com\/"},{"id":"opera","name":"Opera","version":"9.5","url":"http:\/\/www.opera.com\/"},{"id":"op_mob","name":"Opera Mobile","version":"10","url":"http:\/\/www.opera.com\/mobile\/"}]}
Very custom payloads with HTML.
http://sandbox.thewikies.com/caniuse/apng.html?callback=myFunction&text
myFunction({"client":{"id":"chrome","name":"Chrome","version":"16.0.912.77","mobile":false,"supported":false},"browsers":[{"id":"firefox","name":"Firefox","version":"3","url":"http:\/\/www.firefox.com\/"},{"id":"opera","name":"Opera","version":"9.5","url":"http:\/\/www.opera.com\/"},{"id":"op_mob","name":"Opera Mobile","version":"10","url":"http:\/\/www.opera.com\/mobile\/"}],"html":"<div class=\\\"caniuse\\\"><p class=\\\"caniuse-message\\\">Oh no! Please use another browser to use the requested features.<\/p><p class=\\\"caniuse-browser\\\"><a class=\\\"caniuse-link\\\" href=\\\"http:\/\/www.firefox.com\/\\\" rel=\\\"external\\\" target=\\\"_blank\\\">Firefox<\/a> or <a class=\\\"caniuse-link\\\" href=\\\"http:\/\/www.opera.com\/\\\" rel=\\\"external\\\" target=\\\"_blank\\\">Opera<\/a> or <a class=\\\"caniuse-link\\\" href=\\\"http:\/\/www.opera.com\/mobile\/\\\" rel=\\\"external\\\" target=\\\"_blank\\\">Opera Mobile<\/a><\/p><\/div>"})
If this addresses your concerns, please close the issue. :D
from html5please-api.
Does the 'update your browser' come with a link? Also the 'other browsers' in 'Oh no! Please use another browser…' could link to http://browsehappy.com
from html5please-api.
When there is an update for the client browser, then yes, the update page includes a link to that browser's landing page so they can grab the latest version.
When there is only the option of another browser, the other browsers which also include links to their landing pages. I would be happy to setup a link to browsehappy, but I'm not sure if it's needed as long as we're both forwarding users to the same pages.
from html5please-api.
I like the way it currently is where we link straight to the browser download page. Linking to another site would just create an extra click the end user would have to do to get their browser updated
from html5please-api.
What we have matches what I had in mind. Thanks @jonathantneal !
from html5please-api.
Related Issues (20)
- Deprecate project? HOT 4
- In html5please api response, html property contains invalid icon link
- OSX Safari is identified as a mobile browser
- Add Promises to the api
- Sniffers for op_mob and op_mini are swapped
- script async is invalid without src HOT 1
- On setting src on a script element HOT 1
- Callback "html" is invalid HOT 8
- Checkboxes/Radiobuttons in FF/Linux not clickable
- Issue with webgl.json HOT 13
- Multi-language API HOT 9
- API doesn't send through full HTML? HOT 9
- Problem with the generated widget HOT 3
- Soft hyphen causing a blank line before the widget HOT 9
- Widget generator doesn't match Modernizr feature detection HOT 3
- Option for desktop browsers only HOT 6
- cssanimations.json data seems incomplete HOT 2
- HTTPS Mixed Content HOT 1
- Option to show needed features in widget
- Add Daniel Davis (@tagawa) in the `contribute` section HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5please-api.