I have the the url http://ste.com/members/username/, I had search stackoverflow for the following code which is great. but I face the issue is that, I cannot change the username all the time, so I cannot put the fixed username. I was trying to put 'members',but it will affect other pages. So how can I check if my url contain any string after members/, thanks!
if (window.location.href.indexOf("username") > -1) {
$('html, body').animate({
scrollTop: $('#item-nav').offset().top
}, 'slow');
}