Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- // html5 feature support
- for (var k in html5)
- console.log(k, '...', html5[k]);
- });
- (function(window, document, navigator, undefined) {
- var html5 = {
- appcache: !!window.applicationCache,
- geolocate: !!navigator.geolocation,
- workers: !!window.Worker,
- localstore: ('localStorage' in window) && (window['localStorage'] !== null),
- };
- // expose
- window.html5 = html5;
- })(this, document, navigator);
Add Comment
Please, Sign In to add comment