How can I add an CSS class to an div depending on what path I am on, including that it should not mather if I had # in it?
jQuery(function($){ switch(window.location.hash){ case "vs": $(".popup").addClass("class1"); break; case "bod": $(".popup").addClass("class2"); break; case "ptf": $(".popup").addClass("class3"); break; } });