Skip to content

Instantly share code, notes, and snippets.

@oslego
Created September 18, 2013 15:36
Show Gist options
  • Select an option

  • Save oslego/6611046 to your computer and use it in GitHub Desktop.

Select an option

Save oslego/6611046 to your computer and use it in GitHub Desktop.
Outline for 'Detective' web service

Detective

No user left in the dark!

The 'Detective' web service provides a simple way for web developers to add feature detection to their demos that use cutting edge features. It the user's browser does not support a feature, a custom-defined message will inform the user what is to be done.

API

//detective.com/{version}/?feat={feature}

{version} = version of API {feature} = Modernizr feature detect filename without .js. Multiple values comma-separated

example: //detective.com/v1/?feat=css-regions,css-shapes,elem-time

TODO: custom messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment