I am looking to replace the "100" and "101" in the following script by a value in VH. I have tried everything that has come to mind but cannot figure it out, Google doesn't seem to have the answer either.
$(document).ready(function() {
$(window).scroll(function () {
console.log($(window).scrollTop())
if ($(window).scrollTop() > 100) {
$('#nav_bar').addClass('navbar-fixed');
}
if ($(window).scrollTop() < 101) {
$('#nav_bar').removeClass('navbar-fixed');
}
});
});
Thank you.