I commonly need to get a big list of all the stuff people think of when they think new and shiny these days. This list is for that.
I take a very inclusionist approach to it. 1
- Web Storage (localStorage, sessionStorage)
- Web SQL Database
for (var k in html5) | |
console.log(k, '...', html5[k]); | |
(function(window, document, navigator, undefined) { | |
var html5 = { | |
appcache: !!(window.applicationCache), | |
audio: !!(document.createElement('audio').canPlayType), | |
dragdrop: !!('draggable' in document.createElement('span')), | |
fileapi: !!(typeof FileReader !== 'undefined'), | |
geolocate: !!(navigator.geolocation), |
I commonly need to get a big list of all the stuff people think of when they think new and shiny these days. This list is for that.
I take a very inclusionist approach to it. 1
$(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, |
javascript:(function(){var meta=document.getElementsByTagName('meta');for(var i=0;i<meta.length;i++){switch(meta[i].getAttribute('property')){case'og:title':var title=encodeURIComponent(meta[i].getAttribute('content'));break;case'og:director':var director=encodeURIComponent(meta[i].getAttribute('content'));break;case'og:url':var url=encodeURIComponent(meta[i].getAttribute('content'));break;};};window.open('http://url.co.uk/?title='+title+'&director='+director+'&url='+url);})(); |
(function(document) { | |
var el = (document.compatMode === "CSS1Compat") | |
? document.documentElement | |
: document.body; | |
return { | |
'height': el.clientHeight, | |
'width': el.clientWidth | |
} | |
}(document); |
I hereby claim:
To claim this, I am signing this object: