Created
June 20, 2012 16:05
-
-
Save kenoir/2960679 to your computer and use it in GitHub Desktop.
Really simple js object for testing HTML5 browser capabilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Cheesewire = { | |
cutsTheMustard: function(){ | |
if('querySelector' in document | |
&& 'localStorage' in window | |
&& 'addEventListener' in window) { | |
return true; | |
} | |
return false; | |
}, | |
touchTheMustard: function(){ | |
return !!('ontouchstart' in window) ? 1 : 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment