aboutsummaryrefslogtreecommitdiff
path: root/themes/classic/source/javascripts/octopress.js
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-06-08 18:58:00 -0400
committerBrandon Mathis <brandon@imathis.com>2011-06-08 18:58:00 -0400
commita20dc08e105e85171bf5466cacb475b3bbcd8820 (patch)
tree153d76296a1713b2a905027a1d7646d890b655ba /themes/classic/source/javascripts/octopress.js
parent901f4d7f29696df7f8254d58dc35fe7e2947da10 (diff)
downloadmy_new_personal_website-a20dc08e105e85171bf5466cacb475b3bbcd8820.tar.xz
my_new_personal_website-a20dc08e105e85171bf5466cacb475b3bbcd8820.zip
1. Added support for styled subtitle in header
2. Added javascript detection for placeholder 3. Added backup style for search field with no-placeholder support
Diffstat (limited to 'themes/classic/source/javascripts/octopress.js')
-rw-r--r--themes/classic/source/javascripts/octopress.js7
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(){