FAQ’s
var offset = $( "#sticky-header" ).offset();
var sticky = document.getElementById("sticky-header")
$(window).scroll(function() {
if ( $('body').scrollTop() > offset.top){
$('#sticky-header').addClass('fixed');
} else {
$('#sticky-header').removeClass('fixed');
}
});
$(function(){
// this will get the full URL at the address bar
var url = window.location.href;
// passes on every "a" tag
$(".submenu a").each(function() {
// checks if its the same on the address bar
if(url == (this.href)) {
$(this).closest("li").addClass("active");
}
});
});