Fix front page

This commit is contained in:
Anna Sidwell 2019-12-03 00:08:31 +01:00
parent 30d86673c5
commit 693e8c9665
1 changed files with 190 additions and 191 deletions

View File

@ -13,7 +13,6 @@
xsmall: "(max-width: 480px)" xsmall: "(max-width: 480px)"
}); });
$(function() {
var $window = $(window), var $window = $(window),
$body = $("body"), $body = $("body"),
$wrapper = $("#page-wrapper"), $wrapper = $("#page-wrapper"),
@ -30,8 +29,9 @@
}); });
// Mobile? // Mobile?
if (skel.vars.mobile) $body.addClass("is-mobile"); if (skel.vars.mobile) {
else $body.addClass("is-mobile");
} else {
skel skel
.on("-medium !medium", function() { .on("-medium !medium", function() {
$body.removeClass("is-mobile"); $body.removeClass("is-mobile");
@ -39,6 +39,7 @@
.on("+medium", function() { .on("+medium", function() {
$body.addClass("is-mobile"); $body.addClass("is-mobile");
}); });
}
// Fix: Placeholder polyfill. // Fix: Placeholder polyfill.
$("form").placeholder(); $("form").placeholder();
@ -186,6 +187,4 @@
}); });
} }
} }
});
})(jQuery); })(jQuery);