$(function(){$("#side-menu").metisMenu()}),$(function(){$(window).bind("load resize",function(){topOffset=50,width=this.window.innerWidth>0?this.window.innerWidth:this.screen.width,768>width?($("div.navbar-collapse").addClass("collapse"),topOffset=100):$("div.navbar-collapse").removeClass("collapse"),height=(this.window.innerHeight>0?this.window.innerHeight:this.screen.height)-1,height-=topOffset,1>height&&(height=1),height>topOffset&&$("#page-wrapper").css("min-height",height+"px")});var i=window.location,e=$("ul.nav a").filter(function(){return this.href==i||0==i.href.indexOf(this.href)}).addClass("active").parent().parent().addClass("in").parent();e.is("li")&&e.addClass("active")});

$(function(){$("#side-menu").metisMenu()}),$(function(){$(window).bind("load resize",function(){topOffset=50,width=this.window.innerWidth>0?this.window.innerWidth:this.screen.width,768>width?($("div.navbar-collapse").addClass("collapse"),topOffset=100):$("div.navbar-collapse").removeClass("collapse"),height=(this.window.innerHeight>0?this.window.innerHeight:this.screen.height)-1,height-=topOffset,1>height&&(height=1),height>topOffset&&$("#page-wrapper").css("min-height",height+"px")});var i=window.location,e=$("ul.nav a").filter(function(){return this.href==i||0==i.href.split('#')[0].indexOf(this.href)}).addClass("active").parent().parent().addClass("in").parent();e.is("li")&&e.addClass("active")});

Fix for active nav links when URL has hash
Fix for active nav links when URL has hash