source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/features.coffee@ 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: 655 bytes
Line 
1feature = undefined
2supported = []
3unsupported = []
4phantom.injectJs "modernizr.js"
5console.log "Detected features (using Modernizr " + Modernizr._version + "):"
6for feature of Modernizr
7 if Modernizr.hasOwnProperty(feature)
8 if feature[0] isnt "_" and typeof Modernizr[feature] isnt "function" and feature isnt "input" and feature isnt "inputtypes"
9 if Modernizr[feature]
10 supported.push feature
11 else
12 unsupported.push feature
13console.log ""
14console.log "Supported:"
15supported.forEach (e) ->
16 console.log " " + e
17
18console.log ""
19console.log "Not supported:"
20unsupported.forEach (e) ->
21 console.log " " + e
22
23phantom.exit()
Note: See TracBrowser for help on using the repository browser.