Files
Batflat/themes/default/js/theme.js
2018-03-12 13:23:44 +01:00

19 lines
608 B
JavaScript

$(function() {
$("body").on("input propertychange", ".form-group", function(e) {
$(this).toggleClass("form-group-with-value", !!$(e.target).val());
}).on("focus", ".form-group", function() {
$(this).addClass("form-group-with-focus");
}).on("blur", ".form-group", function() {
$(this).removeClass("form-group-with-focus");
});
});
jQuery(document).ready(function($) {
$(window).scroll(function() {
if ($(window).scrollTop() > 0)
$(".navbar").addClass("is-fixed");
else
$(".navbar").removeClass("is-fixed");
});
});