misc: add a class to <body> once the user scrolled the page a bit (#31094)
This commit is contained in:
parent
f2fd2225fd
commit
d8068a046a
|
@ -214,6 +214,15 @@ $(function() {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* add a scrolled class to body once the user scrolled the page a bit */
|
||||||
|
$(window).on('scroll', function() {
|
||||||
|
if ($(window).scrollTop() == 0) {
|
||||||
|
$('body').removeClass('scrolled');
|
||||||
|
} else {
|
||||||
|
$('body').addClass('scrolled');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('body').on('click', 'a.calchunk', function(event){
|
$('body').on('click', 'a.calchunk', function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var $elem = $(this);
|
var $elem = $(this);
|
||||||
|
|
Loading…
Reference in New Issue