source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/features.js@ 31525

Last change on this file since 31525 was 31525, checked in by ak19, 7 years ago

Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.

File size: 793 bytes
Line 
1var feature, supported = [], unsupported = [];
2
3phantom.injectJs('modernizr.js');
4console.log('Detected features (using Modernizr ' + Modernizr._version + '):');
5for (feature in Modernizr) {
6 if (Modernizr.hasOwnProperty(feature)) {
7 if (feature[0] !== '_' && typeof Modernizr[feature] !== 'function' &&
8 feature !== 'input' && feature !== 'inputtypes') {
9 if (Modernizr[feature]) {
10 supported.push(feature);
11 } else {
12 unsupported.push(feature);
13 }
14 }
15 }
16}
17
18console.log('');
19console.log('Supported:');
20supported.forEach(function (e) {
21 console.log(' ' + e);
22});
23
24console.log('');
25console.log('Not supported:');
26unsupported.forEach(function (e) {
27 console.log(' ' + e);
28});
29phantom.exit();
30
Note: See TracBrowser for help on using the repository browser.