Hi, we need a sticky div-layer in my custom template with “window.scroll”, but had even no chance with this test code here (all other javascripts in the page are working):
jQuery(function($) {
// Test Code
$(window).scroll(function() {
if ($(window).scrollTop() > 100) {
console.log('test1');
}
else {
console.log('test2');
}
});
});
Thanks for help