referring to this question:
I would like to know how to use this code for pages like http://www.mydomain.com or http://localhost/ or http://localhost:3000/ or any index page.
The code example is this for http://localhost/username/boards
if( /^\/[^/]+\/boards/.test(location.pathname) ) {
$("#container ul #all_categories a.categories-menu").css("font-weight","bold");
}
Ok, lets make it official:
All you have to do is to test the URL for an empty path: