Sha256: c48e4c693f51f9847b8ad3385c779bcc09036ecfe50fd75076346ce03006058d
Contents?: true
Size: 793 Bytes
Versions: 21
Compression:
Stored size: 793 Bytes
Contents
var feature, supported = [], unsupported = []; phantom.injectJs('modernizr.js'); console.log('Detected features (using Modernizr ' + Modernizr._version + '):'); for (feature in Modernizr) { if (Modernizr.hasOwnProperty(feature)) { if (feature[0] !== '_' && typeof Modernizr[feature] !== 'function' && feature !== 'input' && feature !== 'inputtypes') { if (Modernizr[feature]) { supported.push(feature); } else { unsupported.push(feature); } } } } console.log(''); console.log('Supported:'); supported.forEach(function (e) { console.log(' ' + e); }); console.log(''); console.log('Not supported:'); unsupported.forEach(function (e) { console.log(' ' + e); }); phantom.exit();
Version data entries
21 entries across 19 versions & 3 rubygems
Version | Path |
---|---|
phantomjs.rb-0.0.1 | vendor/phantomjs-1.4.1_OSX/examples/features.js |