Sha256: 3bbf22feccafa6119d5534908b43ac189929b8fdffab42bafa4fda2ce34b6f74

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

html = document.getElementsByTagName('html')[0]

if window.chrome
  html.className += ' chrome'
if Modernizr.touch
  html.className += ' touch'
else
  html.className += ' non-touch'
if navigator.platform.toUpperCase().indexOf('MAC')>=0
  html.className += ' mac'
if navigator.platform.match(/(iPhone|iPod|iPad)/i)
  html.className += ' ios'
if navigator.appVersion.match(/(Win)/i)
  html.className += ' windows'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
colorgy_style-0.0.0.4 assets/javascripts/colorgy/modernizr/classifier.coffee
colorgy_style-0.0.0.2 assets/javascripts/colorgy/modernizr/classifier.coffee
colorgy_style-0.0.0.1 assets/javascripts/colorgy/modernizr/classifier.coffee