forked from oyd/oyd-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
297 B
14 lines
297 B
5 years ago
|
|
||
|
$(document).ready(function() {
|
||
|
$(window).on('scroll', function(event) {
|
||
|
var scrollPos = $(event.target).scrollTop();
|
||
|
if (scrollPos > 20) {
|
||
|
$('#appTidyverseSite').addClass("shrinkHeader");
|
||
|
}
|
||
|
else {
|
||
|
$('#appTidyverseSite').removeClass("shrinkHeader");
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|