diff options
Diffstat (limited to 'themes/classic/source/javascripts')
-rw-r--r-- | themes/classic/source/javascripts/octopress.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/classic/source/javascripts/octopress.js b/themes/classic/source/javascripts/octopress.js index 68e5139b..dc391aac 100644 --- a/themes/classic/source/javascripts/octopress.js +++ b/themes/classic/source/javascripts/octopress.js @@ -24,12 +24,17 @@ function addSidebarToggler() { function testFeatures() { var features = ['maskImage']; $(features).map(function(feature){ - if(Modernizr.testAllProps(feature)) { + if (Modernizr.testAllProps(feature)) { $('html').addClass(feature); } else { $('html').addClass('no-'+feature); } }); + if ("placeholder" in document.createElement("input")) { + $('html').addClass('placeholder'); + } else { + $('html').addClass('no-placeholder'); + } } function addDivLines(){ |