mirror of
https://github.com/sruupl/batflat.git
synced 2026-01-11 08:22:05 +01:00
19 lines
608 B
JavaScript
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");
|
|
});
|
|
});
|